View Full Version : Change Styles On Any Page
reefland 25th June 2003, 02:13 AM What this does?
If you use multiple styles on your site, this will allow you users to change to the other styles by clicking a link you supply and be returned to the page they were viewing.
Download the attached .zip file and open the readme.txt file for instructions.
This is very easy to implement but I will be happy to provide support if needed.
Future:
Looking for a way to eliminate the additional .php file however $PHP_SELF does not work. If the style is changed from a forumdisplay page, the forumid is stripped from the query string. I am also going to work this so the styles can be selected from a drop down box and so you only need one .php filer regardless of the number of styles.
Enjoy,
Scott Z.
DCz_power 25th June 2003, 05:28 AM ill take a look at it now :)
Floris 25th June 2003, 10:42 AM Good work :) Thank you for sharing, I am sure a lot of people have an interest in this.
DCz_power 25th June 2003, 01:05 PM I must say. I looked at this and I dunno about you ppl but, I liked it :P
reefland 25th June 2003, 01:48 PM Thanks. :)
Tony 27th June 2003, 02:43 PM Nice mod, will use it. :)
Sony 22nd August 2003, 06:37 AM Nice :)
alamuae 26th September 2003, 11:17 PM Thanks :)
Floris 30th September 2003, 01:10 PM Maybe use phpinclude, rather then modifications to a file?
Curll 3rd October 2003, 01:14 PM Cool, thanks :)
Preech 4th October 2003, 07:04 AM I wouldn't mind giving this a try.
Daniel C 21st October 2003, 11:58 PM very useful mod reefland thanks for the wonderful mod :D
Daniel P 22nd October 2003, 12:01 AM Might try this too once i relaunch TEN.
Floris 22nd October 2003, 01:20 AM Each file has THIS_FILE set in them .. you can use that in a conditional ? (instead of $php_self)
The Watcher 31st October 2003, 04:17 PM If I have 3 sites that share the same forum does this mean that if i set up three styles for the forum (one corresponding to each site) and link to these styles from my main homepage it will look as though each site has its own forum with its own design ???
Floris 31st October 2003, 04:23 PM I don't know if this hack is made to do that, but with some source code hacking, I am sure it is possible to have a style based on a per URL. I am not aware that such a hack has been released yet.
Walxer 10th November 2003, 02:38 AM Very nice Hack..i already have it,but my question is: Is there a way to upgrade too the style in usercp panel for registered users?Please answer me :D
Thanx
:cool:
jluerken 10th November 2003, 02:07 PM Thanks for sharing it
Floris 10th November 2003, 04:40 PM Very nice Hack..i already have it,but my question is: Is there a way to upgrade too the style in usercp panel for registered users?Please answer me :D
Thanx
:cool:
I don't understand your question?
mtha 11th November 2003, 11:47 PM Is there a way to upgrade too the style in usercp panel for registered users?Please answer me :D
I guess I know what you mean.
you want to click on that link, and the style option in user profile will be changed too, right?
if it's correct, I strongly recommend you NOT to do so. forum interface should not interfere with user profile. If you want to change style option, you should definitely go to UserCP and do that.
Changing $styleid value in URL only switch between styles. This value will be stored, and you will keep seeing the same style if you use the same computer.
If you still WANT to make the changes in user profile, you "could" do that. nothing is imposible. However, it will require changing code, and accessing the database.
good luck
Floris 12th November 2003, 12:30 AM I indeed think you can't do this with just template modding.
Floris 24th November 2003, 12:17 PM lo voi a bajar..... db tar bueno
English please.
|
|