Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Freddie Bingham Freddie Bingham is offline
Developer Last Online: Aug 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-19-2001 Last Update: Never Installs: 83
 
No support by the author.

This is a small hack that will show each users current selected style in showthread. For a demo just follow one of my links in my forum (chins & quills) and find your way to a thread.

Open showthread.php and find:
Code:
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
add this after it on the same line
Code:
,style.title as styletitle
find this in showthread.php
Code:
LEFT JOIN user ON user.userid=post.userid
add this after it on the next line
Code:
LEFT JOIN style on (user.styleid = style.styleid)
open up the postbit template and place this where you like
Code:
Style: <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a></smallfont>
Link it to whatever you want.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 04-04-2003, 11:16 PM
ryanhulce ryanhulce is offline
 
Join Date: Jan 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #123  
Old 04-05-2003, 09:18 PM
Leah's Avatar
Leah Leah is offline
 
Join Date: Aug 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]03-25-03 at 11:52 PM -Sidekick- said this in Post #119
any fix to the thing where clicking on the link doesn't update the style shown in your postbit?
Reply With Quote
  #124  
Old 04-14-2003, 01:52 AM
Airs's Avatar
Airs Airs is offline
 
Join Date: Oct 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-05-03 at 02:10 AM ryanhulce said this in Post #121
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!.
Reply With Quote
  #125  
Old 06-20-2003, 09:32 AM
RiP-Productions RiP-Productions is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.



Reply With Quote
  #126  
Old 08-13-2003, 07:35 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-03-03 at 10:36 AM AlexanderT said this in Post #120
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:
Reply With Quote
  #127  
Old 09-05-2003, 11:32 PM
Michael's Avatar
Michael Michael is offline
 
Join Date: Aug 2003
Location: New Jersey
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #128  
Old 09-05-2003, 11:56 PM
Michael's Avatar
Michael Michael is offline
 
Join Date: Aug 2003
Location: New Jersey
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind got it to work!!!
Reply With Quote
  #129  
Old 09-06-2003, 02:20 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:56 AM Michael said this in Post #127
Nevermind got it to work!!!
Would you be so kind as to tell us how?
No matter how hard I try, anyone selecting "Use forum default" appears blank.
Reply With Quote
  #130  
Old 09-06-2003, 04:26 PM
Michael's Avatar
Michael Michael is offline
 
Join Date: Aug 2003
Location: New Jersey
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #131  
Old 12-30-2003, 02:40 AM
obsidian's Avatar
obsidian obsidian is offline
 
Join Date: Apr 2003
Location: Austin Tx
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....&postcount=118

The only exception was that for the last part that gets inserted into the template I ended up using:

Code:
<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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11099 seconds
  • Memory Usage 2,314KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete