The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Confused : $post[field10] randomly not populated? please help
Hi
I have the following code in my postbit_legacy template : <if condition="$post[field10] == ''"> Seemingly completely randomly, when the thread loads, the $post[field10] variable is not populated. In fact it seems that none of the user fields under the $post object are populated. They are either populated for all posts on the thread, or for none, and I can't find any pattern to it. Any help / pointers would be really great. Simon |
#2
|
||||
|
||||
Are you trying to test if it's populated or not populated in that conditional?
|
#3
|
|||
|
|||
Hi, thanks for the reply.
Basically, yes. (Are you going to tell me off!? ) Simon |
#4
|
||||
|
||||
Where are you putting the variable?
|
#5
|
||||
|
||||
Something similar happened to me (I think) It had to do with permisions, I put the field as "private field" so users without the permisions wouldn't get the $post[fieldx] working since it wouldn't show to them with their permisions.
Worth a shot, although I don't think (after rereading your problems) this would be the cause. |
#6
|
||||
|
||||
Are the custom user fields bitfield values?
|
#7
|
|||
|
|||
Guys, thanks for the replies.
Quote:
-- NolF The feild is indeed private, so that only admin can amend it for each account. -- Antivirus No, they are text fields. -- To be clear.. this works intermitently, and "seemingly" randomly. In other words if I included the test code : <if condition="$post[field10] == ''"> XXX <else /> YYY </if> Then sometimes the thread would load and there would be XXX next to the user's name, and another time the same thread loads, the same user would have YYY next to their name without any changes taking place in the database for those fields against that user. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|