Version: , by Freddie Bingham
Developer Last Online: Aug 2016
Version: 2.2.x
Rating:
Released: 07-19-2001
Last Update: Never
Installs: 83
No support by the author.
This is a small hack that will show each users current selected style in showthread. For a demo just follow one of my links in my forum (chins & quills) and find your way to a thread.
Open showthread.php and find:
Code:
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
add this after it on the same line
Code:
,style.title as styletitle
find this in showthread.php
Code:
LEFT JOIN user ON user.userid=post.userid
add this after it on the next line
Code:
LEFT JOIN style on (user.styleid = style.styleid)
open up the postbit template and place this where you like
code:
--------------------------------------------------------------------------------
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
--------------------------------------------------------------------------------
add this after it on the same line
code:
--------------------------------------------------------------------------------
,style.title as styletitle
--------------------------------------------------------------------------------
find the second line of:
code:
--------------------------------------------------------------------------------
LEFT JOIN user ON user.userid=post.userid
--------------------------------------------------------------------------------
add this after it on the next line
code:
--------------------------------------------------------------------------------
LEFT JOIN style on (user.styleid = style.styleid)
--------------------------------------------------------------------------------
open up the postbit template and place this where you like
code:
--------------------------------------------------------------------------------
<smallfont>Theme: <a href='stylestats.php?s=$session[sessionhash]'>$post[styletitle]</a><br>
--------------------------------------------------------------------------------
[QUOTE]Originally posted by Graphics for some reason it shows the wrong style that i am using. i follwed the instructions exactly. i did do the 2 edits in the 2 places.
When people (members/guests) are browsing a thread using the $userstyle link ?
(and thus also that when non-admins check the WOL, they won't see "Viewing $bbtitle Main Index" nor "Viewing attachment in thread ...." but that it properly displays which thread they are browsing)
I've tried several times to hack online.php but it's just not working
Can't work on it long enough to get the full overview well enough in my head to see the solution..
Since freddie has obviously abandoned this topic, I'll have to take a pitch at the dark and see if I get any answers
Okay, so I installed this hack (the updated version with the two edits in two places). Those who can't get it to show, here are two things to check:
1.) Make sure the style you want to show is user selectable. You can double-check this in the admin cp > styles > modify > properties
2.) Make sure that you "Allow Users To Change Styles" in the vbulletin options in your admin cp.
So anyway, here's the glitch I have in 2.2.8: It works for styles other than the Default. But since my default style is using the template set and replacement set of another style, it doesn't seem to show up. Only when users choose a style in the user cp do will it appear, but the style will come out blank for users who are using the default style.
This is probably along the lines of what VeloCD has observed in his own forums.
Anyway, I dunno if it makes sense or not, but I'm gonna hold off on installing this one (maybe never) until it works
works great on vb 2.3.0 also, I have used it since this came out, on each version since then, I followed my instructions I posted above, and it worked for 2.2.9 and 2.3.0
PHP Code:
showthread.php
find the second line of:
code:
--------------------------------------------------------------------------------
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
--------------------------------------------------------------------------------
add this after it on the same line
code:
--------------------------------------------------------------------------------
,style.title as styletitle
--------------------------------------------------------------------------------
find the second line of:
code:
--------------------------------------------------------------------------------
LEFT JOIN user ON user.userid=post.userid
--------------------------------------------------------------------------------
add this after it on the next line
code:
--------------------------------------------------------------------------------
LEFT JOIN style on (user.styleid = style.styleid)
--------------------------------------------------------------------------------
open up the postbit template and place this where you like
code:
--------------------------------------------------------------------------------
<smallfont>Theme: <a href='stylestats.php?s=$session[sessionhash]'>$post[styletitle]</a><br>
--------------------------------------------------------------------------------