kreativ
11-14-2003, 01:30 PM
I need a little help deciphering one line of PHP code:
$prune_all = ($prune_all) ? '' : 'AND t.topic_vote = 0 AND t.topic_type <> ' . POST_ANNOUNCE;
This is the line of code that tells the prune function in phpBB to exclude polls and announcements from being pruned.
My friend, however, wants to include polls in the prune function, and exclude stickies as well as announcements in the prune function.
Removing "AND t.topic_vote = 0" does the trick for including polls in the prune function:
$prune_all = ($prune_all) ? '' : 'AND t.topic_type <> ' . POST_ANNOUNCE;
But I don't know the proper syntax to add stickies (POST_STICKY) to this line to have it excluded from the prune function.
Can anyone help?
$prune_all = ($prune_all) ? '' : 'AND t.topic_vote = 0 AND t.topic_type <> ' . POST_ANNOUNCE;
This is the line of code that tells the prune function in phpBB to exclude polls and announcements from being pruned.
My friend, however, wants to include polls in the prune function, and exclude stickies as well as announcements in the prune function.
Removing "AND t.topic_vote = 0" does the trick for including polls in the prune function:
$prune_all = ($prune_all) ? '' : 'AND t.topic_type <> ' . POST_ANNOUNCE;
But I don't know the proper syntax to add stickies (POST_STICKY) to this line to have it excluded from the prune function.
Can anyone help?
