Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #202  
Old 07-15-2003, 04:59 AM
Liz's Avatar
Liz Liz is offline
 
Join Date: Nov 2001
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting a weird problem wih 2.3.0.

First the default style wasn't showing up. So I went in and selected it for my style. And it worked.

But now it only says that one person is using it when in reality over 200 are. Any ideas on how to get the correct user count?

Edited: I think I figured out what the problem was. I'm just not sure how to fix it.

on 2.3.0 - when you go to select a style in your user CP, the first one that shows up is "use forum default" - I think that's what the problem is. I've also installed the "What styles are we all using" hack, and that comes up blank for all the people who had Default since that's the spot where "use forum default" now is. But if I go into someones account through the admin CP and I change their style to the Default one, it adds a number and it shows up on postbit (what styles are we all using).

Any ideas on how to get rid of the "use forum default" thing? I took it out of the template it was in through the admin CP, but it still isn't working. So I'm guessing I need to take it out of one of the php files. I just don't want to mess anything up. Anyone have any ideas?

Edited Again: bluecat - Try going into your own User CP and selecting the style that doesn't show up. It probably isn't selected, so I'd try using it yourself, and then it should work.
Reply With Quote
  #203  
Old 08-06-2003, 08:38 AM
TutorialForums TutorialForums is offline
 
Join Date: Feb 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine stopped working correctly after upgrading to 2.30 as well. Hopefully someone can post a fix.... a lot of my users are a bit confused about it suddenly not working as usual haha

Peace.
Reply With Quote
  #204  
Old 09-11-2003, 02:22 AM
willyfoo willyfoo is offline
 
Join Date: Aug 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=N9ne]For me it has worked in 2.2.4, 2.2.5, 2.2.6, 2.2.7 AND 2.2.8...so there should be no problems
Reply With Quote
  #205  
Old 10-07-2003, 03:32 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, look like i got a same problem as every1 might get.
I added the code as instructions, but it only show the current style, not the drop down one. so i cant chose them
any suggestions ?
Reply With Quote
  #206  
Old 10-07-2003, 06:43 AM
MaDCaT75 MaDCaT75 is offline
 
Join Date: Jul 2003
Location: Southern California
Posts: 718
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about if you wanna put in the dropdown thing: "Choose your style here:" ?
Reply With Quote
  #207  
Old 11-04-2003, 03:12 PM
ronb ronb is offline
 
Join Date: Jun 2003
Location: fl
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having a problem installing this hack. We're using the .php3 versions of the files for our board. I added the codes and created the template as suggested in the text but when i went from one screen to another i got a 'parse' error. I do not have the full context of the message. We list all the templates in the beginning of the index.php3 file. Do i need to put the new template in that list also? What else could i be doing wrong?

I was able to correct this error but i do not see any drop down box.
Reply With Quote
  #208  
Old 11-05-2003, 12:41 PM
SVTOA SVTOA is offline
 
Join Date: Oct 2002
Location: In a fishbowl
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=pahbi]I fixed my problem, and it works fine now.

First I changed in index.php: (its the bit of code for this hack)

$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect=1 GROUP BY user.styleid");

To:

$allstyles=$DB_site->query("SELECT styleid,title FROM style ORDER BY title");


And then in the forumhome_dropdownbit template I changed the text to read:

<option value="$thisstyle[styleid]" $stylesel>$thisstyle[title]</option>


I don't get a users count anymore, but that really wasn't very important to me anyways. The most important thing is that it lists all of the styles available, and allows the person to choose one, and in that regard, this works perfect for me.

- Pahbi
Reply With Quote
  #209  
Old 11-20-2003, 01:52 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem, I'm using 2.3.3 software and now it won't switch styles. The address bar says it switched but nothing really happend. It only refreshed the page.
Reply With Quote
  #210  
Old 11-21-2003, 02:55 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, is this default in vb3 ? I cant see it AdminCP, how can I make it changeable for users ?
Reply With Quote
  #211  
Old 03-03-2004, 01:45 AM
Aceman's Avatar
Aceman Aceman is offline
 
Join Date: Mar 2002
Location: Virginia, USA
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had this working in VB3 but today when I reverted some templates everything went to hell. I've recoded in the the forumhome, forumhome_dropdownbit, and forumhome_styleselect. I have also tried to code into the index.php file but every single time I put this code:

// style drop down box (by FireFly)
$allstyles = $DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect=1 GROUP BY user.styleid");
$dropdownbits='';
while ($thisstyle=$DB_site->fetch_array($allstyles)) {
if ($styleid==$thisstyle[styleid]) {
$stylesel='selected';
} else {
$stylesel='';
}
eval("\$dropdownbits .= \"".gettemplate('forumhome_dropdownbit')."\";") ;
}
// style drop down box (by FireFly)

The EVAL line gives an error and in VB3 there is no line in the index.php that reads "// if user is know, then welcome" so I don't know where to place this script.. and infact.. get rid of the error.

HELP ME!

Aceman
Reply With Quote
Reply


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 02:33 PM.


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.05894 seconds
  • Memory Usage 2,305KB
  • 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
  • (3)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