![]() |
For VB4 look for the following code in postbit_legacy:
Code:
<div class="username_container"> Code:
<vb:if condition="$post[usergroupid] == XX"><img src="images/misc/xxxxxxx.gif"></vb:if> In general IF statements remain the same between VB3 and VB4 except add "vb:" in front of the "if". |
Hi BOP5, I was able to do the first part of the instructions, but couldn't find the <div class="bugusername"... in the Templates>memberinfo edit.
to add: <if condition="$post[usergroupid] == xx"><img src="images/misc/XXXXXX.giof"></if> Thanks again for your help |
Hey, sorry I didn't see the second edit in the instructions... for the MEMBERINFO template in VB4 look for:
Code:
<span id="userinfo"> However looking at the <IF> code I seriously doubt the code given in the instructions will work in MEMBERINFO... The code given is: Code:
<if condition="$post[usergroupid] == XX"><img src="images/misc/xxxxxxx.gif"></if> Code:
<vb:if condition="$post[usergroupid] == XX"><img src="images/misc/xxxxxxx.gif"></vb:if> I believe the correct code should be: Code:
<vb:if condition="$vbulletin->userinfo[usergroupid] == XX"><img src="images/misc/xxxxxxx.gif"></vb:if> |
Hi BOP, I think I did what you said. I tried both codes and neither worked. The second update is in memberinfo, correct? Any other thoughts? Thanks again for your time!
|
Yeah, looks like I was a little off on where to place it, sorry about that.
I have tested this exact code and it's working for me: Find: Code:
<span id="userinfo"> Code:
<vb:if condition="$userinfo[usergroupid] == 6"><img src="http://www.qapla.com/ju/jump.gif" /><br /></vb:if> |
Thank you to BirdsOPrey for updating instructions for vb4!! https://vborg.vbsupport.ru/showthread.php?t=256558
|
I just figured it out!!!! You're awesome!!!! Thanks!
|
I had a mistake in my code... The text to add to member info SHOULD BE:
Code:
<vb:if condition="$userinfo[usergroupid] == 6"><img src="http://www.qapla.com/ju/jump.gif" /><br /></vb:if> Sorry for the confusion. I will edit my original post. |
All times are GMT. The time now is 01:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|