Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphic Design Contests


You are currently viewing our Graphic Design Contests as a guest. Please register to participate.
Login



Closed Thread
Charity website template. anyone feel like having a go?
Old 08-18-2007, 12:07 PM Charity website template. anyone feel like having a go?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Hello,

im developing a charity site, and would like to get some more templates/designs.

i have developed the site to be template based so i can have as many templates as i like, and can just change them in the admin area.

Ok heres the current (and only) template.

template.inc.php:
PHP Code:
<?php 
include_once ('config.php');
#### Site lock ###
include ('includes/getrank.php');
if(
$sitelock == || $Rank >= || $_SERVER['PHP_SELF'] == 'login.php' || $_SERVER['PHP_SELF'] == 'admincp.php')
{
if(
$sitelock == && $Rank >= 7)
{
$content .= warning_msg('This site is currently locked down! <a href="admincp.php?id=settings&sub=sitelock">Click here to unlock it.</a>');
}
####
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><? echo "$title?> <? echo "$pgtitle?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-language" content="en-gb" />
<meta name="robots" content="<? if($robots_override == 1) {echo'noindex,nofollow';} else {echo "$meta_robots";}?>" />
<meta name="rating" content="General" />
<meta name="author" content="<? echo "$meta_author?>" />
<meta name="keywords" content="<? echo "$meta_keywords?>" />
<meta name="description" content="<? echo "$description?>" />
<link href="<? echo "$core?>/favicon.ico" rel="shortcut icon" />
<link href="<? echo $core.'/style/'.$style.'/style.css'?>"  rel="stylesheet" type="text/css" />
<? echo $extraheader ?>
<!--[if IE 7]>
<style type="text/css">
.menu li {float:left;}
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
html
{
scrollbar-3dlight-color: #BDDDC9; 
scrollbar-arrow-color: #FFFF00; 
scrollbar-base-color:#FFFF00; 
scrollbar-track-color: #BDDDC9;
scrollbar-darkshadow-color: #ffffff; 
scrollbar-face-color: #66CCFF ; 
scrollbar-highlight-color:#FFFF00; 
}
</style>
<![endif]-->
</head>
<body>
<div id="wrapper">
<br />
<br />
<div class="header">
</div>
<div class="main">
<br class="brclear" /><!-- clears floated elements in header -->
<div class="quickmenu">
<hr class="hr" />
<?php echo "$news"?>
<hr class="hr" />
</div><!-- end quickmenu -->
<div class="navi">
<div class="menu">
<? include ('navi.php'); ?>
</div>
</div>
<div class="content" style="<? echo $extra_content_style ?>">
<!--[if IE]><br /><![endif]-->
<? echo $content ?>
<br />
</div>
<br class="brclear" />
<div class="footer">
<hr class="hr" />
<span class="lrgfooter"><? echo "$footer1?></span>
<br />
<span class="smlfooter"><? echo "$footer2?></span>
<hr class="hr" />
<?php
if ($showlogo == 1

echo 
'
<a href="http://validator.w3.org/check?uri=referer" shape="rect">
<img src="'
.$core.'/images/valid-xhtml11.png" alt="Valid XHTML 1.1!" class="footerlogos" /></a>
<a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fcalm.dansgalaxy.co.uk/style/'
.$style.'/style.css&amp;warning=1&amp;profile=css21&amp;usermedium=all" shape="rect">
<img src="'
.$core.'/images/w3ccss.png" alt="Valid CSS!" class="footerlogos"/></a>
<a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance">
<img class="footerlogos" src="'
.$core.'/images/w3cwai.png" alt="Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0" /></a>
    
<a href="http://php.net" title="PHP.net"><img src="'
.$core.'/images/phplogo.png" alt="Powerd By PHP" class="footerlogos" /></a>
<a href="http://mysql.com" title="Powered By MySQL"><img src="'
.$core.'/images/powered_mysql.png" alt="Powerd By MySQL" class="footerlogos" /></a>
<br />'

}
?>
<span class="dansgalaxycopyright"><? echo $footer3 ?></span>
</div>
</div><!-- end main -->
</div><!-- end wrapper -->
</body>
</html>
<?
### Site lock ###
}
else {
echo 
'
<html>
<head>
<style type="text/css">
body {
background: #666;
text-align: center;
margin: 0;
}
</style>
</head>
<body>
<div style="width: 60%; background: #fff url(images/tortoise.png) no-repeat bottom right; border:
 2px solid #ddd; height: 30%; margin-left: 20%; margin-right: 20%; margin-top: 20%;">
<h1>SITE OFFLINE!</h1>
<p style="font-size: 1.5em;">'
.$sitelock_msg.'</p>
</div>
</body>
</html>'
;
}
#### #### ####
?>
and heres the style.css which goes with it.
Code:
/* CSS Document */
body
{
background: #fff url('./images/bg.png') repeat-x;
font-family: veranda;
}
#wrapper
{
width: 891px;
position: relative;
margin: 0 auto;
}
.header
{
height: 150px;
margin: 0px;
background: url('./images/design2withcorner.png'); 
width: 891px; 
}
a img
{
border: 0px;
}
.main 
{
color: green;
height: auto;
width: 891px;
background-color: #ffffff;
text-align: left;
}
.banner
{
   height: 100px;
}
.hr
{
   width: 99%;
   color: #3399cc;
   text-align: center;
   margin: 0px;
   size: 1;
}
.quickmenu
{
height: 20px;
text-align: center;
/*
border-top: 2px solid #ADADAD;
border-bottom: 2px solid #ADADAD;
*/
margin: 10px 0;
padding: 5px 0;
}
.title
{
color: #336600;
text-decoration: underline;
font-weight: bold;
font-size: 16pt;
}
.menu
{
float:left;
margin-left: 2px;
margin-right: 10px;
margin-top: 1px;
width: 150px;
z-index:1000;
font-size:90%;
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
width:150px;     /*Width of navigation */
}
/* hack for IE5.5 */
* html .menu ul {margin-left:-16px; margin-left:0;}
/* position relative so that you can position the sub levels */
.menu li {
position:relative;
background: #BDDDC9; /* BG colour of boxes norm */
height: 26px; /****/
}
.sub {
margin: 0;
}
/* get rid of the table */
.menu table {
position:absolute; 
border-collapse:collapse; 
top:0; 
left:0; 
z-index:100; 
font-size:1em;}
/* style the links */
.menu a, .menu a:visited {
display:block; 
text-decoration:none;
height:25px;
line-height:25px;
width:149px;
color:#000;
text-indent:5px;
border:1px solid #fff;
border-width:0 1px 1px 0;
}
/* hack for IE5.5 */
* html .menu a, * html .menu a:visited {background:#d4d8bd; width:150px; w\idth:149px;}
/* style the link hover */
* html .menu a:hover {color:#fff; background:#949e7c;}
.menu :hover > a {
color:#fff; 
background:#949e7c; /****hover bg color */
}
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
top:0;
left:150px; 
}
/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul {
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{ 
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul { 
visibility:visible;
}
.content
{  
   float: left;
   text-align: left;
   margin-right: 10px;
   margin-left: 3px;
   margin-top: 0px; /*appears to have no effect oon the page.*/
   width: 706px;
   height: 560px;
/*   overflow: auto; */
   background: #000;
   background:  url('/images/trans_tortoise.png') bottom right no-repeat;
}   
.footer
{   
    text-align: center;
 margin-left: auto;
 margin-right: auto;
 width: 891px;
 margin-top: 0px;
 margin-bottom: 0px;
/* background-color: #ffffff;*/
}   
.smlfooter
{
   font-size: 10pt;
}
.lrgfooter
{
   font-size: 12pt;
}   
.dansgalaxycopyright
{
 font-size: 10pt;
}
.logort{
float: right;
padding: 12px 10px 0 0;
}
.fltlft{
float: left;
}
.brclear
{
clear:both; 
height:0; 
margin:0; 
font-size: 1px; 
line-height: 0; 
}

/******* Curly corner div *********/

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.curlycontainer{
border: 1px solid #b8b8b8;
margin-bottom: 1em;
width: 150px;
margin-left: 2px;
}
.curlycontainer .innerdiv{
background: transparent url(images/brcorner.gif) bottom right no-repeat;
position: relative;
left: 2px;
top: 2px;
padding: 1px 4px 15px 5px;
}
.eventcurlycontainer{
border: 1px solid #b8b8b8;
margin-bottom: 1em;
width: 550px;
margin-left: 170px;
}
.eventcurlycontainer .innerdiv{
background: transparent url(images/brcorner.gif) bottom right no-repeat;
/* position: relative; * This means that the menu works, with this working the text in it appears over the menu things */
left: 2px;
top: 2px;
padding: 1px 10px 15px 5px;
}
a.popup span {display: none}
a.popup:hover span {
    display: block; width: 10em; 
    background-color: white; border: dotted black thin;
    position: relative; /*left: 100px;*/}
 
 
.footerlogos
{
width: 44px;
height: 16px;
}
.footerlogos:hover
{
width: 70px;
height: 30px;
}
.donate_txt {
float: left;
width: 450px;
}
.donate {
float: right;
text-align: center;
padding: 5px 5px 5px 5px;
margin-right: 4px; /* moves box away slighlt from edge of main section */
border-width: 1px;
border-spacing: 0;
border-style: dotted;
border-color: #000000;
}
Ok in the template you will see theres a few PHP variables and a few if/else statments
the template also has a Sitelock system but you dont need to worry about that as i can add that later.

You will see
$core stands for the main domain (in this case http://calm.dansgalaxy.co.uk)
and you should have all urls in the format of '.$core.'/images/image.png

Also you can see i have a if/else statment for my search box so i can easily turn it on and off via my control panel.

It is preferd that the design looks ok both with and with out a search box so i can have this functionality

to look at the current template live http://calm.dansgalaxy.co.uk

To submit a template please email the template.inc.php and style and the images to calm@Dansgalaxy.co.uk i can decompress virtually any format so dont worry about what type of compression you use.


Thanks,
i look forward to the templates
Talkupation given to all templated recieved.

Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 08-20-2007, 11:45 PM Re: Charity website template. anyone feel like having a go?
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
What CMS is this running?
coolkbk585 is offline
View Public Profile Visit coolkbk585's homepage!
 
Old 08-21-2007, 09:25 AM Re: Charity website template. anyone feel like having a go?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Custom

im building it all which is why i posted the template.inc.php file.

realsied after tho i didnt post the navi.php file which holds the navigation.

so here it is

PHP Code:
<?
if ($sitesearch == 1)
{
echo 
'<div style="border: dashed 1px; text-align: center; height: 75px">
<br />
<!-- Google CSE Search Box Begins -->
  <form id="searchbox_005024759402698555062:l3h8qoovxww" action="http://calm.dansgalaxy.co.uk/search.php">
    <input type="hidden" name="cx" value="005024759402698555062:l3h8qoovxww" />
    <input type="hidden" name="cof" value="FORID:11" />
    <input name="q" type="text" size="15" />
    <input type="submit" name="sa" value="Search" />
  </form>
  <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_005024759402698555062%3Al3h8qoovxww"></script>
<!-- Google CSE Search Box Ends -->
</div>'
;
}
?>
 
<br />
<ul>
<li><a href="<? echo $core ?>/index.php">Home</a></li>
<li class="sub"><a href="<? echo $core ?>/about.php">About »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
 <ul>
 <li><a href="<? echo $core ?>/about.php" title="Find out about CALM">About CALM</a></li>
 <li><a href="<? echo $core ?>/about/logo" title="Find out about how CALMs Tortoise came about">About CALM's Logo</a></li>
 <li><a href="<? echo $core ?>/about/website" title="About CALMs website">About CALM's Website</a></li>
 </ul>
 <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="sub"><a href="<? echo $core ?>/events.php">Events »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
 <ul>
 <li><a href="<? echo $core ?>/events.php" title="Click here to find what exciting events are coming up!">Upcoming Events</a></li>
 <li><a href="<? echo $core ?>/events/newsletters" title="Click here to view/download the lastest and past newsletters">Newsletters</a></li>
 
 </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="sub"><a href="<? echo $core ?>/info.php">Info... »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
 <ul>
 <li><a href="<? echo $core ?>/info.php?id=cancer" title="What is Cancer?">What is Cancer</a></li>
 <li><a href="<? echo $core ?>/info.php?id=treatment" title="Find out about treatments">Treatments</a></li>
 <li><a href="<? echo $core ?>/info.php" title=""></a></li>
 </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="sub"><a href="<? echo $core ?>/contact.php">Feedback »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
 <ul>
 <li><a href="<? echo $core ?>/feedback/familiesfeedback" title="Click here to find out what the families say">What the families say</a></li>
 <li><a href="<? echo $core ?>/feedback/guestbook" title="Click here to sign CALMs guestbook.">Guestbook</a></li>
 <li><a href="<? echo $core ?>/contact.php" title="Click here to contact us">Contact Us</a></li>
 </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="sub"><a href="<? echo $core ?>/kids.php">Kids area »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
 <ul>
 <li><a href="<? echo $core ?>/kids.php" title="Kids home">Kids Home</a></li>
 <li><a href="<? echo $core ?>/kids.php?id=competition" title="Click to find out the latest competition!">Competition</a></li>
 <li><a href="<? echo $core ?>/kids.php?id=games" title="Games Loads of fun flash games.">Games</a></li>
 </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="sub"><a href="<? echo $core ?>/help.php">How to help »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
 <ul>
 <li><a href="<? echo $core ?>/help.php" title="Click to find ways you can help CALM">Ways you can help</a></li>
 <li><a href="<? echo $core ?>/help/howtohelp" title="Find great fun ways to sipport calm">Ways to fund raise</a></li>
 <li><a href="<? echo $core ?>/help/donate" title="Find out how you can donate to calm">Donating</a></li>
 </ul>
 <!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="sub"><a href="<? echo $core ?>/whatwedo.php">What we do »<!--[if IR 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
 <li><a href="<? echo $core ?>/whatwedo.php" title="What we do">What we do</a></li>
 <li><a href="<? echo $core ?>/whatwedo/family_support" title="How Calm supports it\'s families both emotionally and financially">Families Support</a></li>
 <li><a href="<? echo $core ?>/whatwedo/fundays" title="Days out &amp; social activities">Fun Days</a></li>
 <li><a href="<? echo $core ?>/whatwedo/research" title="Research">Research</a></li>   
 <li><a href="<? echo $core ?>/whatwedo/partners" title="partners">Partners</a></li> 
 </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="<? echo $core ?>/help.php?id=donate" title="Donate">Donate</a></li>
<li><a href="<? echo $core ?>/link.php" title="Useful links">Useful links</a></li>
<?
include ('includes/getrank.php');
if (
$Rank >= 7//if they have a rank they must be logged in...
{
echo 
'
<li class="sub"><a href="'
.$core.'/admincp.php">Admin »<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
          <ul>
          <li><a href="admincp.php">Admin CP</a></li>
          <li><a href="admincp.php?id=gbookadmin">Guestbook</a></li>
          <li><a href="admincp.php?id=familystory">Families Story</a></li>
          <li><a href="admincp.php?id=addevent">Add Event</a></li>
          <li><a href="admincp.php?id=memberlist">Member List</a></li>
          <li><a href="admincp.php?id=notes">Notes</a></li>
    <li class="sub"><a href="admincp.php?id=settings">Site Settings »<!--[if IE 7]><!--></a><!--<![endif]-->
    
    <!--[if lte IE 6]><table><tr><td><![endif]-->
    <ul>
    <li><a href="admincp.php?id=settings&sub=general">General</a></li>
    <li><a href="admincp.php?id=settings&sub=footer">Footer Settings</a></li>
    <li><a href="admincp.php?id=settings&sub=error">Error Handling</a></li>
    <li><a href="admincp.php?id=settings&sub=style">Style</a></li>    
    <li><a href="admincp.php?id=phpinfo">PHP info</a></li>
    </ul>
    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
       </ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="'
.$core.'/logout.php" title="Logout">Logout</a></li>';
}
//end
?>
</ul>
<br />
<div class="curlycontainer">
<div class="innerdiv">
<b>Latest:</b> <br />
<p><? echo $latest_news ?></p>
</div>
</div>
the navigation also has a thing to only show certain links to logged in users and certain links to users with a admin rank

Thanks
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
View Public Profile Visit dansgalaxy's homepage!
 
Old 08-21-2007, 10:31 PM Re: Charity website template. anyone feel like having a go?
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
So if I just make a static template you'll be able to work it in to the CMS yourself?
coolkbk585 is offline
View Public Profile Visit coolkbk585's homepage!
 
Old 08-22-2007, 04:54 AM Re: Charity website template. anyone feel like having a go?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
i can try
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
View Public Profile Visit dansgalaxy's homepage!
 
Closed Thread     « Reply to Charity website template. anyone feel like having a go?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.20012 seconds with 12 queries