Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2016, 03:23 PM
bazookajoe's Avatar
bazookajoe bazookajoe is offline
 
Join Date: Dec 2008
Location: USA
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Member Number Under Avatar

Id like to display each member's number somewhere under their avatar, like maybe just above or below their join date. A lot of older members like to brag on being member 23 or 150 or whatever and I dont mind that they are proud of that. Is there such a mod or is anyone willing to make one?

Example:

Member Number: 12756
Reply With Quote
  #2  
Old 09-28-2016, 03:28 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive never seen one, but it would just be a pretty simple template edit, no code would be required.
Reply With Quote
  #3  
Old 09-28-2016, 03:32 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be able to add the below to your postbit template

Code:
Member Number: {vb:raw postinfo.userid}
Reply With Quote
Благодарность от:
4ngeluxpunk
  #4  
Old 09-28-2016, 03:38 PM
4ngeluxpunk's Avatar
4ngeluxpunk 4ngeluxpunk is offline
 
Join Date: Jul 2010
Location: Cix
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bazookajoe View Post
Id like to display each member's number somewhere under their avatar, like maybe just above or below their join date. A lot of older members like to brag on being member 23 or 150 or whatever and I dont mind that they are proud of that. Is there such a mod or is anyone willing to make one?

Example:

Member Number: 12756
This Mod will serve much: https://vborg.vbsupport.ru/showthrea...hlight=user+id
Reply With Quote
Благодарность от:
Dragonsys
  #5  
Old 09-28-2016, 03:48 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4ngeluxpunk View Post
Nice, but that just gives the template edit information, which I posted above. It does have you use a phrase though, which is better
Reply With Quote
  #6  
Old 09-28-2016, 03:58 PM
bazookajoe's Avatar
bazookajoe bazookajoe is offline
 
Join Date: Dec 2008
Location: USA
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, will use this mod.
Reply With Quote
  #7  
Old 09-28-2016, 04:35 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have attached a simple product that will add the userid at the top of the userinfo section of postbits, for legacy and horizontal postbits. This way it will work for all of your installed styles with no template hacks.

You will find the descriptor of the field in the phrase "markfl_membernumber".



Download and import the .XML product file. There are no settings, once you import it, it's active.
Attached Images
File Type: png membernumber.png (51.6 KB, 0 views)
Attached Files
File Type: xml product-markflmembernumber.xml (1.9 KB, 10 views)
Reply With Quote
3 благодарности(ей) от:
blind-eddie, Dragonsys, Kane@airrifle
  #8  
Old 09-28-2016, 05:18 PM
bazookajoe's Avatar
bazookajoe bazookajoe is offline
 
Join Date: Dec 2008
Location: USA
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but not working...not sure why?
Reply With Quote
  #9  
Old 09-28-2016, 05:21 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bazookajoe View Post
Installed but not working...not sure why?
Did you try your default style? It could be your custom style templates have been hacked and the template auto-edit won't work?

edit: It works on my local dev site where I developed it of course, but I just tried it on one of the live sites I help admin, and it worked there as well.
Reply With Quote
Благодарность от:
bazookajoe
  #10  
Old 09-28-2016, 09:18 PM
bazookajoe's Avatar
bazookajoe bazookajoe is offline
 
Join Date: Dec 2008
Location: USA
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great Mark, thanks much for your help.
Reply With Quote
2 благодарности(ей) от:
Dragonsys, MarkFL
Reply

Thread Tools
Display Modes

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 11:26 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.07939 seconds
  • Memory Usage 2,282KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (8)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete