Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2004, 06:02 PM
gibgib gibgib is offline
 
Join Date: Nov 2003
Location: Maroochydore, Australia
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What line to add to postbit_legacy to show member reg #

We upgraded from UBB a while back which had the sequential member number & in looking at this site, it looks possible to get it back using vBulletin with a bit of mod.

Can someone post a get member/ reg number for the post bit of 3.0 RC4?

I'll have a go myself later.

Thanks.
Reply With Quote
  #2  
Old 03-18-2004, 08:15 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

userid i assume? in your postbit template put #$post[userid] where you want it displayed.
Reply With Quote
  #3  
Old 03-18-2004, 08:20 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sebastian
userid i assume? in your postbit template put #$post[userid] where you want it displayed.
Looks like a typo there, $post[userid] is the correct var. Stick it anywhere within the postbit or postbit_legacy template.
Reply With Quote
  #4  
Old 03-19-2004, 05:22 AM
gibgib gibgib is offline
 
Join Date: Nov 2003
Location: Maroochydore, Australia
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found $post[userid] already in postbit template.

Perhaps I am not explaining it right.
For example, I am member number 20278 on this forum, I would like the member number to appear underneath the user ranks but above the date joined.
Reply With Quote
  #5  
Old 03-19-2004, 09:14 AM
imported_Vigile imported_Vigile is offline
 
Join Date: Sep 2003
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is the correct variable. $post[userid] is seen quite a few times in the postbits because it is part of urls generated in the postbit and also part of 'if conditionals'

nowhere is there just $post[userid] by itself.

It works, trust them.
Reply With Quote
  #6  
Old 03-19-2004, 07:47 PM
btekcan btekcan is offline
 
Join Date: Nov 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add

Member No.:</b> $post[userid] under this code <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

Like that

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
Member No.:</b> $post[userid]

That's it....
Reply With Quote
  #7  
Old 03-20-2004, 10:22 AM
gibgib gibgib is offline
 
Join Date: Nov 2003
Location: Maroochydore, Australia
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You guys were very right, thankyou!

For anyone else searching threads like I did before posting, to show the member registration number when a forum member posts add the following to the postbit_legacy template (for vertical view) before this :

Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</if></div>

ADD this:
Code:
<if condition="$post['userid']"><div>$vbphrase[user_id]: $post[userid]</if>
Next click on phrase manager & add new phase.

Varname: user_id
Text: I wrote "Member #" but it can be what ever you wish.

That is it.

See it working here:

http://www.aussiefrogs.com/forum/sho...9982#post99982

Cheers
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 11:15 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.06984 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete