Previous Thread
Next Thread
Print Thread
Rate Thread
#121832 07/15/2001 4:10 AM
Joined: Apr 2001
Posts: 342
Member
Member
Offline
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
Sponsored Links
#121833 07/15/2001 11:57 AM
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. smile Hope that helped.


- Allen wavey
- What Drives You?
#121834 07/15/2001 1:03 PM
Joined: Apr 2001
Posts: 342
Member
Member
Offline
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
#121835 07/16/2001 9:40 AM
Joined: Apr 2001
Posts: 342
Member
Member
Offline
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
#121836 07/16/2001 9:51 AM
Joined: Mar 2000
Posts: 204
Member
Member
Offline
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.
Sponsored Links
#121837 07/16/2001 10:04 AM
Joined: Apr 2001
Posts: 342
Member
Member
Offline
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! laugh


[Linked Image]
Sex is like air, you don't realise how important it is 'til you're not getting any
#121838 07/16/2001 12:01 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
How exactly would you do it in PHP?

#121839 07/16/2001 12:52 PM
Joined: Mar 2000
Posts: 204
Member
Member
Offline
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.. smile

[ July 16, 2001 01:01 PM: Message edited by: The Donut ]


-Never Underestimate The Power Of Stupid People In Large Groups.
#121840 07/16/2001 1:03 PM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Thanks. I will try it.

#121841 07/17/2001 4:22 AM
Joined: Apr 2001
Posts: 342
Member
Member
Offline
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
Sponsored Links
#121842 07/17/2001 11:21 AM
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
That is PHP, not CGI.

#121843 07/17/2001 4:02 PM
Joined: Apr 2001
Posts: 342
Member
Member
Offline
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

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)