vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   What Styles are we All using (https://vborg.vbsupport.ru/showthread.php?t=23206)

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):

Code:

attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
replace with this (in both places):

Code:

attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter,style.title as styletitle


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

Code:

LEFT JOIN user ON user.userid=post.userid
add this after it on the next line (in both places):

Code:

LEFT JOIN style on (user.styleid = style.styleid)

open up the postbit template and place this where you like:

Code:

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/showthre...?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

Quote:

Originally posted by freddie
[B]add this after it on the same line
Code:

,style.title as styletitle
add this after it on the next line
Code:

LEFT 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

Quote:

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:

Code:

// 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
Code:

, style.title as styletitle
Now find:

Code:

// 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
Code:

, style.title as styletitle
Find:
Code:

LEFT JOIN user ON (usergroup.usergroupid = user.usergroupid)
Add this after it on the next line
Code:

LEFT JOIN style on (user.styleid = style.styleid)
Find:
Code:

LEFT JOIN user ON (user.userid = moderator.userid)
Add this after it on the next line
Code:

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:

Code:

$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%K8 6YT
M:64N#0I(970@:V%N(&1U<R!E=F5N(&1U<F5N(&5E<B!J92!E9 6X@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%K8 6YT
M:64N#0I(970@:V%N(&1U<R!E=F5N(&1U<F5N(&5E<B!J92!E9 6X@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.

Mono 09-15-2002 09:30 PM

Nice, thanks Freddie :)

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

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>
-------------------------------------------------------------------------------- 


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 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

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>
-------------------------------------------------------------------------------- 


-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.


All times are GMT. The time now is 04:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01300 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete