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)

Liz 08-20-2002 12:47 AM

I'm lost. I want to put it into the Header instead of Forumhome. Firefly....you said take the coding out of index.php and put it into global.php....but....where exactly do we put it?

I looked for "// if user is know, then welcome" in global.php but there wasn't anything that fit that. So I'm kind of....lost? :) Any help would be greatly appreciated.

Liz 08-20-2002 08:55 PM

Anyone?

N9ne 08-26-2002 07:08 PM

Hi, If I want the drop down to say "Change Style" normally and when you click on the arrow you get the list up, how can I do that? I tried putting <option value="">Change Style</option> in forumhome_dropdownbit before the contents of it and it still showed Default [2 Users] as the default view for the dropdown

So basically I want the name of the dropdown to be Change Style...

N9ne 08-27-2002 06:32 PM

bump!!!

Kamui Shirou 09-14-2002 07:41 PM

hello. i've a problem. i read trough the tex but nothing worked.
Example:
I have two Styles. one Dark and one purple.
when i change the style with the quickchange it dont update
the users currently use this style. only i`ve you change the style in your CP it updates it.

help me

Malice 09-24-2002 07:14 PM

Does this hack, work on the current versions, 2.2.7 or 2.2.8?

Anyone?

NTLDR 09-24-2002 09:43 PM

Should work fine :)

Smoothie 10-02-2002 03:41 AM

What is need to get this hack to work with Netscape?

Smoothie 10-04-2002 02:36 AM

^^ bump

\ \ - Speedy - / / 10-10-2002 08:06 PM

where do you put the code in the forumcome, cuz I want it like this fourm has it, but I cant figure it out :(

ZiRu$ 10-14-2002 06:58 PM

installing it RIGHT NOW :) hope it works good

N9ne 10-14-2002 07:15 PM

[QUOTE]Originally posted by ZiRu$
installing it RIGHT NOW :) hope it works good

Velocd 10-19-2002 11:14 PM

This hack works fine, but the only problem I've noticed after installing (and everyone else has also) is that when you select a style it doesn't update it in the database.

I also have the "show style in postbit" hack, and the style shown is not being updated after I update it through the drop down.

It would be great if somebody attach the version of this hack that works precisely as it does here on vBulletin.org, in the next post.

Velocd 10-19-2002 11:16 PM

Edit: my bad, vBulletin.org doesn't update either! so that's just a bug that hasn't been fixed then..or has anybody got the postbit style showing to update with the dropdown-style change as well?

Velocd 10-20-2002 12:02 AM

Ah ha! Figured it out...ok, just ignore my above two posts.
I was lazy and left out a very important variable in the 2nd hack on page #3 that was replaced as something different on the 1st hack on page #1.

/me shrugs, then walks away.

Tony DiMera 10-20-2002 02:01 AM

I have never had a problem with it ever.

Dynamic One 11-05-2002 09:53 AM

Thanks for this great hack m8.

Dolamite 11-07-2002 03:53 AM

nobody has fixed the problem with the style not showing up unless a member is using it.....i assume?

seems like a common request...... :banana:

fataldreams 11-17-2002 06:13 AM

Hi,

I installed this tonight, and found the fixing the problem most people are having with not all the styles showing up (only the "in use" ones), is quite simple. Nothing technical... I just created a username in my CP for each of my styles (currently 4) and set each username to one of the four styles. So I have 4 unused usernames, big deal. It works :D And everything is updating properly.

wolfe 11-17-2002 03:59 PM

firefly m8 is there a way to add it to the functions.php file so i can have the dropdown on all pages of my site :D

Smoothie 11-17-2002 11:46 PM

There is a better way. At vbtemplates there is a template only mod which will display all styles, regardless if no one uses it. It's easier to install, and requires 2 template edits. Also requires 1 less query on your forumhome page. I've used both, and the one with just template edits is much better. The only downside is that it does not show how many members are using which style, hence one less query. :)

Mathiau 11-22-2002 09:06 AM

^^^^

does it update it in the database??

Anitah 12-10-2002 02:22 AM

[QUOTE]Originally posted by Smoothie
There is a better way. At vbtemplates there is a template only mod which will display all styles, regardless if no one uses it. It's easier to install, and requires 2 template edits. Also requires 1 less query on your forumhome page. I've used both, and the one with just template edits is much better. The only downside is that it does not show how many members are using which style, hence one less query. :)

N9ne 12-10-2002 03:58 PM

I'm not sure if this has been posted in this thread yet, but everyone should make sure forumhome_dropdownbit (or something like that) is placed in the templatesused variable, to reduce a query on forumhome...I just got done cutting down loads of queries from forumhome and that was one of them.

Bison 12-10-2002 04:34 PM

N9ne, Could you name a few other's that you found to minimize queries in you forumdisplay.php?

N9ne 12-10-2002 05:05 PM

forumhome is the one I modified ;)

Bison 12-10-2002 08:00 PM

You don't add templates to a template ... you add them into the php code right?

If you did this ... could you share with us some of the templates that you added to your index,php and forumdisplay ... mate?

N9ne 12-10-2002 08:38 PM

I think you misunderstood. See in any vB file, when a call to a template is made, it adds one extra query. Now in most vB files, there is a $templatesused variable, should you call a template in the file somewhere, you must take the name of the template and add it to the list of templatesused in the file...this will ensure that it's not running an extra query.

Open index.php and find $templatesused and add forumhome_dropdownbit to the list (I think it is forumhome_dropdownbit).

Bison 12-10-2002 08:46 PM

I figured that out dude ... but you mentioned that you curved a lot a queries placing templates into your php files ... that's waht i'm looking for ...

N9ne 12-10-2002 08:51 PM

That depends on what hacks you have installed, etc. Just go through showthread.php, forumdisplay.php, index.php, newreply.php, editpost.php, newthread.php (the main files) and find all gettemplate calls, look at the template name and see if its in a templatesused variable in the file, if not, add it.

Taco 12-11-2002 08:58 PM

i read about 5 pages and didnt find my answer. I have about 15 styles that are on my board (Different style for each board). What i'd like to have it so on the drop down list, it only shows 3 of the ones i choose, instead of ALL my styles. What would i have to change to do this?

tccra 12-29-2002 04:14 AM

Ver. 2 (the one that updates the database) is working flawlessly from the User CP. Updating the style, updating the database every time.

However, from the home page, it only works sporadically. It updates the style every time, but only updates the database intermittently. Sometimes when changing the style from the home page, and then going to User CP, the change has taken effect in the database. Other times when changing the style from the home page and then going to User CP, the change has not taken effect in the database.

???

http://www.tccra.org/forums

Units 12-29-2002 08:07 PM

The style drop down box is empty for me!
:(!

Jean147 12-30-2002 03:07 AM

[QUOTE]Originally posted by Units
The style drop down box is empty for me!
:(!

Smoothie 12-30-2002 04:37 AM

[QUOTE]Originally posted by Anitah


smoothie, you wouldn't have a direct link to that mod, would you? Because I've searched at vbtemplates and only see posts directing people back to vbulletin.org for the hack.

Tony DiMera 12-30-2002 08:51 PM

I was wondering if it were possible to have it have styles that no one is using? So therefore it will say 0 next the the styles that are not being used.

ToXiC 12-31-2002 07:18 AM

ok, heres the latest fix. It fixes the problem when no one has the style selected, you cannot change to that style..

Change this line

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

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

Hope it helps out.. :)

Anitah 01-01-2003 12:16 AM

[QUOTE]Originally posted by Smoothie
Here ya go, must register to download:
http://www.vbulletintemplates.com/mo...style+dropdown

Smoothie 01-01-2003 03:41 AM

[QUOTE]Originally posted by Anitah


Wow, smoothie, you're always so helpful :knockedout:

Thank you!

HAPPY NEW YEAR! :)

incarnus 01-03-2003 08:31 AM

I've installed the second version that updates the User CP, and everything is displayed as it should be, but when I click on a new style nothing happens. I'm on 2.2.8. Any ideas?

Thanks in advance.

www.rivercityf-bodies.com/forums

EDIT: Nevermind, I reinstalled it and it works fine. Evidently I'm just stupid. :rolleyes:


All times are GMT. The time now is 09:10 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.06231 seconds
  • Memory Usage 1,809KB
  • 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)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