The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need a little help
i dont get why php is considering 2 of these entries private because they are not private and the database has them listed as not private so i have no clue y.
here is my code: PHP Code:
thanks in advance |
#2
|
||||
|
||||
bump!!
|
#3
|
|||
|
|||
probably the private field for those 2 entries is not Null for some reason.
Try something like Code:
if($entry['private'] == 1) |
#4
|
||||
|
||||
that didnt fix it
|
#5
|
|||
|
|||
I think you may be emptying $entrybits (setting it to "") when all you want to do is not add to it.
Your code, given the following journal table entries, would result in your collected template output looking as follows: Code:
JOURNAL ENTRY $entrybits ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1_Not_Private "1_Not_Private" 2_Not_Private "1_Not_Private 2_Not_Private" 3_Private "" 4_Not_Private "4_Not_Private" rest_not_private "4_Not_Private rest_not_private" Code:
if($entry['private']) { if(($bbuserinfo['usergroupid']=="6") OR ($bbuserinfo['userid'] == $journalinfo['journalist_id']) OR (in_array($bbuserinfo['userid'], $wcv_entry))) { eval('$entrybits .= "' . fetch_template('journal_entrybits') . '";'); } else { $entrybits=''; } |
#6
|
||||
|
||||
OMG! that worked thanks so much ^_^
/me gives hug to CarCdr |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|