A site I've recently baked

orko3001

In reply to the third post. I'm not sure it is adding anything to the database as it is empty :S

Panther

Quote from: bgg on May 21, 2007, 05:32:38 PM
which event mod u r using??

a great site!!!

That's the "Event Calendar" module with tweeked css it looks like.

Also looks like the border=0 was turned off on the previous and next images, but looking at the source it's still there... must be over-ridden in the CSS somewhere.



bgg

which event mod u r using??

a great site!!!

Mesum

Quote from: AddictedDesign on May 05, 2007, 10:28:30 AM
that sounds a little strange. Talk us through it. Did it install correctly? is it blank when you go to the main root page? or in admin section
Sorry for the late reply.
Yes it installed just as any other template does but when I hit the main page, it was blank... no content.
Same thing with the menu and footer text.
Bible On Web - Read, Listen and Study Holy Bible Online

FreshWebDesign

that sounds a little strange. Talk us through it. Did it install correctly? is it blank when you go to the main root page? or in admin section

Mesum

Quote from: AddictedDesign on May 01, 2007, 11:59:54 AM
I have amended the copyright details to be http://addicteddesign.com use the template as you please, let us know if you do use it, i wouldnt mind seeing variations of it produced

I just installed this one and all the content went blank.
Bible On Web - Read, Listen and Study Holy Bible Online

FreshWebDesign

I have amended the copyright details to be http://addicteddesign.com use the template as you please, let us know if you do use it, i wouldnt mind seeing variations of it produced

[gelöscht durch Administrator]

Mesum

Great template and very nice site. Thank you very much for the share.
Bible On Web - Read, Listen and Study Holy Bible Online

FreshWebDesign

Your welcome. Just a quick note though, i've now changed the address of my site to http://addicteddesign.com so if you do use the template please could you add that link to the bottom instead.

seagull


FreshWebDesign

#7
Hi guys, and girls,

attached is the template i made for the www.westernlakedistrict.com site, its free to use and change etc belongs you keep a link on there somewhere to http://www.fresh-web-design.com

for this template to work you would need the news anywhere addon and also show_menu2 & mass mail,

you would also need to do the addon i listed above for the mass mail, i've commented out the newsletter part in the index.php just in case you didnt want to use the mass mail feature.

If you need any help just give me an email

[gelöscht durch Administrator]

FreshWebDesign

just got my broadband back on after two week downtime thanks to Tiscali isp, i will get my template packaged up for yous to use

seagull

Nice site and a straight template!

I am sure interested in this template.

Jan


FreshWebDesign

Create a form on your site for somebody to enter there email address like this but change the url


<form method="post" name="form1" action="http://www.yoursite.com/index.php?page_id=24">
<input type="text" name="mail_to" value=""> 
<input type="hidden" name="group_id" value="1">
<input type="submit" value="Go">
<input type="hidden" name="MM_insert" value="form1">
</form>

Create a new page in wb that is hidden and remember the page id from the top, put this page id
number where 24 is in the form above where it says page_id=

then in the page add this code

---------------------------------------------------------------------
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_site = "databasehostname";
$database_site = "database name";
$username_site = "database username";
$password_site = "databasepassword";
$site = mysql_pconnect($hostname_site, $username_site, $password_site) or trigger_error(mysql_error(),E_USER_ERROR);

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO testwbmod_massmail_addresses (group_id, mail_to) VALUES (%s, %s)",
                       GetSQLValueString($_POST['group_id'], "int"),
                       GetSQLValueString($_POST['mail_to'], "text"));

  mysql_select_db($database_site, $site);
  $Result1 = mysql_query($insertSQL, $site) or die(mysql_error());
  echo "<center>THANK YOU <br>Thanks for subscribing to our newsletter and any time you can unsubscribe by clicking a link in your newsletter</center>";
}
?>
-------------------------------------------------------------------------------------------

The code above was created in dreamweaver, I made it completely independent to wb, i didnt really want
to fiddle with core files because i was in a real hurry to get the site done.

If you want to rewrite it to coincide with wb, feel free

the form simply adds an email address to the database table that mass mail uses, it's only
simple, but is limited, however it does just what i wanted.

frankyboy

great page. the lake district is one of may favourite places! i would like to have a look at your massmail-addon, thought about that for a long time; sounds like a very usefull improvement!

pcwacht

Looks good to me

Nicely done

John

FreshWebDesign

I love website baker. The simplicity is something thats unreal compared to other cms's.

Anyways heres my second site, http://www.westernlakedistrict.com

all the menu's are controlled in the admin, 3 in total. I used the news stippet addon, the ajax gallery and mass mail, I also created a little addon for mass mail to allow users to signup to the newsletter without being a member, youll see what i mean on the main page you can put your email in to sign up.

Give me your thaughts, if anybodies interested in the template just let me know and i would be willing to release it.