The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Military Branches v1.01 Details »» | |||||||||||||||||||||||||
Military Branches v1.01 Created by SVTCobraLTD for 3.6.x - 4.1.x This will add a small Military Banner to your postbit templates. I found this useful for my forums so I hope you do. See the screen shots for more information. Right now it only contains Army, Navy, Marines and Air Force. Currently the images are made with a white background and a dark gray background. I am willing to help make the images match the background on your board for members who donate. UPLOAD FILES ADD USER GROUPS TEMPLATE EDITS ENJOY!! Updated: 03-04-09 - Added coding for secondary groups - Made Airforce and Marines image smaller vb4 Instructions Included! Do not forget to Mark as Installed Show Your Support
|
Comments |
#12
|
||||
|
||||
For VB4 look for the following code in postbit_legacy:
Code:
<div class="username_container"> <vb:if condition="$post['userid']"> {vb:raw memberaction_dropdown} {vb:raw post.onlinestatus} <vb:else /> <span class="username guest">{vb:raw post.musername}</span> </vb:if> </div> <span class="usertitle"> {vb:raw post.usertitle} </span> 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". |
#13
|
|||
|
|||
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 |
#14
|
||||
|
||||
Hey, sorry I didn't see the second edit in the instructions... for the MEMBERINFO template in VB4 look for:
Code:
<span id="userinfo"> <span class="member_username">{vb:raw prepared.musername}</span> <span class="member_status">{vb:raw prepared.onlinestatus}</span> <vb:if condition="$prepared['usertitle']"> <br /> <span class="usertitle">{vb:raw prepared.usertitle}</span> </vb:if> 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> |
#15
|
|||
|
|||
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!
|
#16
|
||||
|
||||
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"> <span class="member_username">{vb:raw prepared.musername}</span> <span class="member_status">{vb:raw prepared.onlinestatus}</span> <vb:if condition="$prepared['usertitle']"> <br /> <span class="usertitle">{vb:raw prepared.usertitle}</span> </vb:if> </span> </h1> Code:
<vb:if condition="$userinfo[usergroupid] == 6"><img src="http://www.qapla.com/ju/jump.gif" /><br /></vb:if> |
#17
|
|||
|
|||
Thank you to BirdsOPrey for updating instructions for vb4!! https://vborg.vbsupport.ru/showthread.php?t=256558
|
#18
|
|||
|
|||
I just figured it out!!!! You're awesome!!!! Thanks!
|
#19
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|