The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Clan Tag Mod
There was a clan tag mod for vB3.x.x where users could enter a clan tag in their profile and this clan tag was then added in red color before their username.
Like: [vB] Mister X Can someone link me to this mod? Is this mod compatible to vB4.x.x? If not then it would be great if someone could develop such a mod for vB4. Thanks. |
#2
|
||||
|
||||
Well for vB3 it would've been; make a clan tag profile field, and then edit your postbit template and before $post[musername] add <if condition="$post['fieldx']">$post[fieldx]</if>
I'm sure it's easy to translate that to vb4, I just can't remember the syntax anymore, lol |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
Well, I think it would be something like this:
<vb:if condition="$post['fieldx']">{vb:raw post.fieldx}</vb:if>{vb:raw post.username} So go to your ACP > User Profile Field Manager > Add New User Profile Field > Profile Field Type > Single Line Text Box > Fill out all the boxes, then note the FIELDID .. Ie, it will say something liek "field7" - then go to your ACP > Styles & Templates > Style Manager > YourStyle > Edit Templates > Postbit Templates > Postbit and find {vb:raw post.username} and add before it; <vb:if condition="$post['fieldx']">{vb:raw post.fieldx}</vb:if> - where the red x is changed to your fieldid.. This isn't tried or tested, but should work. Of course, if you want the clan tag to be RED and inside ['s, change the code accordingly, IE; <vb:if condition="$post['fieldx']"><span style="color:red;">[{vb:raw post.fieldx}]</span></vb:if>{vb:raw post.username} |
#5
|
|||
|
|||
I'll try it out now and post back with the results. Thanks for the help so far.
--------------- Added [DATE]1266531421[/DATE] at [TIME]1266531421[/TIME] --------------- It gives me the following error when saving: Code:
Parse error: syntax error, unexpected T_STRING in /.../pro-esports.com/forums/includes/adminfunctions_template.php(4667) : eval()'d code on line 53 Line 53: Code:
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span> Code:
<vb:if condition="$post.avatarurl"> <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, <vb:if condition="$post['field16']"><span style="color:red;">[{vb:raw post.field16}]</span></vb:if> {vb:raw post.username}}" /> <vb:else /> |
#6
|
||||
|
||||
Sorry that didn't work, like I originally said, this wasn't tried nor tested. I only have a vB4 localhost, and am not using it live, so I don't know what the error could be there, maybe someone else can reply with an answer.
|
#7
|
|||
|
|||
<vb:if condition="$post['userid'] > 0">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, <vb:if condition="$post['field16']"><span style="color:red;">[{vb:raw post.field16}] </span></vb:if>{vb:raw post.username}}" /> </vb:if> That should work fine .. I can't test it at the moment, but it should work without issue. I haven't read entirely what you want to accomplish, but going off of Mikey's comments and what I see slightly in the first post... |
#8
|
|||
|
|||
Now it gives the following error message:
Quote:
|
#9
|
|||
|
|||
Bump!
|
#10
|
|||
|
|||
I know this thread is old... but has anyone gotten this to work?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|