View Full Version : What style are we all using?
Gary King
03-27-2004, 10:00 PM
NOTE: Make sure all your styles have different display orders (only if they are in the same grouping). For instance, don't have 2 styles each with the display order of '1' otherwise this hack will just show 'Style: ' and no style shown.
This hack will show each users current selected style when viewing a post.
If you want to see how this looks, take a look at the screenshot attached.
The style system is a little more complex than the vBulletin 2 one, but it's still pretty simple and straightforward.
My apologies if this has already been released! I must also note that all of this code is original, meaning I made it all myself, I didn't look at someone else's code if anyone was wondering, so that we don't play the 'blame game' later on.
NOTE: For those who are wondering, this hack adds NO EXTRA QUERIES to your pages! Meaning the load and processing time are about the same as usual, they don't change much :)
Okay anyhow, here we go:
Instructions
Open includes/functions_showthread.php and find static $gotrank, $sigcache, $sigperms, $gotage, $month, $day, $year, $counter;
Above, add: global $stylechoosercache, $vbphrase;
Find eval('$retval = "' . fetch_template($maintemplatename) . '";');
Above add // check what style the user is viewing
if (!$post['styleid'])
{
$post['style'] = '(' . $vbphrase['not_specified'] . ')';
}
else
{
// loop thru the $stylechoosercache to see which style the user is using, has to loop thru a few times
foreach ($stylechoosercache as $parentstyle)
{
foreach ($parentstyle as $innerstyleid)
{
if ($innerstyleid[0]['styleid'] == $post['styleid'])
{
$post['style'] = '<a href="' . $vboptions['forumhome'] . '.php?' . $session['sessionurl'] . 'styleid=' . $post['styleid'] . '">' . $innerstyleid[0]['title'] . '</a>';
continue;
}
}
}
}
Open the postbit template (or postbit_legacy if you're using old-style postbits) and find <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
Above, add <!-- user forum style -->
<div>$vbphrase[style]: <if condition="$post[style] == '$vbphrase[not_specified]'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div>
<!-- / user forum style -->
Now add the following phrase:
Phrase Type: GLOBAL
Title: not_specified
Text: not specified
Title: style
Text: Style
All done! :)
ryancooper
03-28-2004, 03:41 PM
Alright first install. . . I love this hack!
Thanks!! :)
DarkJediKiller
03-28-2004, 04:40 PM
Looks good. Excellent job ^_^
Mr. Brian
03-28-2004, 05:32 PM
Well done!
BTW, is there any way that could be able to made that as a link? Whereby user can click on it ? Exactly like what Vb.org having now.
thanks
NuclioN
03-28-2004, 05:46 PM
Ok :) It does not work with childstyles though :( How to do this?
ryancooper
03-28-2004, 07:53 PM
strange i did everything and checked it twice but only get a ":" where it is suposed to go?
Gary King
03-28-2004, 08:39 PM
strange i did everything and checked it twice but only get a ":" where it is suposed to go?
You need the phrases to add.
Gary King
03-28-2004, 08:39 PM
Ok :) It does not work with childstyles though :( How to do this?
It works for me using child styles :) Show me a screenshot of the style manager so I can see all your styles and childs, etc.
ryancooper
03-28-2004, 08:44 PM
You need the phrases to add.
The phrase is definatly there. jsut tryed to add it again and got There is already a phrase named 'not_specified'. You may not create duplicate names
there is only 1 phrase correct?
Any other ideas?
NuclioN
03-28-2004, 08:53 PM
It works for me using child styles :) Show me a screenshot of the style manager so I can see all your styles and childs, etc.
Ok :)
Xenon
03-28-2004, 08:55 PM
Well done!
BTW, is there any way that could be able to made that as a link? Whereby user can click on it ? Exactly like what Vb.org having now.
thanks
vb.org is using the quick and dirty way, like i call it.
the Style part is not generated, but it's a big if condition test in postbit, (as it was done during the Beta when we didn't want to hack where not needed)
Gary King
03-28-2004, 09:02 PM
The phrase is definatly there. jsut tryed to add it again and got There is already a phrase named 'not_specified'. You may not create duplicate names
there is only 1 phrase correct?
Any other ideas?
Thanks for bringing this to my attention. I fixed it now, for upgrading, just replace global $stylechoosercache;
with global $stylechoosercache, $vbphrase;
ryancooper
03-28-2004, 09:29 PM
Thanks for bringing this to my attention. I fixed it now, for upgrading, just replace global $stylechoosercache;
with global $stylechoosercache, $vbphrase;
Oh good so i wasn't going nutz!! LOL Thanks for a great hack!
Updated but still get teh same thing??
NuclioN
03-28-2004, 09:58 PM
Yes the same here. Or you see a : (when a child style whas chosen) or the phrase '(not_specified)' but if they choose a master style it's correct displayed.
Gary King
03-28-2004, 10:43 PM
Sorry about that guys :)
Add the following phrase:
Title: style
Text: Style
NuclioN
03-28-2004, 10:59 PM
Well...it's the same only now it;s: Style:
Mr. Brian
03-28-2004, 11:05 PM
How about this? Is it possible or not?
Thanks. :)
Well done!
BTW, is there any way that could be able to made that as a link? Whereby user can click on it ? Exactly like what Vb.org having now.
thanks
Gary King
03-28-2004, 11:23 PM
How about this? Is it possible or not?
Thanks. :)
Done, just replace the old code w/new code now.
Gary King
03-28-2004, 11:24 PM
Well...it's the same only now it;s: Style:
Works fine for me.
NuclioN
03-28-2004, 11:44 PM
:( I can't see the chosen styles (see attach)
Boofo
03-29-2004, 12:05 AM
vb.org is using the quick and dirty way, like i call it.
the Style part is not generated, but it's a big if condition test in postbit, (as it was done during the Beta when we didn't want to hack where not needed)
Any way I can get that from you or find out the code for it? ;) I like the template mods a lot better.
Gary King
03-29-2004, 12:15 AM
:( I can't see the chosen styles (see attach)
What's the forum URL? I can't see the style in postbit in your profile URL.
Mr. Brian
03-29-2004, 02:14 AM
Done, just replace the old code w/new code now.
Got it! Thanks a lot. :)
BarBeQue
03-29-2004, 09:40 AM
This sounds like a greta hack.
Unfortunately i only have 1 style on my board so it's pretty obvious what style everybody uses :D
* BarBeQue is too lazy to install multiple styles and apply have to apply template hacks to all the styles :(
Gary King
03-29-2004, 06:58 PM
This sounds like a greta hack.
Unfortunately i only have 1 style on my board so it's pretty obvious what style everybody uses :D
* BarBeQue is too lazy to install multiple styles and apply have to apply template hacks to all the styles :(
Just make one parent style and then you only need to modify one template and it will affect all styles ;)
Mike_XBLW
03-29-2004, 08:33 PM
I installed it...but for any style but the Parent, it leaves a blank space...no text...help
Gary King
03-29-2004, 11:16 PM
It works for me using child styles :) Show me a screenshot of the style manager so I can see all your styles and childs, etc.
Mike_XBLW
03-30-2004, 02:06 AM
OK...here's the screenie for you to look at
BarBeQue
03-30-2004, 05:35 AM
Just make one parent style and then you only need to modify one template and it will affect all styles ;)
Hmm, going slightly off-topic here but....
How does that work if another style has slight changes in the hacks.. for example take vb.org here.. I noticed that the green style uses w ared /me line while the blue style has a yellow line
Gary King
03-30-2004, 12:31 PM
Hmm, going slightly off-topic here but....
How does that work if another style has slight changes in the hacks.. for example take vb.org here.. I noticed that the green style uses w ared /me line while the blue style has a yellow line
It still works fine if a style has changes :) This hack basically doesn't even know (and care) whether or not a style has changes or not :)
Vivi Ornitier
03-30-2004, 05:50 PM
Ya this isn't working properly i think.
It says
Style:
But for some users, it will show the style for them because they choose a certain style which is the forum's default one that I specified in the vboptions. If they choose another style (not child of any style), it will not show it properly.
Gary King
03-30-2004, 06:43 PM
Ya this isn't working properly i think.
It says
Style:
But for some users, it will show the style for them because they choose a certain style which is the forum's default one that I specified in the vboptions. If they choose another style (not child of any style), it will not show it properly.
Hmm most likely something wrong with the not_specified phrase then.
Replace $post['style'] = '(' . $vbphrase['not_specified'] . ')'; with $post['style'] = '(not specified)'; and tell me if that fixes it.
Vivi Ornitier
03-30-2004, 09:02 PM
no that didn't fix it,
some people have
Style: (not specified)
Some people have
Style: XXXXXXXX
Some peopel just straight up have
Style:
and that's it, lol. I don't understand this hack at all
www.squareultima.com if you wanna take a look at it. The Green style is the original style and the default one and if people choose that style, it will work nice and dandy but if you choose any others, it doesn't show up at all, very odd.
Vb-Hispano
03-31-2004, 11:19 PM
It does not work with dependent styles
Gary King
03-31-2004, 11:54 PM
It does not work with dependent styles
Works for me for dependant styles.
Vivi Ornitier
04-01-2004, 01:05 AM
something is most definitely wrong wiht the code in this hack. I installed it again and the exact same results, it's not even that confusing to instlal.
Mike_XBLW
04-01-2004, 01:08 AM
Works for me for dependant styles.
Perhaps, you could tell me why it's not working for mine....I copied the code and installed as your instructions...but, yet...not working :(
neocorteqz
04-01-2004, 03:43 AM
Works for me for dependant styles. Works for me as well.
Dart1337
04-01-2004, 02:18 PM
Sorry about that guys :)
Add the following phrase:
Title: style
Text: Style
Well... I thought it was working for me. Then I started getting the "Style: " problem too.
* Dart1337 clicks uninstall for now.
Mike_XBLW
04-01-2004, 10:02 PM
OK...for everyone who is having the "Style:" problem...here's the fix...
In the style manager...display order, make sure they don't all have the same number...actually number them 1, 2, 3, 4, etc....
I had all of mine set to 1, but when I changed it, magically, it started working
Gary King
04-01-2004, 11:33 PM
OK...for everyone who is having the "Style:" problem...here's the fix...
In the style manager...display order, make sure they don't all have the same number...actually number them 1, 2, 3, 4, etc....
I had all of mine set to 1, but when I changed it, magically, it started working
Ah yes, thanks for this :)
Vivi Ornitier
04-02-2004, 06:16 PM
very nice, lol, what an easy fix too. Seems like you coded it very well, just a small little thing t hat you diddn't expect your fellow hack users to do. good job on the hack gary and good correction on that mike ;)
calvinnguyen
04-14-2004, 03:05 AM
OK...for everyone who is having the "Style:" problem...here's the fix...
In the style manager...display order, make sure they don't all have the same number...actually number them 1, 2, 3, 4, etc....
I had all of mine set to 1, but when I changed it, magically, it started workingYeah, this is working.
But some users display:
Style: xxxxxxx
some users display:
Style:
some users display:
Style: not specified
***I know why for user had display Style: not specified, but how come some users still have display
Style:
calvinnguyen
04-14-2004, 03:10 AM
How do we count each style have many users used it?
Gary King
04-14-2004, 12:53 PM
How do we count each style have many users used it?
That's somewhat a new hack altogether; although if you know how to code it yourself, here's a query to get you started:
SELECT styleid, COUNT(styleid) AS count FROM user GROUP BY styleid
lazserus
04-21-2004, 12:53 AM
For some reason this is not working for me. I'm not getting any errors, but nothing happens. It's weird. It's simple enough and I followed the directions to the T. Yet, the style doesn't show up at all.
I tried to post a screenshot, but the server kept getting reset. It's not really necessary, though. Imagine what your board looks like w/o this hack installed and you've got my problem. I've got the hack installed, but nothing has changed.
Gary King
04-21-2004, 11:15 AM
For some reason this is not working for me. I'm not getting any errors, but nothing happens. It's weird. It's simple enough and I followed the directions to the T. Yet, the style doesn't show up at all.
I tried to post a screenshot, but the server kept getting reset. It's not really necessary, though. Imagine what your board looks like w/o this hack installed and you've got my problem. I've got the hack installed, but nothing has changed.
If you're using old style postbits, then modify postbit_legacy instead of the postbit template
lazserus
04-21-2004, 04:11 PM
You know what, that must be it! I am using legacy and I didn't even put it together. Thanks! :surprised:
lazserus
04-21-2004, 10:29 PM
This is working just like it was designed and I love it. I have one question, however. Is there a way to make is to that someone who uses "Forum Default" is not classified as "unspecified"? Say if the forum default style is called "Bob" and the standard user just uses the forum default -- is there some kind of if condition that could be put in place that would point it to whichever style is the forum default? I hope I'm making sense. So, if user Joe is using forum default the postbit would display "Bob" instead of unspecified.
Also, what does it mean if the Style: is blank? I apologize if this has all been mentioned before in this thread. I thought I read everything, I swear. :nervous:
Gary King
04-21-2004, 11:45 PM
This is working just like it was designed and I love it. I have one question, however. Is there a way to make is to that someone who uses "Forum Default" is not classified as "unspecified"? Say if the forum default style is called "Bob" and the standard user just uses the forum default -- is there some kind of if condition that could be put in place that would point it to whichever style is the forum default? I hope I'm making sense. So, if user Joe is using forum default the postbit would display "Bob" instead of unspecified.
Also, what does it mean if the Style: is blank? I apologize if this has all been mentioned before in this thread. I thought I read everything, I swear. :nervous:
Okay I have made some important changes to the hack now. What you suggested is now a default part of the hack.
Also, the Style: being blank is explained in first post (it's in red.)
lazserus
04-21-2004, 11:56 PM
You are now a holy man in my book. That's so cool of you to do. I apologize for neglecting what you said in post #1, I hadn't read that one in a few days.
/me installs and clicks install
lazserus
04-22-2004, 09:57 PM
This is kind of an addition to Barbeque's question about the color - is there a way to define the color? All my styles display it in red, but it doesn't show up as well in red with certain backgrounds.
Gary King
04-22-2004, 11:30 PM
This is kind of an addition to Barbeque's question about the color - is there a way to define the color? All my styles display it in red, but it doesn't show up as well in red with certain backgrounds.
Display what in red?
KamuiX
04-23-2004, 05:11 AM
Working beautifully for me, Gary. Awesome hack and easy to install, thanks! :D
*clicks install*
lazserus
04-23-2004, 04:35 PM
Display what in red?
Sorry, I was a bit vague. The text output is red. While in the Dark Blue style on vB.org is yellow, all of my styles default to red.
So, what I'm asking is if there's a way to customize the color of the ./me text?
Gary King
04-23-2004, 06:47 PM
Oh; that has nothing to do with this hack. Anyways, try asking in its appropriate support thread.
Dan P.
04-25-2004, 12:24 PM
Ok..this is a stupid question but it's driving me crazy. Where is the Open includes/functions_showthread.php ? Is it in the template manager or on the server itself. I found a showthread.php on the server but that didn't have the text to replace in there and I couldn't find it in the template section.
Gary King
04-25-2004, 01:41 PM
It's in the server, in the includes folder.
Dan P.
04-25-2004, 02:39 PM
Thanks Gary, for the help and the hack.
Dan P.
04-25-2004, 03:29 PM
Ok..I installed the hack and it shows - Style: ()
dutchbb
04-25-2004, 03:41 PM
thanks but:
why does it show "Default Style" for some members and for others just the name of the default style??
Can this be changed?
And for some it shows no style at all?
ps: another prob: when I choose a style wich is not default I see "(not specified)" in users postbit who have choosen the default style.
So still some work to do with the default style for this hack I think.
Red Blaze
04-25-2004, 03:53 PM
If you get sytle: not specifed or something like go, go to your user cp, under options (I think) scroll all the way to the bottom, it should say "Forum Skin". Choose one of the skins, and save it.
Reason I believe it says Style not specified is because the database couldn't recognize it yet or something. So I believe you have to tell the database what style you're using.
dutchbb
04-25-2004, 04:02 PM
You are right all problems I said are solved if all users choose anything accept "default"
But isn't there a better way to solve this?
Dan P.
04-25-2004, 04:04 PM
It is the default that is causing the problem. All other members who chose different skins are showing up but those with the default are just showing ().
EDIT- Well, I'm a knoob :) I saw Gary's post #33 which explains what to do. I made the change and it shows up correctly.
The way to fix this is to make it so when a user selects a style in the quick dropdown menu on all pages, their selection would be saved in their user info. Otherwise it is just stored with a cookie. Regardless of whether or not someone has say "Default" or "Style A" selected in their UserCP, the hack will not show anything that they select in the dropdown menu. I think making the dropdown menu change the users style the same way it does in the UserCP is the next step for this hack, as that seems to be the problem.
Please fix. :)
kirupa
05-01-2004, 03:45 AM
The way to fix this is to make it so when a user selects a style in the quick dropdown menu on all pages, their selection would be saved in their user info. Otherwise it is just stored with a cookie. Regardless of whether or not someone has say "Default" or "Style A" selected in their UserCP, the hack will not show anything that they select in the dropdown menu. I think making the dropdown menu change the users style the same way it does in the UserCP is the next step for this hack, as that seems to be the problem.
Please fix. :)
Wow - I was about to mention this also. I thought it was an issue only that I noticed. Great hack Gary! If 006's suggestions are implemented, this will be one of the best hacks I have installed! :)
VitroX
05-01-2004, 09:18 PM
have been this hack tested on a vb 3.0.1?
I followed all the steps and it didnt show anything, not even the word "Style:"
The Wise One
05-17-2004, 12:54 PM
is there a way to make this work in member.php? or do i need to take this to the modification/hack request forum?
edit:
i would like to display this info on the page where one goes to view a members profile...right underneath where the referrals are displayed...
Flow Fusion
06-05-2004, 01:15 PM
Clicks install..thanks!
QATAR SPEED
06-12-2004, 07:01 PM
The way to fix this is to make it so when a user selects a style in the quick dropdown menu on all pages, their selection would be saved in their user info. Otherwise it is just stored with a cookie. Regardless of whether or not someone has say "Default" or "Style A" selected in their UserCP, the hack will not show anything that they select in the dropdown menu. I think making the dropdown menu change the users style the same way it does in the UserCP is the next step for this hack, as that seems to be the problem.
Please fix. :)
Hacks works great ... Thanks
But like 006 said if u can fix it with the dropdown menu it will be great ..
Titus
06-16-2004, 02:06 AM
have been this hack tested on a vb 3.0.1?
I followed all the steps and it didnt show anything, not even the word "Style:"
I just installed it on a 3.0.1 board, works great.
alkahf
06-16-2004, 08:10 AM
Hacks works great on a 3.0.1 board ...
Thanks :)
Merjawy
06-22-2004, 11:52 PM
Hacks works great on a 3.0.1 board ...
Thanks :)
Great hack installed it now thnx
one problem.. it will (as suppoed) work with chosen style in usercp (from profile) but if the user changes style from within the forum (quick style chooser) it will not reflect on this hack, the hack will still show whats in the profile !!!
I hope it can read from elsewhere instead.. I am working on that
Big Kahuna
06-23-2004, 02:52 PM
I installed this a month or so ago -- and it worked great until last night when I installed the the avatar_opacity hack.
It appears that both hacks use style as a varible in addition to it also appearing to be a command. The avatar_opacity hack must define the style variable last as it works while the style a member uses is now left blank.
I tried to figure out how to rename the variable in this hack to once again display the style a member uses -- but I'm completely lost.
Please help.
Thanx
Big Kahuna
06-23-2004, 02:59 PM
Please disregard the above -- I think I may have found my problem
My Bad
Big Kahuna
06-23-2004, 03:12 PM
When I started retracing my steps -- I saw that I modified the version of the functions_showthread.php that was just prior to this hack. Rookie mistake that I seldom make. I try real hard to keep all of my programs in snyc -- but dropped the ball on this one.
Anyway -- so that everyone knows, this hack works great and I do not have a compatability issue. Thanx again for this hack.
It can be seen at www.moparstyle.com
BTW -- if anyone ever figures out how to make the style chooser save to the user's CP and not just as a cookie -- post it here as I'd like to really know what styles the users use.
weitalia
07-08-2004, 05:06 PM
Great hack mister! But I want ask is there a way to make the changing of dropdown menu un the bottom left of the forum update the usercp forum skin info?
Thanx in advance and congratulations for the hack ;)
;)
Dark Aura
07-10-2004, 05:57 PM
I installed the hack, but it didn't work for me; I have read this whole thread through and don't know what I have done wrong, however it is the first hack I have ever installed, so I'm not to confident. All I get is Style: Can anyone help?
weitalia
07-11-2004, 10:24 PM
I installed the hack, but it didn't work for me; I have read this whole thread through and don't know what I have done wrong, however it is the first hack I have ever installed, so I'm not to confident. All I get is Style: Can anyone help? Are you sure to have read whole thread? I think no.
Go HERE (https://vborg.vbsupport.ru/showpost.php?p=494305&postcount=41),it's better refresh your memory ;)
;)
Mr. Christopher
07-15-2004, 05:36 PM
I've installed it at www.nothingland.com and while it seems to be working most of the time, I have a small handful of users with a blank "Style:" even though other people with the exact same settings show "Style: (not specified)". The styles are all numbered properly in my Admin CP so that can't be it. Any suggestions? And please be polite, as I am a delicate and beautiful snowflake. ;)
EDIT: Hang on, I think I get it. It's that drop-down menu problem, isn't it?
Dark Aura
07-15-2004, 05:53 PM
Are you sure to have read whole thread? I think no.
Go HERE (https://vborg.vbsupport.ru/showpost.php?p=494305&postcount=41),it's better refresh your memory ;)
;)
mmm I already did that...it doesn't work *shrug*
Genschi
07-19-2004, 12:32 AM
Thanks ! Nice job :)
Genschi
07-19-2004, 12:40 AM
Is there an solution, for the hack auto detect the style ? Example, here, on vbulletin.org, in my postbit there is marked "Style: Smooth Blue" but, I use the Dark blue skin :\ !
The only way to change this, is to modify my option in the usercp, but the style, maydetect automatically, it will be very nice :) !
Thanks !
SlaPPiE
07-19-2004, 07:32 AM
Nice job with the hack, but I would like to know how one would go about to make the information available to insert into the MEMBERINFO template, as I'd find it more logical to place this sort of information into someone's more detailed information instead of in the postbit, where minimal user info is shown.
blubber12
07-27-2004, 01:25 PM
mmm I already did that...it doesn't work *shrug*
Make sure that you have the style ID numbers correct, not the order of the styles. Style X might be number 1 on your board, but it's ID could be number 20.
Glenn379
08-07-2004, 09:34 AM
I never wouldn've used it.. but I found use for it on my new forum :) good job
kirupa
08-10-2004, 12:08 AM
Ok - after upgrading to 3.03, when users use the default style, all they see is ( ) on http://www.kirupaforum.com
Do others have that issue with having a default style selected in vBulletin 3.03?
Great hack!
Thanks alot :)
Caiman
08-24-2004, 01:11 PM
Sorry about that guys :)
Add the following phrase:
Title: style
Text: Style
Easy Hack, Thanks
*click install
italks
08-24-2004, 05:32 PM
where we have to add that phrase.
blubber12
08-25-2004, 12:37 PM
in admincp under languages and phrases. Go to phrase manager and you will see a button for add new phrase.
lazserus
08-26-2004, 04:17 AM
Does this hack have problems with vB 3.0.3? I just upgraded and the upgrade destroyed this hack. I get the Skin: but not a single person on the forums is actually displaying the skin. At first I thought it was just unspecified users having this problem, but apparently now everyone's skin listing is blank. My styles all have unique display orders. The hack was working beautifully until I upgraded. Just in case, I went back step-by-step and re-added the hack and it's still not working. :ermm:
I loved this thing!
italks
08-27-2004, 04:18 AM
i made all changes and i was about to add the phrase but there is a new problem i cant log in to AdminCP.now please help.
Cool Hack.
Seems to half work with me.
It shows most of the styles, but some times it only displays "Style: ()"
Example: http://81.169.188.232/web/united-forum.de/showthread.php?p=600086
Only a few Styles (not the default style) are shown correct.
What did I do wrong? thx for your help.
edit: never mind, thanks.
M?uschen
09-13-2004, 10:39 PM
Nice Hack....
But can the style show without an link to the style of the user?
Now:
Style: vB3 Grey (https://vborg.vbsupport.ru/index.php?styleid=12)
I want only:
Style: vB3 Grey
How can i do this?
Thanks M?uschen.
mholtum
09-14-2004, 12:47 AM
As you can see by the attatched images, something is wrong.
When I went into AdminCP / Languages & Phrases /
1: Add New Phrase
2: Phrase Type : GLOBAL
3: Varname : style
4: Text: Style
So, what did I do wrong?
Milktruck
09-18-2004, 10:26 AM
Easy to set up and very useful. *clicks install*
I would be interested in what the others are:
1) A way to see the number of users using style 1 and style 2, 3, 4 and so on.
2) A way for the Quick Style Chooser to report to the UserCP.
Thank you as always.
Paige4Ever
09-18-2004, 07:08 PM
Hi, is there this hack for vBulletin 2.3.4???
I'm looking for it, but i don't seem to find it
Thanx
TruckMuddr
09-23-2004, 02:35 AM
Hmm, looks like VB.org works fine, maybe they will say how they did there. since it works
Anette
10-01-2004, 02:28 PM
I only get Style:
I have 3.0.3
Anyone can help?
Spookysalem
10-14-2004, 02:26 PM
could some one just explain the phrases thing a little more for me please...i have found the section but i am lost.
Varname --- what do i put in the box next to this.
weaver
10-18-2004, 09:30 PM
Is it only supposed to have the style you've chosen through the user cp? If you change your style using the drop down menu at the bottom of the page then it doesn't accurately show which style you're using. Is it supposed to do that?
blubber12
10-18-2004, 10:17 PM
Yes, as the ones you choose in the drop down are really just temporary. It's basically a way to see what styles are being used. If you choose different ones a lot, it doesn't report that. Maybe it will one day.
blubber12
10-18-2004, 10:18 PM
you put the word style in the varname and the word Style in the text.
Spookysalem
10-19-2004, 08:29 AM
thanks i have got this now.
clicks installed
maddawg138
10-19-2004, 03:10 PM
/me installs
just one problem....it works kinda....im using one style but its still showing im using the default style...but for other users using the same style i am it shows up?
any idea why this is?
blubber12
10-19-2004, 09:46 PM
are you sure that in your user cp, you have that paricular skin chosen?
tHe Rk
10-19-2004, 10:47 PM
* maddawg138 installs
just one problem....it works kinda....im using one style but its still showing im using the default style...but for other users using the same style i am it shows up?
any idea why this is?
Because you probably changed via the "Quick Style Chooser" for it to show up in your posts you have to go to User CP -> Edit Options and change it there.
attroll
10-20-2004, 05:03 AM
Because you probably changed via the "Quick Style Chooser" for it to show up in your posts you have to go to User CP -> Edit Options and change it there.
Well that stinks that is does not work and save when using the Quick Style Chooser. If I use the Quick Style Chooser and change my style and log off and when I log back in it picks up the style I changed to using the Quick Style Chooser from my last seasion. So I can not understand why it does this but does not change in my USERCP? Most users do not go through their ADMINCP to change or set there Style.
maddawg138
10-23-2004, 10:14 PM
Because you probably changed via the "Quick Style Chooser" for it to show up in your posts you have to go to User CP -> Edit Options and change it there.
well that worked thanks...i just dont understand why it wouldnt change on the user cp as well
I noticed a 'bug' if I may call it that.
If you set your preferred style in your profile, it reflect that style. But if you use the style chooser to select a different one, it doesn't reflect that selection. Is there a way to fix this?
weaver
10-28-2004, 04:13 AM
Thanks for the reply. I like a lot of the suggestions that have been made in the thread. Maybe they'll be implemented someday. :)
Yes, as the ones you choose in the drop down are really just temporary. It's basically a way to see what styles are being used. If you choose different ones a lot, it doesn't report that. Maybe it will one day.
Lethal
11-01-2004, 03:00 PM
I installed this hack and it worked good. I only have one style and I changed something in my usercp -> options (where the style chooser would be) and no it just shows up not specified. The only way to have it show up again is to create a new style for the time being so I have a different style to choose then go to my usercp and select the style and then it shows up again. Cause if you only have one style the style chooser don't show up.
HarryBO
11-10-2004, 03:00 PM
Great Hack! Big THX!
Need help..
I am finding a hard time locating this : includes/functions_showthread.php , to start with adding the codes.
can anyone tell me in detail where it is?
thanks in advance
never mind.. i figured it out. :p
between worlds
11-25-2004, 08:57 PM
Ok I did everything as said but its not showing up for me. Could it be because my forums are in linear mode? Its a brand new board so I'm still working on getting everything added. And this is my first hack that I've installed so it could be something I've done wrong.
Example of the only things that are showing up are attached. Any help is appreciated. thanks.
bspiller82
12-19-2004, 09:17 AM
So is there a way to force a user to sue a selected style so you don't see the Style: ?
mp3dreaming
01-03-2005, 02:14 PM
Maybe old, but definatly a good one... :d
Installing..;
dtsrules
01-05-2005, 09:43 AM
<!-- skin select code -->
<form action="profile.php" method="post">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="do" value="updateoptions" />
<fieldset class="fieldset">
<legend><label for="sel_newstyleset">$vbphrase[board_skin]</label></legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<td>
$vbphrase[switch_skin_select]
</td>
</tr>
<tr>
<td>
<label for="sel_newstyleset">Skin:</label>
<select name="newstyleset" id="sel_newstyleset">
$quickchooserbits
</select>
<input type="submit" class="button" value="Go" accesskey="s" />
</td>
</tr>
</table>
</fieldset>
</form>
<!-- / skin select code -->
place the above in your forumhome template and you'll have a working quick style chooser ;)
thanks for the hack!
fridayweb
01-18-2005, 05:02 PM
How would we go about changing this code to add it to a person's profile?
neocorteqz
01-18-2005, 06:47 PM
How would we go about changing this code to add it to a person's profile? add it somewhere in the memberinfo template.
this code, the phrases are global so you can use it anywhere.
<!-- user forum style -->
<div>$vbphrase[style]: <if condition="$post[style] == '$vbphrase[not_specified]'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div>
<!-- / user forum style -->
Gizmo99
01-23-2005, 10:39 AM
DONT USE THE HTML POSTED BY dtsrules it turns off your PM's in your profile !!!
This is a good hack, BUT as loads of peeps have asked, it needs to read the Quick Style Chooser, Pritty Please
Giz
nautiqeman
02-02-2005, 01:37 PM
I see that there's a realstyleid which is the one that the Quick Style Chooser uses -- but how can we get the name of the style by using the id??
boiboi
02-02-2005, 05:11 PM
installed it but most users style displays (style not specified) can someone post an sql query on how to change everyone's style? thanks
ogden2k
02-05-2005, 04:17 PM
This is a nice hack, but this only displays properly if the style is chosen in the User CP...
Guy G
02-11-2005, 08:09 AM
Getting
style: (not specified)
on 3.0.6
anyone know how to fix it ?
EDIT: It works... but on from the user-cp selection like the post above me said...
Sin City
02-22-2005, 07:59 AM
just wondering if there was any update on someone making this work with the quick style chooser
Acers
03-17-2005, 03:45 PM
hmm any updates ??
How to make it work with the style chooser?
EscortCossie
03-25-2005, 11:51 PM
I can't seem to get the quick style chooser problem solved.
Could anyone please tell me what to do in a step-by-step guide? Thanks
Vampyre
03-27-2005, 05:28 AM
Thanks, Gary King. :)
Snake
04-01-2005, 08:24 AM
Will this work on vB v3.0.7?
neocorteqz
04-01-2005, 09:05 AM
Will this work on vB v3.0.7?
Yep. :)
Allan
04-01-2005, 10:41 AM
Yep. :)
thanks ;)
I can't seem to get the quick style chooser problem solved.
Could anyone please tell me what to do in a step-by-step guide? Thanks
would be sweet to see that fixed... and yes, it does work with vBulletin Version 3.0.7
Silmarillion
08-14-2005, 08:51 AM
The functions_showthread.php doesn`t exist anymore in vB3.5.
Where do I have to add the text now?
lewisbeech
08-14-2005, 11:31 AM
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.
lewisbeech
08-16-2005, 07:44 AM
*bump*
Snake
08-16-2005, 03:59 PM
Nice move. :D
Datenpapst
09-15-2005, 12:30 PM
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.
also thought this... Where can I specify which Style I am using? :o
Clayton
09-18-2005, 05:20 PM
This may sound crazy
However, I can't seem to find this:
static $gotrank, $sigcache, $sigperms, $gotage, $month, $day, $year, $counter;
Have I missed something?
Thank you
C
This may sound crazy
However, I can't seem to find this:
static $gotrank, $sigcache, $sigperms, $gotage, $month, $day, $year, $counter;
Have I missed something?
Thank you
C
search static then, it is there.
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.
it will, only if the user specifies through user cp.
Omega Prime
09-19-2005, 08:51 PM
why does it only say Style: (not specified)
i thought it is supposed to tell you what style you are using.
If you haven't already, you'll need to number each of your styles in order in your admincp (1, 2, 3, etc.) :)
Edison Chen
10-09-2005, 10:31 AM
It shows not specified since the user has selected the default style as his/her style in the user options. ;)
Now... There is a way to remove it very easily and display Default Style instead... Just a small error. You see, in the postbit, the if conditional it says: == '$vbphrase[not_specified]' while in the file you edited in: '(' . $vbphrase['not_specified'] . ')' Duh! They don't match ;).
What I suggest is....
Change this (in includes/functions_showthread.php):
// check what style the user is viewing
if (!$post['styleid'])
{
$post['style'] = '(' . $vbphrase['not_specified'] . ')';
}
Into this:
// check what style the user is viewing
if (!$post['styleid'])
{
$post['style'] = 'default';
}
Change (in your postbit or postbit_legacy):
<!-- user forum style -->
<div>$vbphrase[style]: <if condition="$post[style] == '$vbphrase[not_specified]'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div>
<!-- / user forum style -->
Into:
<!-- user forum style -->
<div>$vbphrase[style]: <if condition="$post[style] == 'default'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div>
<!-- / user forum style -->
Now, with this you do not have to add 'not specified' to the phrases. :) I mean, after all - the Default Style will be displayed, not the phrase or word that was put in the PHP as... ah, I'll shut up :p.
michaelbenson
10-15-2005, 01:04 PM
Will this be converted to vBulletin 3.5 ?
Snake
10-15-2005, 04:33 PM
It works on 3.5 Gold just fine. :)
http://forums.mgszone.com
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.