Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2012, 10:11:55 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155094 Posts in 21661 Topics by 7721 Members
Latest Member: arrow345
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: A site I've recently baked  (Read 4391 times)
AddictedDesign

Offline Offline

Posts: 40



WWW
« on: April 09, 2007, 06: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.
Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
pcwacht
Guest
« Reply #1 on: April 09, 2007, 09:23:51 PM »

Looks good to me

Nicely done

John
Logged
frankyboy

Offline Offline

Posts: 113



WWW
« Reply #2 on: April 10, 2007, 12: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!
Logged

Disko-King.de
AddictedDesign

Offline Offline

Posts: 40



WWW
« Reply #3 on: April 10, 2007, 02: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.
Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
seagull

Offline Offline

Posts: 81


« Reply #4 on: April 13, 2007, 09:20:41 PM »

Nice site and a straight template!

I am sure interested in this template.

Jan

Logged
AddictedDesign

Offline Offline

Posts: 40



WWW
« Reply #5 on: April 16, 2007, 09: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
Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
AddictedDesign

Offline Offline

Posts: 40



WWW
« Reply #6 on: April 17, 2007, 09: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
« Last Edit: May 01, 2007, 10:57:24 AM by AddictedDesign » Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
seagull

Offline Offline

Posts: 81


« Reply #7 on: April 21, 2007, 05:23:37 PM »

thanks....
Logged
AddictedDesign

Offline Offline

Posts: 40



WWW
« Reply #8 on: April 22, 2007, 03: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.
Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
Mesum

Offline Offline

Posts: 19



WWW
« Reply #9 on: April 28, 2007, 12:17:19 PM »

Great template and very nice site. Thank you very much for the share.
Logged

Bible On Web - Read, Listen and Study Holy Bible Online
AddictedDesign

Offline Offline

Posts: 40



WWW
« Reply #10 on: May 01, 2007, 10: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
Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
Mesum

Offline Offline

Posts: 19



WWW
« Reply #11 on: May 01, 2007, 04:29:40 PM »

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.
Logged

Bible On Web - Read, Listen and Study Holy Bible Online
AddictedDesign

Offline Offline

Posts: 40



WWW
« Reply #12 on: May 05, 2007, 09: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
Logged

CUMBRIA WEB DESIGN - uk Web site designer + web programmer
Mesum

Offline Offline

Posts: 19



WWW
« Reply #13 on: May 13, 2007, 08: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.
Logged

Bible On Web - Read, Listen and Study Holy Bible Online
bgg

Offline Offline

Posts: 101



« Reply #14 on: May 21, 2007, 04:32:38 PM »

which event mod u r using??

a great site!!!
Logged
Panther

Offline Offline

Posts: 168



WWW
« Reply #15 on: May 22, 2007, 10: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.


Logged
orko3001

Offline Offline

Posts: 110


« Reply #16 on: October 08, 2007, 01: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
Logged

Please assume I have searched for the answer first - because I have.
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!