Author |
Topic  |
|
prescottw
Junior Member
 
189 Posts |
Posted - 05 December 2005 : 15:15:27
|
Hello!
I've run into a situation where I'm using a multiple inc_header idea. This way I can change the look and feel of a page...width, banner rotator, color... etc.
Is there any draw back to my (probably not original) thought of using this way of address.
Any input would be greatly appreciated. Thanks for reading this,
-prescottw |
What day is it anyway? |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 05 December 2005 : 16:20:30
|
As long as you make sure you include all the code in every one of the files I don't see a problem with it. It gets complicated when you have to edit your inc_header though. |
eXtremeGossip  |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 05 December 2005 : 20:04:45
|
Thank you for that response Jorrit787.
I sometimes wonder if I make the changes corrrectly, I take code out because I don't use it. menu for example I use a js. log-in same thing. Added a js for a different menu. Can this effect the site when the site is busy? Or can I safely say if it works now will it keep on working. Or will one day I go to the site and ...poof... gone.
Thanks,
-prescottw |
What day is it anyway? |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 05 December 2005 : 20:53:00
|
If it works now I don't see why wouldn't in the future, unless your custom login for example is extremely resource-intensive, things like that could cause problems when your site gets busier. |
eXtremeGossip  |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 05 December 2005 : 21:00:30
|
Resource sensitive... meaning if someone logs out... they stay logged in or trying to log in and you keep getting the log-in screen?
Thank you for the lesson Jorrit787 I am appreciating this very much.
-prescottw |
What day is it anyway? |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 05 December 2005 : 21:23:05
|
Resource intensive, meaning that if your custom scripts involve lots of calls to the database it might slow things down  |
eXtremeGossip  |
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 05 December 2005 : 21:35:38
|
Blue did it. Ok I understand. Thank you for the info. I'm never disappointed with the responses I get on Snitz!
Jorrit787, thank you.
-prescottw |
What day is it anyway? |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 05 December 2005 : 22:18:40
|
You're welcome If you do start having trouble I suppose you can always post your scripts here and get a review. |
eXtremeGossip  |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 06 December 2005 : 06:40:04
|
A better method would be to place all common code from your inc_header files into a single, seperate include and only use your custom headers to hold that code that differs across templates.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 06 December 2005 : 06:49:36
|
Bah, you beat me to it Shaggy =)
|
/Tribaliztic - www.gotlandrace.se -
|
 |
|
prescottw
Junior Member
 
189 Posts |
Posted - 09 December 2005 : 22:57:43
|
Wow...I think that I can do this. Makes sense. Even change levels per include.
Shaggy, tribaliztic, thank you.
-prescottw |
What day is it anyway? |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 12 December 2005 : 06:38:23
|
You're welcome 
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
|
Topic  |
|