Log in

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


Me2Be
02-25-2001, 04:06 AM
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.

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


if ($post[customfieldname]!="") {
eval("\$post[thisisthevariableforthetemplate] = \"".gettemplate("templatename")."\";");
} else {
$post[thisisthevariableforthetemplate]="";
}


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.

02-25-2001, 05:09 PM
Menno & Ed, thanks for your help!

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