boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with b2customfields templates

 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
Sammy



Joined: 03 Jan 2004
Posts: 4
Location: Melb, Australia

PostPosted: Wed Jan 07, 2004 2:58 am    Post subject: help with b2customfields templates Reply with quote

i just installed b2customfields and i put:
Code:
Mood: <?php getcustomfield('Mood'); ?>

in my template but all previous entries now have empty lines where the mood is meant to be. sometimes i may not want to write anything for the mood and i just want my template to recognise that it shouldn't the "Mood: " line above my posts at all.
mystis said to use:
Code:
<?
$mood = getcustomfield('mood');
if(!empty($mood)){
     echo "Mood: ".$mood;
}
?>

but it doesn't work for me. the "mood: " part doesn't come up. how do i fix this? can anyone help?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group