PDA

View Full Version : Making a profile field show up as an icon


Me2Be
25 Feb 2001, 05:06
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.

25 Feb 2001, 07:23
I have no idea if it works (didn't go into the code to deep yet), but you should give it a try anyway :)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Find
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.

25 Feb 2001, 18:09
Menno & Ed, thanks for your help!

if ($post[field5]!="") {
eval("\$post[journal] = \"".gettemplate("postbit_journal")."\";");
} else {
$post[journal]="";
}