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)

|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 01:17 PM.

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.02282 seconds
  • Memory Usage 1,760KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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