Log in

View Full Version : Trim the postbit for certain users


DEGE
01-29-2010, 09:03 PM
Hi,

I'm planning to give certain users (ie: uregistered users) a short version of the 2nd and later posts of a thread. I've tried everything in the postbit with the $post[message] variable, but it seems that some HTML code inside it makes me impossible to do so.

Any ideas?

Any HTML free variable that I should use in the postbit?


<!---Hide following posts to guests-->
<if condition="$show['guest']">
<if condition="$post[postcount] == 1">
$post[message]
<else />
<img src="/images/Stop_hand.png" alt="$post[prepared]" border="0">
<strong> You have to <a href="/register.php">register </a> to see the whole thread
</strong>
</if>
<else />
$post[message]
</if>
<!---/Hide following posts to guests-->

DEGE
02-01-2010, 06:44 PM
any ideas from anybody?

Digital Jedi
02-01-2010, 08:40 PM
If I'm not mistaken, there are some modifications on this site that already do just that. You may be able to get some ideas from them.

DEGE
02-02-2010, 01:41 AM
I've been searching all the modifications for a long time and didn't find any replacement for the $post[message] variable that is included in the postbit. Is there any modification that uses another variable?