https://www.icyphoenix.com/viewtopic.php?f=35&t=5646&p=37805#p37805
-----------------------------------
Lopalong
Wed 01 Apr, 2009 14:19

Re: Vars To Switch Header Location Wanted If Possible
-----------------------------------
Thanks Luca,

I'll have a stumble through it tomorrow. ;)

But so that we are not confused about the small thing I want to do, I'm trying to use IP only as a forum without all of the CMS attributes and overhead.

Just simple stuff that would appeal to lot of people who only want a simple "Forum" though all of the other options would still be there.

And all I really want to do is to have the simplest way to change these banners, and possibly any other "location" script without having to add or modify anything. So maybe it's something that could be added as default vars to IP. :P

Here are two examples of why I would like to change the banners to something that reflects where one is. :P

http://www.lopalong.com/forum/crosswords_index.php
http://www.lopalong.com/forum/smilies_index.php

[b]Update:[/b]

Thanks again, because it works a treat.  8) 

Only I found it didn't need [code linenumbers=false]<?php echo(basename($_SERVER['SCRIPT_NAME'])); ?>[/code] and I assume that has already been echoed previously.

The other thing is, it's more functional with "else" arguments, because with "else" one can not only swap the banners, but the logo's too. ;)

I also don't know if there's any value in writing an example doc for this, because of the variations to different headers, and different arguments for every <?php anchor and .css markup.

And I've spent hours hunting the web for anything on how to add "?mode=page1" etc. Found a lot of stuff - Tried a lot of stuff - Nothing worked! - But then again, no-one else uses PHP_EXT constants either!
:(

So is it possible to add ?mode= too?


