Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
UserID in postbit_legacy Details »»
UserID in postbit_legacy
Version: 1.00, by Lea Verou Lea Verou is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-17-2005 Last Update: 10-17-2005 Installs: 37
Template Edits
 
No support by the author.

This little modification adds a field in postbit_legacy (the vertical/classic one) for the userID, under the posts number. If guest posting is allowed the field will not be displayed in the postbit at all for the guests.

Instructions:

In the template postbit_legacy find:
HTML Code:
<div>
       $vbphrase[posts]: $post[posts]
</div>
Add below:
HTML Code:
<if condition="$post[userid]">
     <div>UserID: $post[userid]</div>
</if>
You're done!

Let me know if you'd like the UserID somewhere else in the postbit.

If you liked it and are using it don't forget to click INSTALL!

Show Your Support

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

Comments
  #22  
Old 06-27-2006, 09:37 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work with 3.5.4 I installed however its was over to the right of member pic and ID what could i be doing wrong yes In new atthis let me check again

Hmm tired everything still going on the far right side pic on the left anyone here that can i help I sure would appreciate it..

Thanks
Reply With Quote
  #23  
Old 06-30-2006, 02:41 AM
Sangrun Sangrun is offline
 
Join Date: May 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did not work in my 3.5.4 at all. I went back and triple checked I had it in the right place and all the code was there.
Reply With Quote
  #24  
Old 06-30-2006, 02:46 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Great!
*clicks install
________
C'?tait un rendez-vous
Reply With Quote
  #25  
Old 07-06-2006, 05:14 PM
NetworkTown.Net NetworkTown.Net is offline
 
Join Date: Jul 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

Have you got a update version for 3.5.4 please thank you.
Reply With Quote
  #26  
Old 07-08-2006, 09:12 AM
Blind Guardian's Avatar
Blind Guardian Blind Guardian is offline
 
Join Date: Mar 2004
Location: South Carolina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added a condition so it only shows up for admins, but this should make my life a tad easier whenever I'm adding user-specific features to the templates.

Thanks.
Reply With Quote
  #27  
Old 07-17-2006, 05:21 AM
joseph2007 joseph2007 is offline
 
Join Date: Jun 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blind Guardian
I added a condition so it only shows up for admins, but this should make my life a tad easier whenever I'm adding user-specific features to the templates.

Thanks.
forgive me but.. how could i go about doing the same? i want to add the userid to my postbit but i don't want anyone cept admins (and or higher) seeing it.
Reply With Quote
  #28  
Old 07-20-2006, 03:39 PM
Simplicity Simplicity is offline
 
Join Date: Jun 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see how you would benefit by hiding the user id in the template to other usergroups... all a user needs to do is hover the mouse over the username or go to the users profile page and the user id is viewable in the url. However thats just my opinion.
Reply With Quote
  #29  
Old 07-20-2006, 05:24 PM
Blind Guardian's Avatar
Blind Guardian Blind Guardian is offline
 
Join Date: Mar 2004
Location: South Carolina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joseph2007
forgive me but.. how could i go about doing the same? i want to add the userid to my postbit but i don't want anyone cept admins (and or higher) seeing it.
Where you would add:

Code:
<if condition="$post[userid]">
     <div>UserID: $post[userid]</div><br />
</if>
Instead, add:

Code:
<if condition="$post[userid] AND in_array($bbuserinfo[usergroupid], array(5,6))">
     <div>UserID: $post[userid]</div><br />
</if>
Where "array(5,6)" is the userids for the Super-Moderators and Admins. Any additional usergroups (like moderators) can just be added in the same way, with a comma then the ID.

Quote:
Originally Posted by Simplicity
I don't see how you would benefit by hiding the user id in the template to other usergroups... all a user needs to do is hover the mouse over the username or go to the users profile page and the user id is viewable in the url. However thats just my opinion.
True, but I also don't like cluttering up the postbit for the members with information that doesn't need to be there.

There's no reason for a member to be able to see the userID that easily, where as an administrator such as myself would find it easier having the ID displayed in static text rather than having to hover my mouse over a link every time I need to referrence it.
Reply With Quote
Reply

Thread Tools

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 05:09 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.05770 seconds
  • Memory Usage 2,283KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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