Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2005, 04:51 PM
Joe Gronlund Joe Gronlund is offline
 
Join Date: Jun 2005
Location: Toronto, Ontario, Canada
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Putting Real Name in Postbit?

How do i go about putting the real name field in postbit?
Also is there a way to search for posts, just with images in them?

Thanks for any help you can provide..

Joe
Reply With Quote
  #2  
Old 08-18-2005, 05:02 PM
Chris_D Chris_D is offline
 
Join Date: Jun 2004
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong forum mate...

I'm pretty sure there's a hack you can download for this anyway, I'll have a look.
Reply With Quote
  #3  
Old 08-18-2005, 05:22 PM
Joe Gronlund Joe Gronlund is offline
 
Join Date: Jun 2005
Location: Toronto, Ontario, Canada
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris_D
Wrong forum mate...

I'm pretty sure there's a hack you can download for this anyway, I'll have a look.
Hmm, i searched for real name hack, got alot of results, but no hack.. :ermm:
Reply With Quote
  #4  
Old 08-18-2005, 05:29 PM
Chris_D Chris_D is offline
 
Join Date: Jun 2004
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This forum uses it.

Looks like there's a field in the profile where a user can specify their real name. It can also be prompted on registration. I guess if you look at the postbit template, and try and work out from there how people's locations get shown then you could turn it into a Real Name hack yourself.

If I spent 3 hours on it a novice like myself might be able to work it out If I get time I'll have a look.
Reply With Quote
  #5  
Old 08-18-2005, 05:38 PM
Joe Gronlund Joe Gronlund is offline
 
Join Date: Jun 2005
Location: Toronto, Ontario, Canada
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks,, appreciate it

Joe
Reply With Quote
  #6  
Old 08-18-2005, 05:49 PM
Chris_D Chris_D is offline
 
Join Date: Jun 2004
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, that's so easy it's unbelievable. I just did it

I don't know if it can be done with hooks or plugins or whatever (I don't know how to make them) but it can be done with a template edit.

1) Go to AdminCP > User Profile Manager > Add New User Profile Field > Single Line Text Box and Set the options as follows:

Title: Real Name
Description: Enter your Real Name here
(might as well leave all the other options default)

2) Click on Save and when you get taken to the User Profile Manager, make a note of what name it's been given (field5, field6, field7 etc.)

3) Go to Languages & Phrases > Phrase Manager > Add New Phrase > Set this up as follows:

Phrase Type: Global
Product: vBulletin
Varname: real_name
Test: Real Name

Click on Save

4) Go to Styles & Templates > Style Manager > Select Edit Templates from the All Style Options drop-down box > Find the postbit template > Look for:

PHP Code:
<if condition="$post['field2']">
<
div>$vbphrase[location_perm]: $post[field2]</div>
</if> 
Below this add the following:

PHP Code:
<if condition="$post['fieldX']">
<
div>$vbphrase[real_name]: $post[fieldX]</div>
</if> 
Where X is whatever number in the Profile Field Manager (e.g. field5 or field6 etc.

Then all you need to do is save!

Job's a good-un.

EDIT: You might also want to do the same for postbit_legacy template as well.
Reply With Quote
  #7  
Old 08-18-2005, 07:20 PM
Joe Gronlund Joe Gronlund is offline
 
Join Date: Jun 2005
Location: Toronto, Ontario, Canada
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good,, thanks

I will do it later tonight..
Reply With Quote
  #8  
Old 08-22-2005, 08:05 PM
Chris_D Chris_D is offline
 
Join Date: Jun 2004
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you get this working Joe?
Reply With Quote
  #9  
Old 08-22-2005, 08:26 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works. It's the same thing I used on 3.0, too.
Reply With Quote
  #10  
Old 08-22-2005, 08:30 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep. Vbulletin.org has been using it here since I suggested it ages ago
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 07:44 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.04415 seconds
  • Memory Usage 2,254KB
  • 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_php
  • (1)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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