On the thread listing page (threadbit), in vB3 and vB4, I find the icons to the left of the thread title to be useless. To make that space useful, I'd like to show icons only for threads started by members of certain "priority" usergroups. Their threads get icons, normal members will not.
The easiest way is to wrap this code (which shows one of the icons)
Code:
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
in an conditional if statement. But that's my dilemma -- what should it be?
I've tried writing several statements, but none have worked, or even come close. All those did was blank out the icon column, and showed nothing.
Example of NOT working:
Code:
<vb:if condition="is_member_of($vbulletin->thread[postuserid], 6, 33)">
</vb:if>
I came across this:
http://stackoverflow.com/questions/3...-on-usergroup#
Quote:
$vbulletin->userinfo and $bbuserinfo grab the user viewing the page. What you want is to grab the user whose post you are iterating over. If you look at the context of your code, all of the vBulletin variables stem from $memberinfo. That's the current poster, and the variable we want. Try: <vb:if condition="is_member_of($memberinfo, 14)">
|
That makes sense, however it also does not work. My first test was to show threads started by an admin.
Code:
<vb:if condition="is_member_of($memberinfo, 6)">
</vb:if>
What am I missing?
..