![]() |
Fixed my own problem VERY easily without needing to recode alot.
Moved the footer code upto my table on FORUMHOME: <td class="alt2" width="150"><div align="center"><select style="font-family:verdana,arial,helvetica,sans-serif;font-size:9px;color:#000000;background-color:#ffffff" name="styleid" id="ressel" onchange="window.location=('$vboptions[forumhome].php?$session[sessionurl]styleid='+this.options[this.selectedIndex].value)"><optgroup label="$vbphrase[quick_style_chooser]">$quickchooserbits</optgroup></select></div></td> Forumhome_dropdownbit: <option value="$thisstyle[styleid]" $stylesel>$thisstyle[title]</option> Forumhome_styleselect: <option value="$thisstyle[styleid]" $stylesel>$thisstyle[title]</option> This is now working on VB3 R4. Aceman |
Did you get it working with counts for each style? (X users) next to each style? I am coming close but haven't found where VB3 creates the dropdown menu yet.
Once I can convert this line PHP Code:
Feel free to PM me if you see this and have any useful information for me. :) |
does this hack work for the latest version of vbulletin?
[QUOTE]In index.php, find this: ========================= // if user is know, then welcome And add this right before that: ================================ // 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) In global.php, find this: ========================= require('./admin/sessions.php'); And replace that with this: ================================ // style drop down box (by FireFly) if (isset($changestyle)) { $styleid=verifyid('style',$changestyle,0); } require('./admin/sessions.php'); if (isset($changestyle)) { if ($styleid!=0) $DB_site->query("UPDATE user SET styleid=$styleid WHERE userid=$bbuserinfo[userid]"); } // style drop down box (by FireFly) Now create a new template, call it forumhome_dropdownbit with this in it: ================================================== ======================== <option value="$thisstyle[styleid]" $stylesel>$thisstyle[title] ($thisstyle[count] users)</option> And last but not least, add the following to your forumhome template anywhere you want: ================================================== ====================================== <select name="styleid" onchange="window.location=('index.php?s=$session[sessionhash]&changestyle='+this.options[this.selectedIndex].value)"> $dropdownbits </select> ========================= Happy holidays everyone! ========================= |
Can anyone tell me how to change the color of the dropdown box? I'd like to to match my forum, if possible.
|
Can someone explain a detailed how-to way to use this for version 2.3.7'
Thanks |
All times are GMT. The time now is 03:13 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|