The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 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? |
|
#2
|
||||
|
||||
|
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> |
|
#3
|
|||
|
|||
|
Hm, that's pretty easy.
Thanks for the help! |
|
#4
|
|||
|
|||
|
I got this working:
Code:
<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> I tried this: Code:
<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>
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? |
|
#5
|
||||
|
||||
|
$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.
|
|
#6
|
|||
|
|||
|
Thanks, $post did the job.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|