Version: , by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 12-21-2001
Last Update: Never
Installs: 206
No support by the author.
This is exactly what you see here, on this board's main page.
It allows you to easily change the style you are using.
Please note that it does not update your user profile as well, it simply sets a cookie, and until it expires you will see the style you selected.
Anyhow, download the attached .txt file and do what it says.
Scroll down to a post by me if you'd like the hack to update the user setting in the database!
The attached version does NOT do that!
Have fun and happy holidays!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
There is a better way. At vbtemplates there is a template only mod which will display all styles, regardless if no one uses it. It's easier to install, and requires 2 template edits. Also requires 1 less query on your forumhome page. I've used both, and the one with just template edits is much better. The only downside is that it does not show how many members are using which style, hence one less query.
[QUOTE]Originally posted by Smoothie There is a better way. At vbtemplates there is a template only mod which will display all styles, regardless if no one uses it. It's easier to install, and requires 2 template edits. Also requires 1 less query on your forumhome page. I've used both, and the one with just template edits is much better. The only downside is that it does not show how many members are using which style, hence one less query.
I'm not sure if this has been posted in this thread yet, but everyone should make sure forumhome_dropdownbit (or something like that) is placed in the templatesused variable, to reduce a query on forumhome...I just got done cutting down loads of queries from forumhome and that was one of them.
I think you misunderstood. See in any vB file, when a call to a template is made, it adds one extra query. Now in most vB files, there is a $templatesused variable, should you call a template in the file somewhere, you must take the name of the template and add it to the list of templatesused in the file...this will ensure that it's not running an extra query.
Open index.php and find $templatesused and add forumhome_dropdownbit to the list (I think it is forumhome_dropdownbit).
I figured that out dude ... but you mentioned that you curved a lot a queries placing templates into your php files ... that's waht i'm looking for ...
That depends on what hacks you have installed, etc. Just go through showthread.php, forumdisplay.php, index.php, newreply.php, editpost.php, newthread.php (the main files) and find all gettemplate calls, look at the template name and see if its in a templatesused variable in the file, if not, add it.