Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

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.

Comments
  #182  
Old 02-05-2003, 01:30 AM
SONOFSAM SONOFSAM is offline
 
Join Date: Feb 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didnt make it, but i had it on my forums:

add to the end of the phpinclude template:

PHP Code:
if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
    
$result mysql_query("SELECT styleid,title FROM style WHERE userselect=1 ORDER BY title");
    if (!
$result)
    {
        
$styledropdown 'Couldn\'t get a list of styles';
    }
    else
    {
        
$s mysql_fetch_row($result);
        while (
$s != false)
        {
            
$styleid $s[0];
            
$title htmlspecialchars($s[1]);
            
$selected = ($styleid == $bbuserinfo[styleid]) ? " selected" "";

            
$styledropdown .= "<option value=\"$styleid\"$selected>$title</option>";
            
$s mysql_fetch_row($result);
        }
        
$shash $session[sessionhash];
        
$styledropdown "
            <select name=\"newstyleid\" onChange=\"window.location='index.php?s=
$shash&styleid=' + this.value\">
            
$styledropdown
            </select>"
;
    }



Then add to forumhome template where you wish to show:

PHP Code:
<td align="center">
<
smallfont><b>Change Style</b></smallfont><br>$styledropdown<br
or you can put in the header to show on every page generated.
Reply With Quote
  #183  
Old 02-06-2003, 10:59 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SONOFSAM: that will always take them to the forumhome page, not to their current page
Reply With Quote
  #184  
Old 02-06-2003, 12:38 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

leviw, ego:

https://vborg.vbsupport.ru/showthrea...threadid=48596

and:

https://vborg.vbsupport.ru/showthrea...threadid=48597

Enjoy! :up:
Reply With Quote
  #185  
Old 02-06-2003, 05:18 PM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Kura! Still checking out all the diferences and deciding which is best for my situation.

The first has an extra query and is simpler, shows # of users on each style?

The second has no query, requires more setup and doesnt show # of users. Loads quicker but extra work.

Just wanted to simplify the differences. =)
Reply With Quote
  #186  
Old 02-06-2003, 10:17 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, those are the differences.

First one requires a query for every page load, second one doesn't, though "more setup" - it's 1 step, in which you upload a file to your admin directory and run it, that's about it for `more setup`.....

If you don't constantly add / remove more Styles to/from your site, or if you don't have much space for the drop down box in your header (me for both) then the hardcoded version is your best choice
Reply With Quote
  #187  
Old 02-26-2003, 02:31 PM
jancarlo jancarlo is offline
 
Join Date: Feb 2003
Location: Italia
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Premetto that is Italian and use a translator in order to write to
you, I hope that you understand to me.

A question: how never I that I have 2500 user it is I have installed 3
stily I see on one style 603 user on one 7 users alone and last the 31
users?

And like never when change quati style I do not see the variation of
they use it in real time?

Practically the contatore not conteggia, that it is for that one?

I know that in all these post could are to us the solution but they
are many and of English I understand some little

Thanks and Hello jancarlo
Reply With Quote
  #188  
Old 04-01-2003, 08:51 PM
gengar003's Avatar
gengar003 gengar003 is offline
 
Join Date: Apr 2002
Location: .::|The Matrix|::.
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the style drop-down... but none of my styles showed up... why is that?
Reply With Quote
  #189  
Old 04-13-2003, 03:10 AM
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Location: Downunda.
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do you change it so that on vb 2.3.0 when a user signs up his styleid is not 0 but soemthing different, so Default Vb Style Doesn't show in the drop down?
Reply With Quote
  #190  
Old 04-14-2003, 07:55 PM
groovesalad groovesalad is offline
 
Join Date: Aug 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had this installed on 2.2.8, but when I install it on 2.3.0, it doesn't seem to change the styles...any ideas?
Reply With Quote
  #191  
Old 04-17-2003, 07:46 PM
Rapdis's Avatar
Rapdis Rapdis is offline
 
Join Date: Mar 2002
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh my god... lol

is there a final version?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07751 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete