Quote:
Originally Posted by BirdOPrey5
Editing the PHP wouldn't be of any help- any condition you can test in PHP you can test in the template.
The only part of your conditional I don't know off hand is $entry['userid']- I've never used it before so I don't know what data it's returning.
In the template put this code:
Code:
{vb:raw entry.userid}
That should have it "print out" the value of the variable so you can see exactly what is stored in it. My guess is it's not storing the value you expect. Make sure to test it with multiple users.
EDIT- Looking over your code are you sure it's $field['fieldid'] and not $entry['fieldid'] ?
|
I copied what was given to me at vba.com. So, yes, $field['fieldid'] is correct. I will try it with $entry['fieldid'] to see if it makes any difference. (Wouldn't that be lovely if it fixed it!?!)
$entry['userid'] - I believe is returning the user who posted the article. (But again- I am guessing as I copied what suggested.) I will work on it some more and post back anything I find. Thanks Joe!!
Kether
--------------- Added [DATE]1308935315[/DATE] at [TIME]1308935315[/TIME] ---------------
Quote:
Originally Posted by BirdOPrey5
In the template put this code:
Code:
{vb:raw entry.userid}
That should have it "print out" the value of the variable so you can see exactly what is stored in it. My guess is it's not storing the value you expect. Make sure to test it with multiple users
|
Tested it with multiple users from different user groups. The results returned are the same. A number: 122
Not sure what to make of that as it is not a field id nor is it a user id. But it always placed it where i put that code.
Kether