Unclassified NewsBoard Code Reference

UnbShowAnnounce function

Show an announcement
For main.inc (Forum list), post.inc (Announcement preview) and thread.inc (inside threads)

function UnbShowAnnounce (&$announce, $preview = false, $id = 0, $page = 0);

Parameters:

announce
IAnnounce object set to the announcement to be shown
preview  –  optional, default: false
(bool) preview mode? -> no read/unread... controls
id  –  optional, default: 0
(int) > 0 if the announcement is displayed in a forum | < 0 is a thread
page  –  optional, default: 0
(int) page number in thread

Remarks:

Expects the <table> framework already to be started and to be closed after last announcement

Implementation file: unb_lib/common_post.lib.php, line 460

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