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
  #82  
Old 04-21-2002, 08:57 AM
cityofangelus's Avatar
cityofangelus cityofangelus is offline
 
Join Date: Dec 2001
Location: UK
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #83  
Old 04-21-2002, 11:05 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #84  
Old 04-21-2002, 12:14 PM
cityofangelus's Avatar
cityofangelus cityofangelus is offline
 
Join Date: Dec 2001
Location: UK
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

lmk how you get on....
Reply With Quote
  #85  
Old 05-03-2002, 06:25 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey all

Ignore


Will try this on my forum

wish me luck
Reply With Quote
  #86  
Old 05-05-2002, 08:56 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #87  
Old 05-06-2002, 06:51 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #88  
Old 05-07-2002, 02:04 PM
Robouk5 Robouk5 is offline
 
Join Date: Nov 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #89  
Old 05-27-2002, 11:51 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #90  
Old 06-10-2002, 09:29 AM
Webmasta XT's Avatar
Webmasta XT Webmasta XT is offline
 
Join Date: Mar 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #91  
Old 06-23-2002, 12:18 PM
Webmasta XT's Avatar
Webmasta XT Webmasta XT is offline
 
Join Date: Mar 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I did everything, all it shows in the Postbit is..
" Style: "
Any Help??
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 04:21 AM.


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.05196 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (10)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (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_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