Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Website Design

Website Design Forum for discussing flash, graphics, fonts, video and music! Have a question about how to implement something into your website? Ask here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 05-25-2008, 10:12 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,551
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: How to Create a Template

Quote:
Originally Posted by Xav View Post
You mean like www .website.co.uk/index.php?page=home or something? Wouldn't that mean there would only be one page for SEO, or not?
You can use .htaccess and mod_rewrite to make your website SEO. Take a look at what we have done (thanks john!):

http://blog.codecall.net
which really is = http://www.codecall.net/index.php?option=com_myblog

And google will see the virtual sub-domain and give us higher rank points because of it.

Quote:
Originally Posted by Xav View Post
Why do you need the header.php and footer.php files? Can't I just have one main file - index.php - and within that I have the entire structure of the page - topbar, sidebar, footer at bottom - and just have a script block in the content section, to load the relevant content page, which contains only the content and no formatting?
That would work just fine. I like to have separate files for th e header/footer/index files because it is easier to edit IMO.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-26-2008, 01:04 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,852
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: How to Create a Template

I see. Which is better - a single index.php with a GET variable, or a header/footer file embedded into every page?
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-26-2008, 08:50 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,551
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: How to Create a Template

Your choice. I like the header/footer method still.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-27-2008, 08:59 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,852
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: How to Create a Template

But both methods can use a header and footer file to store the contents. What I meant was, is it better to use the GET variable on index.php, which loads the other pages, or is it better to have separate pages that are loaded straight from the URL, which then load the header/footer files from there?
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 06-03-2008, 09:33 PM
orjan's Avatar   
orjan orjan is offline
Programming Professional
 
Join Date: Sep 2007
Location: Sunne, Värmland, Sweden
Age: 33
Posts: 333
Last Blog:
Procedural Programming...
Rep Power: 9
orjan has a spectacular aura aboutorjan has a spectacular aura aboutorjan has a spectacular aura about
Default Re: How to Create a Template

when talking about TPL, I guess you are thinking about PHP's project Smarty?
it's a great project if you want to pass data to an template and display it in different ways.

I used it on a webpage project a few years ago, and this way, the site programmers could make data available by smarty, and the design team could take the data they wanted to publish and make their own work more or less independent.

this way, we also could make the same page in different layouts for several sites, and the surfer wouldn't know we were using the same thing. (one tpl for each domain)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 10-23-2008, 08:49 AM
antoniyo antoniyo is offline
Learning Programmer
 
Join Date: Oct 2008
Posts: 55
Rep Power: 0
antoniyo can only hope to improve
Default Re: How to Create a Template

You will need some good images, by using html or css you can put images within code and continue look at output on your coding you will see your templates will have been completed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 10-23-2008, 12:54 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,852
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: How to Create a Template

I know. This thread is quite old, I've advanced loads since then.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DoublyLinkedList from hell nolsen01 C and C++ 2 05-13-2008 03:55 PM
using Template function Chinmoy C Tutorials 4 04-03-2008 05:16 AM
Template Sites TVDinner Website Design 4 06-01-2007 11:32 PM
Create pluggin with Java nilshv Java Help 0 04-08-2007 10:27 AM


All times are GMT -5. The time now is 05:33 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads