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 01-10-2007, 10:46 PM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Profile Field in Signature

Hi,

Hope someone can help.

I have an added field in the User Profile (field8), which I would like to have automatically added to the signature - or if not somewhere near each users post (at the bottom).

Many thanks,
Dave
Reply With Quote
  #2  
Old 01-10-2007, 10:48 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open up the postbit or postbit_legacy template, search for
Code:
$post[signature]
After add
Code:
$post[field8]
It maybe $post['field8'] as well, i forget
Reply With Quote
  #3  
Old 01-11-2007, 11:17 AM
familyhistory's Avatar
familyhistory familyhistory is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Ntfu2,

Quote:
$post[field8]
Spot on, cheers,
Dave
Reply With Quote
  #4  
Old 01-15-2007, 02:35 AM
BudLeiser BudLeiser is offline
 
Join Date: Nov 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh thank god I found this. Ive been looking for this everywhere.
any idea if this will work with this mod:
https://vborg.vbsupport.ru/showthrea...=1#post1158854

Or how to make the field options that show up in Signature click=search for members with same field entry.
Reply With Quote
  #5  
Old 09-14-2009, 08:17 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am glad I found this as well! My problem I am guessing will be I want to have a few profile fields auto populate all members signatures. However, all members currently registered already have info imputed into their signatures. So I I make this info auto populate with the suggestion in this thread the signatures will be doubled.

I think I would have to dump all current signatures and then do the edits here?

I think I smell a custom mod request coming on!
Reply With Quote
  #6  
Old 09-14-2009, 10:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yotsume View Post
I am glad I found this as well! My problem I am guessing will be I want to have a few profile fields auto populate all members signatures. However, all members currently registered already have info imputed into their signatures. So I I make this info auto populate with the suggestion in this thread the signatures will be doubled.

I think I would have to dump all current signatures and then do the edits here?

I think I smell a custom mod request coming on!
If you don't want them to have their own custom sig, just remove that line from the template and put your stuff in it's place.
Reply With Quote
  #7  
Old 09-14-2009, 10:27 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I pimped the postbit and postbit_legacy templates this way:

NOTE: Can you check my code below and see what I might have overlooked. It said I was missing a starting <if> tag however it works perfectly!

Code:
<if condition="$post[signature]">
$post[signature]
<else />
$post[field5]<br />
$post[field10] - $post[field18] $post[field17]<br />
$post[field21], $post[field22] $post[field24]
</if>
What this does is when a new member registers the custom fields I listed will auto populate their signature when they post. As soon as they edit their own signature my custom fields hide and their own signature will show up instead. So all members with empty signatures will get their signature pulled from the custom profile fields! This saves me hours when allowing new accounts.

The above fields generate empty signatures into this:
_______________________
First Name
Membership Category - Grade School Name
City, State Country
My next step is to wrap this code so that only certain specified usergroup IDs are bothered by this. I don't need this signature pimping for administrators.
Reply With Quote
  #8  
Old 09-14-2009, 10:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That section looks fine. I'd guess that you are missing an if from somewhere else in the template.
Reply With Quote
  #9  
Old 09-14-2009, 10:42 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
That section looks fine. I'd guess that you are missing an if from somewhere else in the template.
I'm not allowed to post my entire template here for a quick look am I?
Reply With Quote
  #10  
Old 09-14-2009, 10:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may post your template if you use the code tags around it. If you have a good editor, you should be able to find it in there - that's probably what anybody else would do if you posted it here.
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 12:07 AM.


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.07457 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
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
  • (3)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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