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


All times are GMT. The time now is 07:28 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.01340 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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