Log in

View Full Version : Journal "if" conditional


Sychev_S
05-29-2006, 01:03 PM
I want to put link to user's journal in postbit_legacy template, so it appears every time user posts.
Any idea how to do it?

<if condition="$show[journallink]"> doest work...

peterska2
05-29-2006, 03:12 PM
use

<if condition="$post[journal_id]">what you want to display</if>

I'm pretty sure that is the same as what I have used on my site, but I'll double check for you when I log in to it later.

Sychev_S
05-29-2006, 05:26 PM
hm, it doesnt seem to work =(

anyone?

peterska2
05-30-2006, 09:12 PM
This is the eact code I am using in my postbit

<if condition="$post[journal_id]">
&nbsp;<a href="journal.php?$session[sessionurl]do=showjournal&j=$post[journal_id]" title="$post[journaldesc]"><img src="$stylevar[imgdir_misc]/icon-diary.gif" border="0" alt="View $post[username]'s journal" /></a>

</if>

You can see the resulting icon on this post (http://www.peterska2.co.uk/showpost.php?p=48618&postcount=6). It is the icon that looks like a piece of paper and a pen.

Sychev_S
05-31-2006, 01:05 PM
This is the eact code I am using in my postbit

<if condition="$post[journal_id]">
&nbsp;<a href="journal.php?$session[sessionurl]do=showjournal&j=$post[journal_id]" title="$post[journaldesc]"><img src="$stylevar[imgdir_misc]/icon-diary.gif" border="0" alt="View $post[username]'s journal" /></a>

</if>

You can see the resulting icon on this post (http://www.peterska2.co.uk/showpost.php?p=48618&postcount=6). It is the icon that looks like a piece of paper and a pen.
Spent half an hour looking at it...it is not there=) :cross-eyed:

peterska2
05-31-2006, 07:46 PM
It won't be there in your postbit, thats the code I wrote to add the journal image that you can see in the postbit on my site that I linked to. You can use that exact code by putting it in your postbit template whereever you want it to show and uploading an image called icon-diary.gif to your images/misc folder.