PDA

View Full Version : What Styles are we All using


Freddie Bingham
20 Jul 2001, 04:51
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,attachment.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.

snyx
20 Jul 2001, 04:59
cool, hack, I will give it a try

thx freddie
snyx

adrianmak
20 Jul 2001, 07:53
Nice little hack !:D

Thx dude

eva2000
20 Jul 2001, 08:06
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
20 Jul 2001, 08:07
whoops kevin made it alot easier than above

http://vbulletin.com/forum/showthread.php?s=&threadid=21606&highlight=styleid

ztsky
20 Jul 2001, 08:24
works well.
Thanks.
eva2000:
you said is a styleid,but this hack can display a styletitle.:D

eva2000
20 Jul 2001, 08:30
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
20 Jul 2001, 14:57
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 I forget why I went to your forum...

eva2000
20 Jul 2001, 15:00
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 ? :)

Mutt
23 Jul 2001, 23:16
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
23 Jul 2001, 23:26
You may do that if you wish, I had thought about it but didn't get around to doing it.

Freddie Bingham
23 Jul 2001, 23:50
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
26 Jul 2001, 19:24
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.;)

Phil
28 Jul 2001, 12:04
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
02 Aug 2001, 16:17
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
02 Aug 2001, 20:30
Same here.

markrt
02 Aug 2001, 22:28
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
02 Aug 2001, 22:43
The code is now in the second function in functions.php.

markrt
02 Aug 2001, 22:46
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
31 Aug 2001, 19:42
Can someone please tell how to incorporate this into v 2.0.3??!!
i got confused but the whole functions.php thingie :)

thx.

Dakota
05 Sep 2001, 22:03
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.

LuBi
14 Sep 2001, 20:43
Yes I cannot get this to wokr with 2.0.3 either any help?

LuBi
15 Sep 2001, 00:07
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
15 Sep 2001, 10:47
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
17 Sep 2001, 10:03
Originally posted by floleb7


could you give this hack ?

It's here...

floleb7
17 Sep 2001, 10:45
thanks :)

floleb7
01 Nov 2001, 18:25
this doesn't work with 2.2.0 :o

Syphin
01 Nov 2001, 18:53
Ya it does... Im using it now... :p



-Syphin

floleb7
01 Nov 2001, 21:43
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
01 Nov 2001, 22:04
attachment.attachmentid,attachment.filename,attachment.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
02 Nov 2001, 03:44
i add in the two set,
only in the fisrt, only in the second and nothing appears

floleb7
02 Nov 2001, 03:50
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
05 Nov 2001, 07:00
man I can't get this hack to work help

Mohamed
03 Dec 2001, 09:43
it doesn't work with me :(

cityofangelus
10 Dec 2001, 11:40
Installed and all working

Looks great

Thanks :D

Island Roots
13 Dec 2001, 03:04
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:

Chen
13 Dec 2001, 06:30
Installed here, looking great. :)

squawell
13 Dec 2001, 11:18
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
14 Dec 2001, 03:53
I love this hack - thanks so much! :)

heretic
18 Dec 2001, 00:11
it would be great to have this available in the member profile

Lionel
18 Dec 2001, 05:53
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
18 Dec 2001, 15:51
Just run styles.php from your browser, i.e.:

http://www.yourdomain.com/forums/styles.php

Craig Antill
04 Jan 2002, 14:09
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
06 Jan 2002, 00:58
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
08 Jan 2002, 20:12
: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
09 Jan 2002, 14:41
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
09 Jan 2002, 18:19
Not on my forum, it doesn't :( Any suggestions anyone ?

tweak
09 Jan 2002, 23:51
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
10 Jan 2002, 15:46
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
10 Jan 2002, 18:45
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
10 Jan 2002, 18:57
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
10 Jan 2002, 19:08
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
10 Jan 2002, 19:13
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
10 Jan 2002, 22:10
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
11 Jan 2002, 01:07
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
11 Jan 2002, 01:40
not working, just displaying

Style:

any suggestions?

tweak
11 Jan 2002, 04:45
Finally got it to work... Thanx for the help :D

Craig Antill
11 Jan 2002, 20:29
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
11 Jan 2002, 23:23
Well can anyone help me?

Sadie Frost
12 Jan 2002, 03:46
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
12 Jan 2002, 18:34
sure, e-mailing now

Shenlong
12 Jan 2002, 19:48
THANK YOU so much! Works great now! thanx a ton!

Sadie Frost
13 Jan 2002, 04:45
No problem - glad I could be the one to help for once :)

JTMON
15 Jan 2002, 22:19
Excellent hack! Worked like a charm, running vb 2.2.1 and vbP 3.0PR8

SWFans.net
24 Jan 2002, 19:55
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
24 Jan 2002, 20:56
Great hack, works good.

Danny
16 Feb 2002, 12:43
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=-
28 Feb 2002, 13:38
does it work with 2.2.2
anyone?

-=dm=-
28 Feb 2002, 14:11
ok now it working fine on 2.2.2:)
I have litle problem, it only showing the number not the title:(

Riddel
25 Mar 2002, 00:06
hmm for some reason when I try using styletitle in 2.2.2 it doesn't show up. anyone know why?

-=dm=-
25 Mar 2002, 14:07
Hi GenSec
How did ya add those lines in u r stylestates?
screenshot attached:

Sadie Frost
27 Mar 2002, 15:43
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
29 Mar 2002, 23:32
I did that Sadie but it doesn't show up. could this be a bug with 2.2.2?

Crazy Mofo
13 Apr 2002, 04:15
its i meant too not show up if your the admin? it shows normall users but not mine

Sadie Frost
13 Apr 2002, 04:27
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
13 Apr 2002, 12:05
really :( doesnt show for me

JTMON
15 Apr 2002, 16:34
anyone have this working on 2.2.5?

Chen
15 Apr 2002, 16:49
We have this insatlled. :)

JTMON
15 Apr 2002, 17:15
doy:D hmm, I will try it again and let ya know:D

Dean C
21 Apr 2002, 09:50
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter

^ that code is shown several times in showthread.php ... where exactly do i add it ???

Thanks In Advance

cityofangelus
21 Apr 2002, 09:57
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
21 Apr 2002, 12:05
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
21 Apr 2002, 13:14
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
03 May 2002, 07:25
Hey all

Ignore :)


Will try this on my forum :)

wish me luck :)

Keyser Söze
05 May 2002, 21:56
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
06 May 2002, 07:51
the hack works with 2.2.5 no problem

Open showthread.php and find this (it shows up two times):

attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter


replace with this (in both places):

attachment.attachmentid,attachment.filename,attachment.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
07 May 2002, 15:04
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
28 May 2002, 00:51
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
10 Jun 2002, 10:29
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
23 Jun 2002, 13:18
ok, I did everything, all it shows in the Postbit is..
" Style: "
Any Help??

Webmasta XT
23 Jun 2002, 13:20
ok, nevermind, I got it to work! :)

Boofo
13 Jul 2002, 08:39
Thanks for the great hack, freddie! It's working great here. :)

Lovaboye
24 Jul 2002, 19:13
doesnt work, after you put the four edits you get a mysql error, it doesnt work for vbulletin2.2.6

Lovaboye
24 Jul 2002, 19:34
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,attachment.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
24 Jul 2002, 19:38
i put all four edits in

Lovaboye
24 Jul 2002, 19:38
i still just see "stlye:" nothing comes after it!!!!!!!!

Brianna
25 Jul 2002, 21:21
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

Chen
26 Jul 2002, 07:18
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
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.

Brianna
02 Aug 2002, 20:32
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
20 Aug 2002, 20:32
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
28 Aug 2002, 01:39
Clicked install. :)

BlackTiger
31 Aug 2002, 22:54
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
31 Aug 2002, 22:54
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
06 Sep 2002, 22:58
installed.

thanks a lot.

Mono
15 Sep 2002, 22:30
Nice, thanks Freddie :)

Graphics
20 Oct 2002, 21:52
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
29 Oct 2002, 10:09
Works great. :) 2.2.8.

Thanks.

Sc0rp
22 Nov 2002, 17:22
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
30 Nov 2002, 12:53
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
02 Dec 2002, 12:41
Nice one. :)

|DarkManX|
13 Dec 2002, 21:26
anyone got this working in 2.2.9


can't get it to show in the postbit....

thx

SiXXGuNNZ
14 Dec 2002, 00:35
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>
--------------------------------------------------------------------------------

Ember
21 Dec 2002, 05:40
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

It shows the style that is active in your profile... so if you clicked a &styleid=X link to change it then it will still display the old one (from my experience anyway).

Hope that helps you out.

-Sidekick-
31 Dec 2002, 10:06
I couldn't get this to work on v2.2.9 either.

It just shows "Style:" and then nothing in my postbit.

HughJorgen
03 Jan 2003, 01:23
Once I added both lines of code in both places in Showthread, it worked like a CHARM. Kickass.

KuraFire
10 Jan 2003, 14:38
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
12 Jan 2003, 21:25
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 (http://www.vbulletin.org/forum/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
09 Mar 2003, 01:12
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,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>
--------------------------------------------------------------------------------

-Sidekick-
25 Mar 2003, 22:52
any fix to the thing where clicking on the link doesn't update the style shown in your postbit?

AlexanderT
03 Apr 2003, 08:36
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
05 Apr 2003, 00:16
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..

Leah
05 Apr 2003, 22:18
03-25-03 at 11:52 PM -Sidekick- said this in Post #119 (http://www.vbulletin.org/forum/showthread.php?postid=373302#post373302)
any fix to the thing where clicking on the link doesn't update the style shown in your postbit?

I'd be interested in this too. :)

Airs
14 Apr 2003, 02:52
04-05-03 at 02:10 AM ryanhulce said this in Post #121 (http://www.vbulletin.org/forum/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
20 Jun 2003, 10:32
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
13 Aug 2003, 08:35
04-03-03 at 10:36 AM AlexanderT said this in Post #120 (http://www.vbulletin.org/forum/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
06 Sep 2003, 00:32
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
06 Sep 2003, 00:56
Nevermind got it to work!!! :D

Oblivion Knight
06 Sep 2003, 15:20
Today at 01:56 AM Michael said this in Post #127 (http://www.vbulletin.org/forum/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
06 Sep 2003, 17:26
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
30 Dec 2003, 03:40
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:

http://www.vbulletin.org/forum/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
14 Jan 2004, 22:04
Works well for 2.3.2. :)

/me installs

Edison Chen
19 Nov 2004, 13:23
Installed. Didn't work the first time but looked at the second page and it worked now. Beautiful.

who knows
16 Jun 2005, 12:03
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
18 Oct 2005, 06:43
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
29 Jan 2006, 08:15
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 ;)