The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
When you say you want Test "above the avatar of certains groups" you mean the group of the poster (owner of the avatar), right? |
#12
|
|||
|
|||
This doesn't work unless I'm logged in. This code doesn't display not "Test1" nor "Test2" If I'm a guest or a regular user.
Code:
<vb:if condition="$post['field5']"> Test1<vb:if condition="is_member_of($post,6)">Test2</vb:if></vb:if> --------------- Added [DATE]1312396804[/DATE] at [TIME]1312396804[/TIME] --------------- No RobbieZ, it retrieves the group of the viewer, not the group of the poster. |
#13
|
|||
|
|||
I realize this doesn't help a lot, but just for the record, I put this in my postbit_legacy:
Code:
<vb:if condition="is_member_of($post, 6)"> Test </vb:if> ...and I have a thread with two posts, one by an admin and one by a regular user. "Test" appears in the postbit of the admin's post and not in the other user's post, no matter who is viewing (admin, regular user, or guest). So it should be working for you. Maybe try disabling plugins as a test to see if a plugin is affecting things. |
#14
|
|||
|
|||
Quote:
Code:
<vb:if condition="$post['field5']"> I can't understand it, condition="$post['field5'] shouldn't be too problematic. Thanks a lot. |
#15
|
|||
|
|||
I changed it to this:
Code:
<vb:if condition="$post['field4']"> Test </vb:if> field4 is "Occupation". I set the occupation to "1" for the admin account and blank for the regular user account. So now I see "Test" in the admin post and nothing in the user post, as expected. What do you see when you just insert {vb:raw post.field5} in the template? |
#16
|
|||
|
|||
I see a id number. It is harmless.
|
#17
|
|||
|
|||
But do you see the id number, logged in or not?
Oh, I have an idea - are you viewing with the same style whether or not you're logged in? If the other users are using a different style they could be using a different postbit_legacy template. (Edit - but then I guess the condition="1" test wouldn't have worked). |
#18
|
|||
|
|||
It seems the same template, I think is the default one. However, perhaps they are using postbit instead of postbit_legacy.
I'm going to check it right now. --------------- Added [DATE]1312401513[/DATE] at [TIME]1312401513[/TIME] --------------- No, they are using the same template everytime. In fact, I'm using a simple text in the template and is it displayed everytime. --------------- Added [DATE]1312483712[/DATE] at [TIME]1312483712[/TIME] --------------- This is my postbit_legacy: Code:
|
#19
|
|||
|
|||
Up!
|
#20
|
|||
|
|||
I put that in my style, and I took out the $post['field5'] if so that line is
HTML Code:
<vb:if condition="is_member_of($post,6)">Test2</vb:if>Test3 and I see Test2Test3 under the admin avatar, and Test3 under the regular user, no matter if I'm logged in as admin, or not logged in at all. I'm not sure what else to tell you - try disabling all plugins if you haven't done that already. Or try uploading the vb files again. Edit: if you just put {vb:raw post.usergroupid} in the template, do you see what you expect (probably 6 or 2) no matter who is logged in? Should be the same for each post no matter who you're loggedin as, of course. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|