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
  #172  
Old 01-28-2003, 12:54 AM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rename the style not the template.
Reply With Quote
  #173  
Old 01-28-2003, 03:04 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you LeviW ...

I'm having one more issue if there is someone who would be so kind as to help me with this.

When choosing a different style from the dropdown, the change is made and reflected in the number of users for that style. My problem is that when a new Member joins the forum, they are not added to either of the total style users.

For example, I now have 1202 Members using one style and 4 using the other (for a total of 1206), but I have 1212 Members. The last 6 joined since installing this hack and they are not being counted in those totals.

During the installation I had the same problem as others, not all the Members being represented. I ran the query: UPDATE user SET styleid='1' and got all the Members showing up ... but the hack doesn't want to count the New Members now.

I know I could have this hack without those numbers, but I like those numbers ... just hoping they can be correct.

Any suggestions?

Thanks

Destee
Reply With Quote
  #174  
Old 01-28-2003, 04:21 PM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting problem..

I havnt had this situation happen at all, my new users come on and are immediately counted under the default style.

You said you ran a query to update the user set, I'm wondering if that threw off the process somehow. In what context did you run the query?

irate: Arrg. Its a pirate! (Its official, I'm bored.)
Reply With Quote
  #175  
Old 01-29-2003, 12:40 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi LeviW ... and thanks again!

I ran the query as shown via PhpMyAdmin:

UPDATE user SET styleid=1;

Prior to running it, only a small number of Members were displayed (23 using one style and 2 using the other). The following posts seemed to suggest that running it would get all Members displayed ... and it did.

Post#66 - Post#67 - Post#77 - Post#78

I now have 1219 Members with only 1207 reflected in the styledropdown. New Members are not being counted.

I hope the above is what you meant when asking ... in what context I ran the query. Thanks Again.

Destee
Reply With Quote
  #176  
Old 01-29-2003, 06:21 PM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That answers my question, but unfortunatly not yours.

Sorry, I dont know why its not showing correctly. aranoid: Mine's working just fine.

Maybe one of the more profecient hackers can tell ya.
Reply With Quote
  #177  
Old 01-31-2003, 08:27 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LeviW ... thanks again

I'll adjust or remove if I can't get it solved ... it's no real big biggie.

Destee
Reply With Quote
  #178  
Old 02-03-2003, 08:20 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had this hack for a while but I've removed it -somewhat-. I hardcoded my styles in <option > tags and placed the dropdown box in my Header template, adjusted global.php to make sure to put the right querystring into the <select > form action, and now you can change the style on Any given page on my site (if it's generated through the vB engine anyway). Took one query off of forumhome and the only thing I lost with it is knowing how many users have what style....

Neat eh?
Reply With Quote
  #179  
Old 02-03-2003, 08:01 PM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dont spose you feel up for listing your changes as a seperate hack, Kurafire?

I really like your site by the way, especially the different style graphics.
Reply With Quote
  #180  
Old 02-04-2003, 09:08 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll see if I can trace back all the changes I've made to make it work, and if I can, I'll release it as a new hack
Reply With Quote
  #181  
Old 02-04-2003, 11:40 PM
ego ego is offline
 
Join Date: Jan 2003
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats cool

make it please
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 04:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07715 seconds
  • Memory Usage 2,302KB
  • 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
  • (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