PDA

View Full Version : Link to topic in profile/postbit?


ray-
11-27-2008, 09:42 AM
I'm wondering if there's any mod available where a link in the postbit will appear, when the user has a thread in a specific forum.

Probably not clear enough, so
here's an example (http://www.106owners.co.uk/forums/showthread.php?t=69804) I found.
When a user has a thread in the forum called 'progress blog', a link to that thread is added in the user's postbit (progress blog)
As you can see, alanandlexie has a thread in the progress blogs, Lil_paul doesn't.
Don't know if it's being hard coded over there, but I guess not.

Any ideas?

SEOvB
11-27-2008, 09:49 AM
Thats usually done by allowing users to enter a threadid into a custom profile field then checking if it exists in the postbit

<if condition="$post[fieldX]">
<a href="showthread.php?t=$post[fieldX]">Custom Text</a>
</if>

ray-
11-27-2008, 10:50 AM
Hm, that's pretty easy.
Thanks for the help!

ray-
12-05-2008, 09:45 PM
I got this working:
<if condition="$post[field5]"><a href="showthread.php?t=$post[field5]"><img class="inlineimg" src="images/xtreme/statusicon/diary.gif" alt="Diary of $post[username]" border="0" /></a></if>

But now I want to show this icon only if that user is in a specific usergroup.
I tried this:

<if condition="is_member_of($bbuserinfo, 1)">
<div>
<if condition="$post[field5]"><a href="showthread.php?t=$post[field5]"><img class="inlineimg" src="images/xtreme/statusicon/diary.gif" alt="Diary of $post[username]" border="0" /></a></if>
</div>
</if>
But that doesn't work.
I've searched the forums, but it looks like using ' <if condition="is_member_of($bbuserinfo, 1)">' is the only way to do this. What am I doing wrong here?

Lynne
12-05-2008, 10:22 PM
$bbuserinfo is for you, the viewer. If you are wanting to use the condition based on the person who's profile, or post, you are viewing, you would use $userinfo or $post, respectively.

ray-
12-06-2008, 08:38 AM
Thanks, $post did the job.