Cant find code for Block for User to choose their own theme

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drujr
Forum Newbie
Posts: 17
Joined: Thu May 13, 2004 1:59 pm

Cant find code for Block for User to choose their own theme

Post by drujr »

Hey all,

I'm looking for a block that allows each user to select an option from a dropdown menu, or something of the sort, that changes the theme of the website for their viewing.

Does anyone know where I can find this?

(Using PHP Nuke)
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

The phpnuke site? Is this not built into the default package already?
drujr
Forum Newbie
Posts: 17
Joined: Thu May 13, 2004 1:59 pm

Post by drujr »

It can be done by the Administrator, and the theme that the Admin chooses is what every user who visits the website can see.

I was looking for one that would allow individual users to choose his/her prefered theme.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

well, my guess would be of course, to use CSS. Have the theme chosen by the user in their user account. Then, when displaying a page, retrieve that theme name from the db, and use the appropriate CSS stylesheet.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply