![]() |
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. |
Anyone?
|
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... |
bump!!!
|
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 |
Does this hack, work on the current versions, 2.2.7 or 2.2.8?
Anyone? |
Should work fine :)
|
What is need to get this hack to work with Netscape?
|
^^ bump
|
where do you put the code in the forumcome, cuz I want it like this fourm has it, but I cant figure it out :(
|
installing it RIGHT NOW :) hope it works good
|
[QUOTE]Originally posted by ZiRu$
installing it RIGHT NOW :) hope it works good |
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. |
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?
|
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. |
I have never had a problem with it ever.
|
Thanks for this great hack m8.
|
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: |
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. |
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
|
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. :)
|
^^^^
does it update it in the database?? |
[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. :) |
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.
|
N9ne, Could you name a few other's that you found to minimize queries in you forumdisplay.php?
|
forumhome is the one I modified ;)
|
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? |
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). |
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 ...
|
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.
|
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?
|
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 |
The style drop down box is empty for me!
:(! |
[QUOTE]Originally posted by Units
The style drop down box is empty for me! :(! |
[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. |
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.
|
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.. :) |
[QUOTE]Originally posted by Smoothie
Here ya go, must register to download: http://www.vbulletintemplates.com/mo...style+dropdown |
[QUOTE]Originally posted by Anitah
Wow, smoothie, you're always so helpful :knockedout: Thank you! HAPPY NEW YEAR! :) |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|