View Full Version : What Styles are we All using
Freddie Bingham
07-19-2001, 10:00 PM
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:attachment.attachmentid,attachment.filename,a ttachment.visible AS attachmentvisible,attachment.counter add this after it on the same line,style.title as styletitlefind this in showthread.phpLEFT JOIN user ON user.userid=post.useridadd this after it on the next lineLEFT JOIN style on (user.styleid = style.styleid)open up the postbit template and place this where you likeStyle: <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a></smallfont>Link it to whatever you want.
cool, hack, I will give it a try
thx freddie
snyx
adrianmak
07-20-2001, 06:53 AM
Nice little hack !:D
Thx dude
eva2000
07-20-2001, 07:06 AM
hmmm i saw rangersfan on my forum earlier today :)
i got a similar code on my forum http://animeboards.com/t21182/s.html
but can't remember where or who i got this from hehe
eva2000
07-20-2001, 07:07 AM
whoops kevin made it alot easier than above
http://vbulletin.com/forum/showthread.php?s=&threadid=21606&highlight=styleid
ztsky
07-20-2001, 07:24 AM
works well.
Thanks.
eva2000:
you said is a styleid,but this hack can display a styletitle.:D
eva2000
07-20-2001, 07:30 AM
Originally posted by ztsky
works well.
Thanks.
eva2000:
you said is a styleid,but this hack can display a styletitle.:D yeah i just realised that :o
i like styleid better since someone may have a very long styletitle and mess with postbit's cell widths
Freddie Bingham
07-20-2001, 01:57 PM
[QUOTE]Originally posted by eva2000
hmmm i saw rangersfan on my forum earlier today :)
i got a similar code on my forum http://animeboards.com/t21182/s.html
but can't remember where or who i got this from hehe
eva2000
07-20-2001, 02:00 PM
Originally posted by freddie
I forget why I went to your forum... maybe it was regarding this http://vbulletin.com/forum/showthread.php?s=&threadid=23042 ? :)
just looked at your page and I have a small suggestion
you style hack points back to the main forum page. why not have it point to the current thread so when you click it, the same page is loaded in that style instead of sending you away fromt he thread you were reading.
http://www.chins-n-quills.com/forums/showthread.php?threadid=9184&styleid=1
http://www.chins-n-quills.com/forums/showthread.php?threadid=9184&styleid=7
Freddie Bingham
07-23-2001, 10:26 PM
You may do that if you wish, I had thought about it but didn't get around to doing it.
Freddie Bingham
07-23-2001, 10:50 PM
If you want to do that than link to this:
<a href='showthread.php?styleid=$post[styleid]&postid=$post[postid]&s=$session[sessionhash]#post$post[postid]'>$post[styletitle]</a>
GenSec
07-26-2001, 06:24 PM
I made a simple hack to show statistics what is the user's choice of the style.
At the same time anyone can change the style for the current session by one click .
It's here (http://www.2x2online.com/forum/stylestat.php) .
Sorry, all pages in Russian.
But you need not read, just take a look.;)
Thanks, it's working great but my default style isn't listed....just my 2nd stlye shows up.
http://www.thegenomecollective.com/forum/styleeg.gif
Any ideas on how to have the default style listed? I use a custom style as my default and allow ppl to choose the vBulleting style from their profile.
markrt
08-02-2001, 03:17 PM
Hi
I am having trouble geting this hack to work since I have upgraded to 2.0.3.
I have re-installed the hack?
Should this work with this version?
Thanks
Mark
stroppytart
08-02-2001, 07:30 PM
Same here.
markrt
08-02-2001, 09:28 PM
Hi
I can get this hack to work with 2.0.3 if I upload the old v2.0.0 showthread.php when I do this I loose all of the page navigation?
The hack still works on your board Freddie, what do I have to do to get it working???
Thanks
Mark
Freddie Bingham
08-02-2001, 09:43 PM
The code is now in the second function in functions.php.
markrt
08-02-2001, 09:46 PM
Found it
There are two places where the code can be added in the showthread.php file, the first piece of code go on line 307 not line 54. the second goes on line 374 not line 58.
It then works again.
Mark
J Wahl
08-31-2001, 06:42 PM
Can someone please tell how to incorporate this into v 2.0.3??!!
i got confused but the whole functions.php thingie :)
thx.
Dakota
09-05-2001, 09:03 PM
Ummm...can someone please explain how to get this working with 2.0.3? The code was in showthread, but I edited like it said and it didn't work. I looked in functions.php for the code and didn't see it in it.
Yes I cannot get this to wokr with 2.0.3 either any help?
Got it, everyone needs to read carfefully. the shot part with commas has to be added to the end of the line you find. You do this twice. Then you find the other line in showthread twice and both times you add that text below it on the next line. I hope this helps.
floleb7
09-15-2001, 09:47 AM
Originally posted by GenSec
I made a simple hack to show statistics what is the user's choice of the style.
At the same time anyone can change the style for the current session by one click .
It's here (http://www.2x2online.com/forum/stylestat.php) .
Sorry, all pages in Russian.
But you need not read, just take a look.;)
could you give this hack ?
GenSec
09-17-2001, 09:03 AM
Originally posted by floleb7
could you give this hack ?
It's here...
floleb7
09-17-2001, 09:45 AM
thanks :)
floleb7
11-01-2001, 05:25 PM
this doesn't work with 2.2.0 :o
Syphin
11-01-2001, 05:53 PM
Ya it does... Im using it now... :p
-Syphin
floleb7
11-01-2001, 08:43 PM
Originally posted by Syphin
Ya it does... Im using it now... :p
-Syphin
i do all the change and it don't in my forum
Syphin
11-01-2001, 09:04 PM
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter LEFT JOIN user ON user.userid=post.userid
If you meant this one, Did you make sure to add the code on the second set of coding?
Cuz they show up twice in the code..
-Syphin
floleb7
11-02-2001, 02:44 AM
i add in the two set,
only in the fisrt, only in the second and nothing appears
floleb7
11-02-2001, 02:50 AM
well it shows info only for me because i'm the only one who change my style i will see later if the others will be shown
GameZilla
11-05-2001, 06:00 AM
man I can't get this hack to work help
Mohamed
12-03-2001, 08:43 AM
it doesn't work with me :(
cityofangelus
12-10-2001, 10:40 AM
Installed and all working
Looks great
Thanks :D
Island Roots
12-13-2001, 02:04 AM
I'm trying to install the Style ID hack....everything is fine except for it doesn't show the actual style that the person is using. It has the Style: but no style. Go to www.ConsoleBoards.com and take a look for yourself. Any suggestions as to what's wrong/what to do?
EDIT: Nevermind, we got it to work! Nice hack! :cool:
Admin
12-13-2001, 05:30 AM
Installed here, looking great. :)
squawell
12-13-2001, 10:18 AM
if i only have one style and this hack can show up in postbit??
i use this hack and it not show up is it normal??
Sadie Frost
12-14-2001, 02:53 AM
I love this hack - thanks so much! :)
heretic
12-17-2001, 11:11 PM
it would be great to have this available in the member profile
Lionel
12-18-2001, 04:53 AM
Originally posted by GenSec
I made a simple hack to show statistics what is the user's choice of the style.
At the same time anyone can change the style for the current session by one click .
It's here (http://www.2x2online.com/forum/stylestat.php) .
Sorry, all pages in Russian.
But you need not read, just take a look.;)
Nice, I downloaded and installed... but how do I display it? :confused:
Steve Machol
12-18-2001, 02:51 PM
Just run styles.php from your browser, i.e.:
http://www.yourdomain.com/forums/styles.php
Craig Antill
01-04-2002, 01:09 PM
Neither of these hacks seem to work for me... all users are shown as being in the default style... despite the fact I was viewing it through a co-branded site at the time, so I should have shown up as in a different style at least!!
Help ?! :)
Craig Antill
01-05-2002, 11:58 PM
Can anyone confirm that this hack actually is designed to display the syle, rather than the template set, which the user is using ? Cos it definately ain't working for me if that's what it's supposed to do!! :(
tweak
01-08-2002, 07:12 PM
:confused: I tryed over and over. Im using 2.2.1 i can find all code in showthread there are 2 of each???
Ive tryed putting the code in first part and secound no go? also tryed putting it on both.
Any help?
Sadie Frost
01-09-2002, 01:41 PM
It does show the style, not the template set :)
Tweak, I have it working in 2.2.1 and I put it in both places.
Craig Antill
01-09-2002, 05:19 PM
Not on my forum, it doesn't :( Any suggestions anyone ?
tweak
01-09-2002, 10:51 PM
Originally posted by Sadie Frost
It does show the style, not the template set :)
Tweak, I have it working in 2.2.1 and I put it in both places.
Hmmm i tryed BOTH and i tryed single i just get a error.
What one is this board using?? and u edited showthread.php right
Sadie Frost
01-10-2002, 02:46 PM
Craig - is this the code you're putting in your postbit? (I'm sorry I don't know enough to suggest other problems.)
Style: <a href='showthread.php?styleid=$post[styleid]&postid=$post[postid]&s=$session[sessionhash]#post$post[postid]'>$post[styletitle]</a>
Tweak, if you want to email me your showthread.php I'll compare it to mine and see if I notice anything.
OneRing@destroythering.com
Craig Antill
01-10-2002, 05:45 PM
Yep... that's exactly what i've got...
I just double checked that I followed the instructions correctly. I did exactly what it said in post 1 ?
Sadie Frost
01-10-2002, 05:57 PM
Originally posted by LuBi
Got it, everyone needs to read carfefully. the shot part with commas has to be added to the end of the line you find. You do this twice. Then you find the other line in showthread twice and both times you add that text below it on the next line. I hope this helps.
Make sure you've made the changes to showthread.php twice - the same code appears twice in that file. So you're really making 4 changes to it, not 2 :) That's what I did wrong at first.
Craig Antill
01-10-2002, 06:08 PM
This is how I have it...
However looking into this a bit further, the problem seems to lie with the fact that although the script will display in the alternative colour scheme by adding the ?styleid=xx to the URL, the style identifier in the users profile isn't updated ? Is this supposed to be this way or is there an error somewhere else ?
Sadie Frost
01-10-2002, 06:13 PM
If I'm understanding what you're asking (newbie here lol), that is how it is supposed to be.
When you click on the link in the postbit, it changes your scheme, but in your profile it still says you're using your old style.
If you logout or clear your cookies, you go back the style you were originally using.
So I don't think that is the error.
If you want to post or attach your showthread, maybe a fresh pair of eyes will see what's wrong with it :)
Craig Antill
01-10-2002, 09:10 PM
But when I go to my admin panel and manually change the style in my profile, then this is reflected in the postbit... so I presume this hack doesn't actually do what I thought it did and show which scheme the user is currently viewing the forums in ?
My bad luck, apologies for not understanding and wasting your time... :)
BTW, I don't think i'm allowed to post the file here anyway :(
Sadie Frost
01-11-2002, 12:07 AM
Oh sorry, I didn't know
Yeah, it only shows which scheme is chosen in Edit Options, not if they're actually viewing a different one :)
Shenlong
01-11-2002, 12:40 AM
not working, just displaying
Style:
any suggestions?
tweak
01-11-2002, 03:45 AM
Finally got it to work... Thanx for the help :D
Craig Antill
01-11-2002, 07:29 PM
Originally posted by Sadie Frost
Yeah, it only shows which scheme is chosen in Edit Options, not if they're actually viewing a different one :)
Bugger - no use to me then 'as is' :(
Any idea if it is possible to update the user's profile when they are linked to the forum in a way which tags a styleid=xx on it ? I'm sure there must be... seems pretty silly the way it is now!
Shenlong
01-11-2002, 10:23 PM
Well can anyone help me?
Sadie Frost
01-12-2002, 02:46 AM
if you want to email me your showthread.php, I'll see if I notice what's wrong. But it sounds like you didn't make all four changes to it.
OneRing@destroythering.com
Shenlong
01-12-2002, 05:34 PM
sure, e-mailing now
Shenlong
01-12-2002, 06:48 PM
THANK YOU so much! Works great now! thanx a ton!
Sadie Frost
01-13-2002, 03:45 AM
No problem - glad I could be the one to help for once :)
JTMON
01-15-2002, 09:19 PM
Excellent hack! Worked like a charm, running vb 2.2.1 and vbP 3.0PR8
SWFans.net
01-24-2002, 06:55 PM
I looked through the thread and may have missed it, but is there a way to display the style name in a User Profile? I am able to get the styleid # but not the name.
Lesane
01-24-2002, 07:56 PM
Great hack, works good.
Danny
02-16-2002, 11:43 AM
any chance of getting this to work on 2.2.2 ?
had a look at the code and it was the same so figured the hack would of worked but unfortunately it doesn't fill in the style next to style in the post bit template any ideas anyone ?
-=dm=-
02-28-2002, 12:38 PM
does it work with 2.2.2
anyone?
-=dm=-
02-28-2002, 01:11 PM
ok now it working fine on 2.2.2:)
I have litle problem, it only showing the number not the title:(
Riddel
03-24-2002, 11:06 PM
hmm for some reason when I try using styletitle in 2.2.2 it doesn't show up. anyone know why?
-=dm=-
03-25-2002, 01:07 PM
Hi GenSec
How did ya add those lines in u r stylestates?
screenshot attached:
Sadie Frost
03-27-2002, 02:43 PM
Originally posted by -=dm=-
ok now it working fine on 2.2.2:)
I have litle problem, it only showing the number not the title:(
Are you using this code in your postbit? $post[styletitle]
Riddel
03-29-2002, 10:32 PM
I did that Sadie but it doesn't show up. could this be a bug with 2.2.2?
Crazy Mofo
04-13-2002, 03:15 AM
its i meant too not show up if your the admin? it shows normall users but not mine
Sadie Frost
04-13-2002, 03:27 AM
Hmmm...I'm not sure what could be wrong then Riddel...I've used this from 2.2.1 through 2.2.4 with no problems (except for forgetting to make all four changes to showthread - I do that wrong every time lol!).
CrazyMofo - it should show up for everyone :(
Crazy Mofo
04-13-2002, 11:05 AM
really :( doesnt show for me
JTMON
04-15-2002, 03:34 PM
anyone have this working on 2.2.5?
Admin
04-15-2002, 03:49 PM
We have this insatlled. :)
JTMON
04-15-2002, 04:15 PM
doy:D hmm, I will try it again and let ya know:D
Dean C
04-21-2002, 08:50 AM
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
^ that code is shown several times in showthread.php ... where exactly do i add it ???
Thanks In Advance
cityofangelus
04-21-2002, 08:57 AM
Mist
That bit of code should be seen twice in showthread, add the extra in there where you see it both times and it will work great :D
Chris M
04-21-2002, 11:05 AM
It doesnt work, and I have made sure that I have added it to both lines, and added the Second part as well in both places...
I added it to the postbit template, and it just refuses to work at all!
Not even a "Style: " appears!
Any clues?
Satan
cityofangelus
04-21-2002, 12:14 PM
Hey what I would suggest is that you check all the files that you have changed to make sure that all the code has been added...
I have installed this 3 times after upgrading VB and haven't had any problems..
:D lmk how you get on....
Mathiau
05-03-2002, 06:25 AM
Hey all
Ignore :)
Will try this on my forum :)
wish me luck :)
Keyser S?ze
05-05-2002, 08:56 PM
someone should update the main page, and say u have to enter those codes Twice in the showthread.php
-edit-
ok, using 2.2.5, and heres the problem, when i log in i go to options and change my style, and it doesnt change, but if i veiw a post it says im on the new style, but im not,
doesnt happen everytime, and usually if i change again, it will
weird, any ideas?
drives fast
05-06-2002, 06:51 AM
the hack works with 2.2.5 no problem
Open showthread.php and find this (it shows up two times):
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
replace with this (in both places):
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,style.title as styletitle
find this in showthread.php (it shows up two times):
LEFT JOIN user ON user.userid=post.userid
add this after it on the next line (in both places):
LEFT JOIN style on (user.styleid = style.styleid)
open up the postbit template and place this where you like:
Style: <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a>
link it to anywhere
done
Robouk5
05-07-2002, 02:04 PM
I have a prob, users are complaining that its not showing there correct style, they changes styles and it dosnt update. This is because they sued the "skin selector" hack to change their style, anyway to get it to update ?
Velocd
05-27-2002, 11:51 PM
I'm having a problem with this hack, seems to have occured after I updated to 2.2.6, though I think one of my members reported it to me before the upgrade also..:(
For some reason the style show in the postbit only shows for certain people, and not everyone. I have no idea what could be the cause of this, as I reinstalled the hack to make sure everything working perfect. See attachment for what I mean, and look in the last post.
Webmasta XT
06-10-2002, 09:29 AM
hmmm, i did exactly what i had to do and i get this:
(using 2.2.3)
Parse error: parse error, expecting `']'' in /usr/home/a/c/acforums/public_html/admin/functions.php(431) : eval()'d code on line 43
Parse error: parse error, expecting `']'' in /usr/home/a/c/acforums/public_html/admin/functions.php(431) : eval()'d code on line 43
Parse error: parse error, expecting `']'' in /usr/home/a/c/acforums/public_html/admin/functions.php(431) : eval()'d code on line 43
Parse error: parse error, expecting `']'' in /usr/home/a/c/acforums/public_html/admin/functions.php(431) : eval()'d code on line 43
Parse error: parse error, expecting `']'' in /usr/home/a/c/acforums/public_html/admin/functions.php(431) : eval()'d code on line 43
Parse error: parse error, expecting `']'' in /usr/home/a/c/acforums/public_html/admin/functions.php(431) : eval()'d code on line 43
Webmasta XT
06-23-2002, 12:18 PM
ok, I did everything, all it shows in the Postbit is..
" Style: "
Any Help??
Webmasta XT
06-23-2002, 12:20 PM
ok, nevermind, I got it to work! :)
Boofo
07-13-2002, 07:39 AM
Thanks for the great hack, freddie! It's working great here. :)
Lovaboye
07-24-2002, 06:13 PM
doesnt work, after you put the four edits you get a mysql error, it doesnt work for vbulletin2.2.6
Lovaboye
07-24-2002, 06:34 PM
Database error in vBulletin 2.2.6:
Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,style.title as styletitle
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN style on (user.styleid = style.styleid)
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,13572,14921,14993)
ORDER BY dateline
mysql error: Unknown table 'userfield'
mysql error number: 1051
Date: Wednesday 24th of July 2002 03:28:33 PM
Script: http://www.mysite.com/wf/wf/showthread.php?threadid=1203
Referer: http://www.mysite.com/wf/forumdisplay.php?forumid=9
Lovaboye
07-24-2002, 06:38 PM
i put all four edits in
Lovaboye
07-24-2002, 06:38 PM
i still just see "stlye:" nothing comes after it!!!!!!!!
Brianna
07-25-2002, 08:21 PM
Originally posted by freddie
[B]add this after it on the same line,style.title as styletitleadd this after it on the next lineLEFT JOIN style on (user.styleid = style.styleid)
owheeee!! nice hack, but watch your case in PHP :)
that's probably your problem guys
my browser just went beserk ^_^
"as" in the first code should be "AS"
"on" in the second code should be "ON"
and
there should not be parenthesis around "user.styleid = style.styleid"
Well, I changed those three and it was working then, so that's my guess, that they should be this way, but I could be wrong of course
Admin
07-26-2002, 06:18 AM
[QUOTE]Originally posted by Brianna
Well, I changed those three and it was working then, so that's my guess, that they should be this way, but I could be wrong of course
Brianna
08-02-2002, 07:32 PM
Originally posted by FireFly
You are wrong. :) In MySQL keywords are not case-sensitive, only database, table and field names are. The parenthesis around the joining clause are optional.
odd, doing what i said fixed my problem :knockedout:
EchoHype.com
08-20-2002, 07:32 PM
An Admin on my site (AIM: M3Kamikaze) modified this hack to show which styles we are all using in showgroups.php (Forum Leaders Page).
He added it to showgroups.php by doing the following:
Open showgroups.php and find:
// get administrators & super moderators ************************************************** ********
$users = $DB_site->query("
SELECT
$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.receivepm,
user.usergroupid, user.lastactivity, user.lastvisit
Add this after it on the same line
, style.title as styletitle
Now find:
// get moderators ************************************************** ********
$users = $DB_site->query("
SELECT
$locationfieldselect forum.forumid, forum.title AS forumtitle,
user.username, user.userid, user.invisible, user.receivepm, user.lastactivity, user.lastvisit
add this after it on the same line
, style.title as styletitle
Find:
LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
Add this after it on the next line
LEFT JOIN style on (user.styleid = style.styleid)
Find:
LEFT JOIN user ON (user.userid = moderator.userid)
Add this after it on the next line
LEFT JOIN style on (user.styleid = style.styleid)
Go to your "Show Groups Templates [expand]" and add another column entitled "Style" or whatever. You'll have to fool around with doing this but eventually you'll get another column or whatever. Then just add:
$user[styletitle]
somewhere in there.
This was tested & has worked on vBulletin v.2.2.6
HappyPike
08-28-2002, 12:39 AM
Clicked install. :)
BlackTiger
08-31-2002, 09:54 PM
begin 666 Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ What Styles are we All using .eml
M2&]I:&]I+@T*#0I):R!B96X@965N('!A87(@=V5E:VIE<R!M970@=F%K86YT
M:64N#0I(970@:V%N(&1U<R!E=F5N(&1U<F5N(&5E<B!J92!E96X@86YT=V]O
M<F0@:W)I:F=T+@T*06QS(&AE="!V<F%G96X@>FEJ;B!O=F5R('-A=&5L;&EE
M="!O9B!S871E;&QI=&5F=6XL#0IS8VAR:6IF(&1A;B!D96YK=&5N:T!S871E
M;&QI=&5F=6XN;W)G(&5E;B!B97)I8VAT:F4N#0H-"DES(&1I="!B97)I8VAT
M('-P96-I86%L(&)E9&]E;'0@=F]O<B!M:6H@>F5L9BP-"F1A;B!K<FEJ9R!J
M92!V86YZ96QF(&5E;B!A;G1W;V]R9"!A;',@:6L@=&5R=6<@8F5N+@T*#0I4
8;W0@>FEE;G,N#0H-"D)L86-K(%1I9V5R
`
end
BlackTiger
08-31-2002, 09:54 PM
begin 666 Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ What Styles are we All using .eml
M2&]I:&]I+@T*#0I):R!B96X@965N('!A87(@=V5E:VIE<R!M970@=F%K86YT
M:64N#0I(970@:V%N(&1U<R!E=F5N(&1U<F5N(&5E<B!J92!E96X@86YT=V]O
M<F0@:W)I:F=T+@T*06QS(&AE="!V<F%G96X@>FEJ;B!O=F5R('-A=&5L;&EE
M="!O9B!S871E;&QI=&5F=6XL#0IS8VAR:6IF(&1A;B!D96YK=&5N:T!S871E
M;&QI=&5F=6XN;W)G(&5E;B!B97)I8VAT:F4N#0H-"DES(&1I="!B97)I8VAT
M('-P96-I86%L(&)E9&]E;'0@=F]O<B!M:6H@>F5L9BP-"F1A;B!K<FEJ9R!J
M92!V86YZ96QF(&5E;B!A;G1W;V]R9"!A;',@:6L@=&5R=6<@8F5N+@T*#0I4
8;W0@>FEE;G,N#0H-"D)L86-K(%1I9V5R
`
end
Buddha
09-06-2002, 09:58 PM
installed.
thanks a lot.
Graphics
10-20-2002, 08:52 PM
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.
can ne1 help me
neocorteqz
10-29-2002, 09:09 AM
Works great. :) 2.2.8.
Thanks.
Sc0rp
11-22-2002, 04:22 PM
installed it but it wont display in the postbit :( Im sure I installed ir right.. does this hack have any problems with vbb 2.2.6 or something?
stefros
11-30-2002, 11:53 AM
Does anything display at all ?
Well i got another Problem , the displayed Style does only change if the User selects the new style in his profile .
When he just clicks the Link (from another Users Profile) his own Display doesnt show the new Style ...
any suggestions ?
Edit : the Problem is that the link doesnt change the php-variable , how do u do that ^^
doesnt work here either hehe
Jean147
12-02-2002, 11:41 AM
Nice one. :)
|DarkManX|
12-13-2002, 08:26 PM
anyone got this working in 2.2.9
can't get it to show in the postbit....
thx
SiXXGuNNZ
12-13-2002, 11:35 PM
showthread.php
find the second line of:
code:
--------------------------------------------------------------------------------
attachment.attachmentid,attachment.filename,attach ment.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>
--------------------------------------------------------------------------------
Ember
12-21-2002, 04:40 AM
[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.
can ne1 help me
-Sidekick-
12-31-2002, 09:06 AM
I couldn't get this to work on v2.2.9 either.
It just shows "Style:" and then nothing in my postbit.
HughJorgen
01-03-2003, 12:23 AM
Once I added both lines of code in both places in Showthread, it worked like a CHARM. Kickass.
KuraFire
01-10-2003, 01:38 PM
Is it any bit possible to hack online.php so that as an Admin, you don't get:
Unknown Location: /showthread.php?styleid=4&postid=24564
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.. :(
Crinos
01-12-2003, 08:25 PM
Since freddie has obviously abandoned this topic, I'll have to take a pitch at the dark and see if I get any answers :D
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 (https://vborg.vbsupport.ru/showthread.php?postid=255076#post255076) 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 :D
SiXXGuNNZ
03-09-2003, 12:12 AM
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
showthread.php
find the second line of:
code:
--------------------------------------------------------------------------------
attachment.attachmentid,attachment.filename,attach ment.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>
--------------------------------------------------------------------------------
-Sidekick-
03-25-2003, 09:52 PM
any fix to the thing where clicking on the link doesn't update the style shown in your postbit?
AlexanderT
04-03-2003, 07:36 AM
Hack worked fine UNTIL vB2.3.0 Final.
Now, in 2.3.0 final, when user selects "Use Default Style" in his UserCP, the postbit part doesn't display any style name.
ryanhulce
04-04-2003, 11:16 PM
Reason it doesn't work in the latest vB is because it returns NULL as the StyleID which reverts to 0. When looking at the styles table it starts out at 1 not zero so what i did was add another style (not user selectable) and edit the table directly and change the ID number to 0. Now it works. I just called the style Default.
This could be a side effect of running VBPortal with VBulletin. I think VBulleting's Default of 0 is the standard VB Style but 1 is VBPortal's Default..
[QUOTE]03-25-03 at 11:52 PM -Sidekick- said this in Post #119 (https://vborg.vbsupport.ru/showthread.php?postid=373302#post373302)
any fix to the thing where clicking on the link doesn't update the style shown in your postbit?
04-05-03 at 02:10 AM ryanhulce said this in Post #121 (https://vborg.vbsupport.ru/showthread.php?postid=377675#post377675)
Reason it doesn't work in the latest vB is because it returns NULL as the StyleID which reverts to 0. When looking at the styles table it starts out at 1 not zero so what i did was add another style (not user selectable) and edit the table directly and change the ID number to 0. Now it works. I just called the style Default.
This could be a side effect of running VBPortal with VBulletin. I think VBulleting's Default of 0 is the standard VB Style but 1 is VBPortal's Default..
how exactly do u do that? please help!.
RiP-Productions
06-20-2003, 09:32 AM
Installed the hack on version 2.2.7 and I don't get any errors except that for some users the Style is not visible.
I used the latest version of the hack (the 1 where you had to replace / add 2 the same code.)
After you update the user (wich didn't show up in the threads) with the style (just hit save in Admin CP) the style is visible :surprised:
See the 2 screenshots below.
http://www.rip-productions.com/signatures/showstyleserror.jpg
http://www.rip-productions.com/signatures/showstyleserror1.jpg
Oblivion Knight
08-13-2003, 07:35 AM
04-03-03 at 10:36 AM AlexanderT said this in Post #120 (https://vborg.vbsupport.ru/showthread.php?postid=376995#post376995)
Hack worked fine UNTIL vB2.3.0 Final.
Now, in 2.3.0 final, when user selects "Use Default Style" in his UserCP, the postbit part doesn't display any style name. ^ Bump :nervous:
Michael
09-05-2003, 11:32 PM
Could that be the same thing that is happening to me? Because there is no style showing up, look at my board: www.charmed-phoebe.com/forums
Michael
09-05-2003, 11:56 PM
Nevermind got it to work!!! :D
Oblivion Knight
09-06-2003, 02:20 PM
Today at 01:56 AM Michael said this in Post #127 (https://vborg.vbsupport.ru/showthread.php?postid=431660#post431660)
Nevermind got it to work!!! :D Would you be so kind as to tell us how?
No matter how hard I try, anyone selecting "Use forum default" appears blank.
Michael
09-06-2003, 04:26 PM
To tell you, I have no idea what I did lol -- I just added the code or replaced it the two times it was in the template.
obsidian
12-30-2003, 02:40 AM
Just because I hate finding old hacks and not knowing if they work.... I just installed this on a VBPortal/ VB 2.3.0 site. I used the instructions posted here:
https://vborg.vbsupport.ru/showpost.php?p=363023&postcount=118
The only exception was that for the last part that gets inserted into the template I ended up using:
<smallfont>Theme: <a href='showthread.php?styleid=$post[styleid]&postid=$post[postid]&s=$session[sessionhash]#post$post[postid]'>$post[styletitle]</a><br>
This was because when I used the code originally listed it would dump me to a blank page. Other than that it installed in about 5 min. Great addon.
Red Blaze
01-14-2004, 09:04 PM
Works well for 2.3.2. :)
* Red Blaze installs
Edison Chen
11-19-2004, 12:23 PM
Installed. Didn't work the first time but looked at the second page and it worked now. Beautiful.
who knows
06-16-2005, 11:03 AM
Make sure you've made the changes to showthread.php twice - the same code appears twice in that file. So you're really making 4 changes to it, not 2 :) That's what I did wrong at first.
That really helped :). I didn't realize there was two places of the same code, lol. So i was puzzled why it wasn't working. Thanks!
ProperMethodz
10-18-2005, 05:43 AM
I am looking for this hack for 3.5. I have searched this site for:
postbit
showthread
Style Postbit
and a few others I can't quite remember.
Please... I've been looking and searching for weeks.
Lexina
01-29-2006, 07:15 AM
owheeee!! nice hack, but watch your case in PHP :)
that's probably your problem guys
my browser just went beserk ^_^
"as" in the first code should be "AS"
"on" in the second code should be "ON"
and
there should not be parenthesis around "user.styleid = style.styleid"
Well, I changed those three and it was working then, so that's my guess, that they should be this way, but I could be wrong of course
I'm gonna agree with you, worked like a charm after I edited and did as you said, capitlised! Do it if you are just getting the 'Style:' and no link ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.