The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can someone help me figure out how to make a profile field link and show up as an icon on the post bit?
In addition to someone's homepage, I have a separate profile field for their online journal (just a thread they started). If someone fill that field in, I'd like it to show up with a special icon and have it linked to that URL (in the journal profile field). If they don't have it filled out, I'd like nothing to show up. |
#2
|
|||
|
|||
I have no idea if it works (didn't go into the code to deep yet), but you should give it a try anyway
PHP Code:
if ($post[icq]!="") { and add this above it. customfieldname = the name of the profile field $post[thisisthevariableforthetemplate] = the variable you put in the postbit template $post[customfieldname] = the variable you put in the template you make for this field. |
#3
|
|||
|
|||
Menno & Ed, thanks for your help!
if ($post[field5]!="") { eval("\$post[journal] = \"".gettemplate("postbit_journal")."\";"); } else { $post[journal]=""; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|