PDA

View Full Version : His Postbit items in Private Messages


trackpads
05-24-2008, 06:20 PM
What would the syntax be for hiding a postbit field so that in the PM it doesnt show?

For example:


<!-- Start Guestbook in Postbit -->
<if condition="$show['profile']">
<if condition="!$post['field39']">
<fieldset><legend><a href="member.php?$session[sessionurl]u=$post[userid]">Personal Guestbook</a></legend>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td align="left"><a href="member.php?$session[sessionurl]u=$post[userid]">
<img border="0" src="http://www.trackpads.com/images/forum/pleasesignmypguestbook.gif" width="110" height="26"></a></td>
</tr>
</table>
</fieldset>
</if>
</if>
<!-- End Guestbook in Postbit -->



Thanks again,

-Jason

Mark.B
05-24-2008, 06:25 PM
I would use this:


<if condition="THIS_SCRIPT != 'private'">
Code that you want in posts but not PMs goes here.
</if>

Boofo
05-24-2008, 06:25 PM
THIS_SCRIPT != 'private'

trackpads
05-24-2008, 07:39 PM
Thanks!

Boofo
05-24-2008, 07:45 PM
Make sure you use single quotes around private as I found out the hard way that PHP 5 doesn't like it without quotes.