Unclassified NewsBoard Code Reference

UnbListThreads function

List threads

function UnbListThreads ($where, $page = 1, $editthread = 0, $get = null, $order = '', $limit = '', $write = true, $showhidden = false);

Parameters:

where
(int) forum to list threads from
(string) SQL restriction of threads to show
page  –  optional, default: 1
(int) page number to display (-1: last page)
editthread  –  optional, default: 0
(int) thread ID to edit
get  –  optional, default: null
(array) GET params to add to page links (i.e. search definition)
order  –  optional, default: ''
(string) SQL ORDER parameter
limit  –  optional, default: ''
(string) SQL LIMIT parameter
write  –  optional, default: true
(bool) enable "write access" at all? this means:
icons for thread editing. recommended to false on search queries etc
showhidden  –  optional, default: false
(bool) show all hidden threads this time

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

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