The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I'm trying to edit postbit_legacy. I want to add a "Test" word above the avatar of certains groups in the postbit_legacy template. I tried to do: Code:
<vb:if condition="$post['usergroupid'] == '6'">Test</vb:if> Then, it works but only for users that belong to the group "6". Other users doesn't see the Test word: How could I fix it? Thanks in advance. |
#2
|
|||
|
|||
![]()
That's surprising, because I would think that $post has the info for the poster so the "viewing" user's group shouldn't have anything to do with it. But anyway, try this:
Code:
<vb:if condition="is_member_of($post, 6)">Test</vb:if> |
#3
|
|||
|
|||
![]()
Didn't work. It doesn't display the word test for everyone:
http://seduccioncientifica.com/foro/...=4933#post4933 I can see it, only. The other users can't. |
#4
|
|||
|
|||
![]()
Well, what happens if (just as a test) you do this:
Code:
<vb:if condition="1">Test</vb:if> |
#5
|
|||
|
|||
![]()
That is what I want to do, but the variable doesn't seem to be $post or... I don't know.
I think it works like this: Code:
<vb:if reader=member_of_group_6 and poster=member_of_group6>Test</vb:if> |
#6
|
|||
|
|||
![]()
OK. Sorry, there was a mistake in my post above. What I meant was, let's try an experiment: if you put this in your template:
Code:
<vb:if condition="1">Test</vb:if> |
#7
|
|||
|
|||
![]()
It shows "Test" above each avatar.
|
#8
|
|||
|
|||
![]()
Oh, OK, sorry - I guess I just misunderstood your answer. So that works like you want, with everyone able to see it.
Anyway, it doesn't make any sense to me - as far as I know, $post just has the info for the poster. |
#9
|
|||
|
|||
![]()
But I want to display "Test" above the avatars only for certain groups. I mean:
Code:
If usergroup = group_6 then Display "Test" else Don't display "Test". |
#10
|
|||
|
|||
![]()
What about..
Code:
<vb:if condition="is_member_of($bbuserinfo, 6)">Test</vb:if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|