Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
style name in postbit 0.3 Details »»
style name in postbit 0.3
Version: 0.3, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.0 Beta 4 Rating:
Released: 07-10-2005 Last Update: 07-14-2005 Installs: 61
Uses Plugins Template Edits
Re-useable Code  
No support by the author.

this is my implementation of the hack used here that shows what style each one is using under their usernames

it will only show the style if the user chose something else then "default style" in the usercp.

also this wont show styles choosen with the "quick style chooser", because those are stored in cookies and not in the database. if you logoff your style is resetted to the one in the usercp.

Installation
- Upload and activate "style name in postbit.xml" plugins
- Put this where you want it to appear

Code:
<if condition="$post['styleid'] != 0"><div class="smallfont">Style: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">$post[styletitle]</a></div></if>
works with: beta 3, beta 4

Show Your Support

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

Comments
  #22  
Old 11-05-2005, 11:41 AM
goblues goblues is offline
 
Join Date: Aug 2004
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by murrtex
same on me JoeWho..it works on some user,it doesnt work on some user.
I think it is only designed to show if the user selected a different style than default. Also, it won't show by using the quick style changer, the user has to change the style in their profile. Someone correct me if I am wrong.
Reply With Quote
  #23  
Old 11-06-2005, 03:24 AM
Dave Rosteck's Avatar
Dave Rosteck Dave Rosteck is offline
 
Join Date: Jul 2002
Location: Corvallis, OR
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goblues
I think it is only designed to show if the user selected a different style than default. Also, it won't show by using the quick style changer, the user has to change the style in their profile. Someone correct me if I am wrong.
That's correct.

Can someone tell me how to get the style to show in PMs? It shows 'Style:' but not the actual style name. Thanks in advance.
Reply With Quote
  #24  
Old 11-29-2005, 04:08 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is pretty good. However, it only shows what style the user has selected in their UserCP. It does not register if the user changed styles in the pull-dowqn list outside of the UserCP.

Ideas?
Reply With Quote
  #25  
Old 12-16-2005, 01:12 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think you can show what they picked in the quick style chooser, as that choice is saved in that computers cookies and nowhere on the site.

That's why if your at home and select a style through the chooser, and then go to a different computer, like at work, you have to reselect the style there too is that it's only saved in your cookies.
Reply With Quote
  #26  
Old 12-17-2005, 08:26 PM
chimaira chimaira is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want to put this... underneath the avatar etc..
as i have all the posts/threads/rep on the right...
and avatar and user title on the left

which template do i edit to put it on the left hand side? ty for help given
Reply With Quote
  #27  
Old 12-29-2005, 06:25 PM
weitalia weitalia is offline
 
Join Date: Jun 2004
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack!!! Wow i love it And it works perfect...
Just if you want show Default Style too, in postbit use:
Code:
<div>$vbphrase[style]: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]"><if condition="$post['styleid'] == 0">Default Style<else />$post[styletitle]</if></a></div>
Reply With Quote
  #28  
Old 01-05-2006, 11:13 AM
Blackhat's Avatar
Blackhat Blackhat is offline
 
Join Date: Mar 2005
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be fixed so I can use it in memberinfo ?
Reply With Quote
  #29  
Old 01-05-2006, 05:52 PM
Pheno Pheno is offline
 
Join Date: Jun 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could it be fixed too with the announcements please ?
Reply With Quote
  #30  
Old 01-15-2006, 08:21 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack! Is there any way that the Default Style set in vBulletin Options --> Style & Language Settings will be displayed for the styleid = 0, instead of making it disappear?
Reply With Quote
  #31  
Old 04-21-2006, 05:11 AM
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Location: Karachi. Pakistan
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Dream,
I am not very good at it, so please elaborate in which file and where (specifically) I should put this text:

Code:
<if condition="$post['styleid'] != 0"><div class="smallfont">Style: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">$post[styletitle]</a></div></if>
I would like to see the result above the Messengers icon of the member's profile.

Thank you.
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:44 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.05099 seconds
  • Memory Usage 2,309KB
  • 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
  • (3)bbcode_code
  • (2)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
  • (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