vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Profile Field in Signature (https://vborg.vbsupport.ru/showthread.php?t=136142)

familyhistory 01-10-2007 10:46 PM

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

Ntfu2 01-10-2007 10:48 PM

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

familyhistory 01-11-2007 11:17 AM

Great Ntfu2,

Quote:

$post[field8]
Spot on, cheers, :)
Dave

BudLeiser 01-15-2007 02:35 AM

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.

yotsume 09-14-2009 08:17 PM

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! :(

Lynne 09-14-2009 10:04 PM

Quote:

Originally Posted by yotsume (Post 1884813)
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.

yotsume 09-14-2009 10:27 PM

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.

Lynne 09-14-2009 10:34 PM

That section looks fine. I'd guess that you are missing an if from somewhere else in the template.

yotsume 09-14-2009 10:42 PM

Quote:

Originally Posted by Lynne (Post 1884870)
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?

Lynne 09-14-2009 10:46 PM

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.


All times are GMT. The time now is 02:17 AM.

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.01106 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete