vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change Style Drop-Down (https://vborg.vbsupport.ru/showthread.php?t=33418)

Jakeman 03-24-2002 05:43 PM

i just pmed you too. but i'll post instructions here as well.

a couple things:

1. the mods that the hack has you add into index.php... instead add those to global.php just above the part where it sets the phpinclude, header, and footer templates. in my 2.2.1 global.php it looks like this:

$header='';
$footer='';

// parse PHP include ##################
eval(gettemplate('phpinclude',0,0));

// parse css, header & footer ##################
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");

add the index.php mods just above this section.

2. the templates: in your header use this instead of what the insturctions say to use in your forumhome templates:

<select name="styleid" onchange="window.location=('index.php?s=$session[sessionhash]&changestyle='+this.options[this.selectedIndex].value)">
<option>Select Style...</option>
$dropdownbits
</select>

and in your forumhome_dropdownbit use this instead of what the instructions say:

<option value="$thisstyle[styleid]">$thisstyle[title] ($thisstyle[count] users)</option>

that should do it.

TaP 04-17-2002 10:25 PM

this is impossible i cannot get all the styles showing up... and when i do they cannot select them

pHAZE_1 04-21-2002 04:49 AM

um it didnt work for me. www.hiphoptechnicz.com/forums i did everything right i think, but only the drop shows up, not the styles????

Lorddraco98 04-21-2002 03:24 PM

I seem to be having a problem. I followed all the install steps(I tried both the version that updates user's CP and the one that doesn't, but I get the drop down menu to show on my forum home, but it lists no styles. It's just blank. I have currently 3 user selectable styles so something should show up. Also, how can I get that box(when it does show my styles) to align itself to the left side?

pHAZE_1 04-21-2002 08:22 PM

[QUOTE]Originally posted by pHAZE_1
um it didnt work for me. www.hiphoptechnicz.com/forums i did everything right i think, but only the drop shows up, not the styles????

Lorddraco98 04-21-2002 11:23 PM

phaze_1 what did you do wrong? mine don't show up maybe you can help me!

pHAZE_1 04-21-2002 11:24 PM

AIM= XXGHOZTLYXX

Lorddraco98 04-22-2002 06:49 PM

can anyone else offer some help? I made sure I did all the code correctly. and I placed the new template and the stuff in index.php as well as as the edit in the forum home template. Still nothing shows up in my drop down box, and it's about 1 inch wide. I do have styles that users can select because they are avalable in the user CP under the change styles menu. Also, once I get the styles to show up, how to I get it to center to the left because I want it right under the login area in my welcome panel!

E 05-04-2002 12:59 AM

I have 5 styles on my board. It shows 4 of them. I had a style, which I deleted, which was id#5. I got another one which is id#6. The #6 will not show up. I have went over it all day, and cant figure out what is wrong. I have went over the templates several times. Can someone help?
Thanks in advance,
E

Cynthia Blue 05-05-2002 05:33 PM

Just installed this hack.. it's working great! Thanks! :)

YIKES! I just noticed though.. I use PHPPortals, and there was an option to turn the left menu on and off.. and it is gone. I must have typed over it with the hack. Anyone know the code I can put it back in with? Maybe a variable or so...

Thanks. :p

RDX1 05-14-2002 10:39 AM

im having a problem on my 2.2.5 board, for some reason it only shows 1 style, yet i have two.. and if i change to style 2 in UserCP it shows both, whats up?

pHAZE_1 05-14-2002 11:29 AM

[QUOTE]im having a problem on my 2.2.5 board, for some reason it only shows 1 style, yet i have two.. and if i change to style 2 in UserCP it shows both, whats up?

RDX1 05-14-2002 11:50 AM

ah, lol :devious:

ZeRtEr 05-14-2002 01:56 PM

[QUOTE]Originally posted by pHAZE_1

there has to be atleast 1 user using that style or it will not show up in the drop box..

filburt1 06-03-2002 07:20 PM

Uh, Chen? Look at my styles dropdown...128 members but fewer members than that with style sets defined? :confused:

The only thing I did recently was change two styleids in the db manually to force one of them to be the default.

Lucrecia 06-03-2002 09:34 PM

Nice, I gotta question, if I upload a new style, it doesn't show up on the drop down style option, what do I do to fix this. Is there anyway to have it so it shows even style that no one is using?

Stylez 06-04-2002 03:27 AM

alright, i got a 2.2.6 forum and with 2 styles, it says 137 members on default and 5 on the other. problem is.....well, there are 700 members. help? i got the txt file from the hacks thing.

robin1233 06-10-2002 01:58 PM

This hack is really good, but is there a way to get it to work on the vbportal homepage as well?

ladyfyre 06-18-2002 08:55 PM

Actually FireFly, Could you tell us how to modify it so that we can place the drop-down box in our header, rather than simply on the ForumHome?

please please please????

(ok...so i am a brat...but i DO beg nicely!!!!!)

Admin 06-19-2002 09:10 AM

Place the code in global.php instead of index.php, then use it in the header instead of forumhome.

ladyfyre 06-19-2002 02:46 PM

Nope....that didn't work...i actually tried that one first ;)

It just creates a blank drop down menu with nothing in it.

N9ne 06-24-2002 05:45 PM

AWESOME HACK! Thanks!

chr@nox 07-02-2002 01:43 AM

GREAT hack buddy been looking for this one for ages! thanx

BigJohnson 07-02-2002 03:27 AM

Can someone fix this issue with the styles not showing up when no users are using it please. I really hate to see this hack do this because most people count on the drop down instead of going to there Cp to do it. Thanks so much.

BigJohnson 07-02-2002 04:26 AM

I really think that someone should look into this prob with it not showing up on the switching when you have no users on that style in the forum home. Just read threw the last couple of posts to understand the prob in detail. This really needs to be fixed. Can someone help out and please try to fix this prob. Thanks.

BigJohnson 07-02-2002 02:10 PM

bump

Travis641 07-03-2002 07:12 PM

*bump*

BigJohnson 07-03-2002 10:28 PM

BUMP UMP AND AGIAN AND AGAIN!!!!!!!!!!!!!!

BigJohnson 07-05-2002 12:15 PM

Lets see how many times i can bump this thread.

Roody 07-08-2002 02:31 AM

bump

JJR512 07-10-2002 07:34 PM

I would just like to have the number of users using each style show up by the style name in the drop-down box in the user cp->Edit Options screen. Could someone show me how to do that?

futureal 07-10-2002 08:47 PM

It's very simple, actually.

In member.php, search for $thisstylename to get you near the correct area (exact like is 739 in my modified file in 2.2.6).

Replace:

PHP Code:

   $stylesets=$DB_site->query("SELECT * FROM style WHERE userselect=1 ORDER BY title"); 

With this query from FireFly (line break added):

PHP Code:

$stylesets=$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"
); 

A few lines down, right after this:

PHP Code:

      $thisstylename $thisset['title']; 

Add this:

PHP Code:

      $thisstylecount $thisset['count']; 

Then change the template modifyoptions_styleset to look something like:

PHP Code:

<option value="$thisid$selected$thisstylename ($thisstylecount users)</option

And that should do it. At least, that worked in my forums (I just tried it).

JJR512 07-10-2002 10:31 PM

Thanks! You know, I had tried that EXACTLY, and it didn't work for me...until I saw in your directions that I had one little mistake. I had used $thisstylecount = $thisstyle['count']; instead of $thisstylecount = $thisset['count'];. Oops! Thanks. :)

BigJohnson 07-11-2002 01:47 PM

That works great but still how do you fix that prob if no one is using that style it wont show up in the drop down? HUH. And I don't want to place each style maually in the drop down because I like the feature where it says how many people are using that style. Unless there is another way please help me. Tell me my options. Thanks.

Smoothie 07-12-2002 04:21 AM

register a user for each style that has no users. :)

BigJohnson 07-12-2002 05:48 AM

lol hehehe. What about a real way to fix the prob hehe.

Angelus 07-16-2002 03:01 PM

Hello. Thus only times I excuse for my bad English and secondly legend I thank myself for this hack. But unfortunately I have thereby a problem. If I change thereby the Style, in the User Controll Pannel unfortunately nothing one changes. Thus if someone changes and stores attitudes, he gets the default back Style. Then one there perhaps which make?

countryboy713 07-22-2002 05:38 AM

Can someone Post here on how to fix the un-selected style problem?

A real one, lol, i dont want more empty users on my board than there is already! :D

Kasper_H 07-22-2002 03:43 PM

I love this hack!
Working perfectly :D I don't mind the "bug" which does that styles not used won't show up... I actually think that's good :p

HappyPike 08-16-2002 02:47 PM

I did what futureal wrote in post #112 but the how many users are using each style number is still not accurate. :( Can someone help? I am running 2.26.

My forum


All times are GMT. The time now is 04:18 AM.

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.01401 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete