The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Profile Fields - Displayed in postbit
I am having a bit of an issue. I use the following code to display icons next to the user name in the postbit. It all works well. As long as you are logged in. For whatever reason, when logged out, field10 and field11 do not display. It doesn't matter what order I put them in, the other three fields always show up, but field10 and field11 only show up if you are logged in.
I can not figure out what I am doing wrong, and how being logged in would make the difference. I have viewed the html through explorer, and the lines calling the icons for field10/11 do not appear. It is almost as if the "if statement" is failing when a user is logged off. Any help? PHP Code:
|
#2
|
|||
|
|||
That's very bizzarre. Are you sure there are no extra conditional statements wrapped around your profile fields?
|
#3
|
|||
|
|||
I'm not sure, here is the entire template if that helps:
PHP Code:
It gets stranger. Apparently, only two of my admin accounts can see these. Regular users and users not logged in, can only see field, 6,7,9. Fields 10/11 don't seem to show except to two admin accounts. There are several other admin accounts which can not see those fields. |
#4
|
||||
|
||||
Are the fields set as private or in a category that may be set as private?
|
#5
|
|||
|
|||
Thanks Lynne, but none of the fields are set to private, and the two in question share a category with field6 which always displays. I even set the user permissions to allow viewing of private fields and that didn't help.
This is out there, but can it be that field10 and field11 are 7 characters while the others are only 6? It is the only difference I can find. (I am referring the the actual field name, with the identifying digit being a single digit as compaired to a 2 digit identifier) I have now found a couple of "registered users" who can see them while others can not. This is driving me nuts. |
#6
|
||||
|
||||
You do realize that they will only show if the user filled in the field, right? So, if the user who made the post has not put anything in that field, then nothing will show - that is what your if condition says (if $post[field10] is specified, then show the gif). tAke a look in your database and see if anything is specified for the users where it isn't showing.
|
#7
|
|||
|
|||
I thought the field had to be wrapped in ''.
i.e: PHP Code:
|
#8
|
|||
|
|||
Well (hanging head in shame), it turns out that my child styles were not being updated by the parent. I'm not sure when or how I broke those links, but all the subordinate styles only had the code for 3 of the icons. Different users with different styles. I don't know how I didn't see it right away.
Thanks for all your help. Dave |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|