Unclassified NewsBoard Code Reference

UnbListPosts function

List postings (and poll, if available)

function UnbListPosts ($where, $page = 1, $get = null, $order = 'Date ASC', $write = true, $highlight = false, $post_count = false);

Parameters:

where
(int) thread to list posts from
(string) SQL restriction of posts to show
page  –  optional, default: 1
(int) page number to display
get  –  optional, default: null
(array) GET params to add to page links (i.e. search definition)
write  –  optional, default: true
(bool) enable "write access" at all? this means:
icons for thread editing. recommended to false on search queries etc.
hightlight
array of words to highlight, from search i.e.
post_count  –  optional, default: false
(int) number of posts to display (optional; saves the count query,
good for search when we already have the count)
order  –  optional, default: 'Date ASC'
highlight  –  optional, default: false

Implementation file: unb_lib/common_out.lib.php, line 866

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.