|
Joined: Apr 2001
Posts: 342
Member
|
Member
Joined: Apr 2001
Posts: 342 |
I'm not sure if this is in the right forum, but here goes. My forum isn't done yet, but I have 93 different style templates, a different one for each forum (There is a good reason for that I assure you). Only thing is, if you are on one forum, and you go to the register page for instance, you have the colour scheme of what has been set originally, e.g 'standard'.
Is there any way I could make the templates of these pages depend on where they have been refferred from? Is it possible or practical for a mod to be made for this?
Thanks!
[ Linked Image] Sex is like air, you don't realise how important it is 'til you're not getting any
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmmm... sounds difficult to do... skorp may have an ideas regarding this in the templates, but make sure the styles are associated correctly in your cp for the transition pages and registration pages as well first, so it doesn't come up in the standard template.  Hope that helped.
|
|
|
|
Joined: Apr 2001
Posts: 342
Member
|
Member
Joined: Apr 2001
Posts: 342 |
That's what I'm trying to do Allen. The transition, registration pages etc. are set to 'standard' which I have edited to my liking. However, I want to set the transition, registration pages etc. to match the template of the 'referrer' if you understand me. I've no idea if it can be done!
[ Linked Image] Sex is like air, you don't realise how important it is 'til you're not getting any
|
|
|
|
Joined: Apr 2001
Posts: 342
Member
|
Member
Joined: Apr 2001
Posts: 342 |
Just givin this a bump....;)
[ Linked Image] Sex is like air, you don't realise how important it is 'til you're not getting any
|
|
|
|
Joined: Mar 2000
Posts: 204
Member
|
Member
Joined: Mar 2000
Posts: 204 |
I know how to do this in php, but not in Perl, sooo... What you could do, is each time you enter the forum, set a cookie with info about what forum/template the user was referred from. Then, when it gets to a transition page (or what not), it calls that cookie for the style info..
That's what I would do, but that's just me..
-Never Underestimate The Power Of Stupid People In Large Groups.
|
|
|
|
Joined: Apr 2001
Posts: 342
Member
|
Member
Joined: Apr 2001
Posts: 342 |
Sounds good...I have just one question though. Erm...how the donald duck (Bit of cockney rhyming slang there:D) do I do that? Oh yeah, and why did you have to choose such a tasty sounding nickname, you just made me drool all over my keyboard! 
[ Linked Image] Sex is like air, you don't realise how important it is 'til you're not getting any
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
How exactly would you do it in PHP?
|
|
|
|
Joined: Mar 2000
Posts: 204
Member
|
Member
Joined: Mar 2000
Posts: 204 |
if ($styles) { setcookie("styles","(call style variables here)","(however long you want it to last)"); } else { (same thing here); } ?> then you would call $styles[0 .. whatever] where you wanted those vars.. you would do that on forum pages.. then on the transition pages, you would just call the cookie.. I think you would just call it, considering the cookie is still alive.. or if it wasn't, you would just use: setcookie("styles","(styles for that template here),"however long you want it to last"); and that would create the cookie for it to use.. Cal or someone else could probably tell you an easier way to do it, but anyways.. EDIT: For the record, iamcal.com (the only one that I've seen do it) has the little thingy where you can change the colors of the site and they stay that way.. This should be pretty much the exact same thing.. But this would be in Perl, not in php.. sooo.. [ July 16, 2001 01:01 PM: Message edited by: The Donut ]
-Never Underestimate The Power Of Stupid People In Large Groups.
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
|
|
|
|
Joined: Apr 2001
Posts: 342
Member
|
Member
Joined: Apr 2001
Posts: 342 |
Er...woh! Donut, I don't understand a bit of that. I am by no means a good coder, and that goes for any language, where do I put all that stuff?
[ Linked Image] Sex is like air, you don't realise how important it is 'til you're not getting any
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
|
|
|
|
Joined: Apr 2001
Posts: 342
Member
|
Member
Joined: Apr 2001
Posts: 342 |
Ah right, well how do I do it in CGI?
[ Linked Image] Sex is like air, you don't realise how important it is 'til you're not getting any
|
|
|
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: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|