WebsiteBaker Community Forum

General Community => WebsiteBaker Website Showcase => Topic started by: FreshWebDesign on April 09, 2007, 07:55:14 PM

Title: A site I've recently baked
Post by: FreshWebDesign on April 09, 2007, 07:55:14 PM
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.
Title: Re: A site I've recently baked
Post by: pcwacht on April 09, 2007, 10:23:51 PM
Looks good to me

Nicely done

John
Title: Re: A site I've recently baked
Post by: frankyboy on April 10, 2007, 01:34:01 PM
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!
Title: Re: A site I've recently baked
Post by: FreshWebDesign on April 10, 2007, 03:57:30 PM
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_mysq l.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_gp c()) ? 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.
Title: Re: A site I've recently baked
Post by: seagull on April 13, 2007, 10:20:41 PM
Nice site and a straight template!

I am sure interested in this template.

Jan

Title: Re: A site I've recently baked
Post by: FreshWebDesign on April 16, 2007, 10:15:27 PM
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
Title: Re: A site I've recently baked
Post by: FreshWebDesign on April 17, 2007, 10:44:51 AM
Hi guys, and girls,

attached is the template i made for the www.westernlakedist rict.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]
Title: Re: A site I've recently baked
Post by: seagull on April 21, 2007, 06:23:37 PM
thanks....
Title: Re: A site I've recently baked
Post by: FreshWebDesign on April 22, 2007, 04:23:43 PM
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.
Title: Re: A site I've recently baked
Post by: Mesum on April 28, 2007, 01:17:19 PM
Great template and very nice site. Thank you very much for the share.
Title: Re: A site I've recently baked
Post by: FreshWebDesign on May 01, 2007, 11:59:54 AM
I have amended the copyright details to be http://addicteddesign.com  (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]
Title: Re: A site I've recently baked
Post by: Mesum on May 01, 2007, 05:29:40 PM
I have amended the copyright details to be http://addicteddesign.com  (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.
Title: Re: A site I've recently baked
Post by: FreshWebDesign 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
Title: Re: A site I've recently baked
Post by: Mesum on May 13, 2007, 09:03:47 PM
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.
Title: Re: A site I've recently baked
Post by: bgg on May 21, 2007, 05:32:38 PM
which event mod u r using??

a great site!!!
Title: Re: A site I've recently baked
Post by: Panther on May 22, 2007, 11:01:46 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.


Title: Re: A site I've recently baked
Post by: orko3001 on October 08, 2007, 02:51:46 AM
In reply to the third post. I'm not sure it is adding anything to the database as it is empty :S