#51851
01/16/2002 12:06 PM
|
Joined: Sep 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 12 |
Would anyone be able to either show me how or create a hack/mod to allow linking to a file for the header and footer that u can specify for each page, it would be ideal for me that way when i update the header of my website, i would not have to copy the html code into the cp, it would be a really handy hack and would definatly get my praise!
Toolazy for a siggy
|
|
|
#51852
01/16/2002 3:47 PM
|
Joined: Nov 2001
Posts: 198
Member
|
Member
Joined: Nov 2001
Posts: 198 |
just use ssi... you stick your ssi code in the header&footer and then modify the included files if you need to change...
Just another boring 17-year-old and yes, I like smilies/graemlins
|
|
|
#51853
01/16/2002 7:06 PM
|
Joined: Sep 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 12 |
ah cool thanks, but it would still be a nice hack to have like a input field u enter the file path and away u go, for the people who dont know SSI (like me)
Toolazy for a siggy
|
|
|
#51854
01/16/2002 8:38 PM
|
Joined: Sep 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 12 |
so what code would i use?, i tried and all it prints is the above and not the actual file? any ideas, or enliten me further please
Toolazy for a siggy
|
|
|
#51855
01/19/2002 10:31 AM
|
Joined: Nov 2001
Posts: 198
Member
|
Member
Joined: Nov 2001
Posts: 198 |
use this: if you need to access a file in another dir... [ 01-19-2002 02:36 PM: Message edited by: pumpkin ]
Just another boring 17-year-old and yes, I like smilies/graemlins
|
|
|
#51856
01/19/2002 3:39 PM
|
Joined: Sep 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 12 |
i found cgi would not work, in the end i found out how i could hack the UBB to do it, simple solution go into public_common.pl find the header, above the header go $header = &openfileasvar(filename); then inside the header when u want to add the page just type $header and it includes the file, u can see it doing it at www.themodplace.co.uk
Toolazy for a siggy
|
|
|
#51857
01/19/2002 3:56 PM
|
Joined: Dec 2001
Posts: 699
Member
|
Member
Joined: Dec 2001
Posts: 699 |
For cgi you have to use #exec cgi (I believe) and in most cases you have to name your pages with SSI with the .shtml extension.
|
|
|
#51858
01/20/2002 6:25 AM
|
Joined: Sep 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Sep 2001
Posts: 12 |
my way cuts out all the hastle, anyway thanks for everyones help
Toolazy for a siggy
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|