Unclassified NewsBoard Code Reference

UnbMakePostLink function

Make a link to a specified post

function UnbMakePostLink ($post, $page = 0, $customtag = false);

Parameters:

post
(int) post id
(array(post id, thread id, timestamp, *))
(IPost object)
page  –  optional, default: 0
(int) page number the post is on, if already known or e.g. -1 (saves some database queries, again)
(Note: since thread.inc takes a postid parameter, this information is not required)
customtag  –  optional, default: false
false: create full link with image
true: only create the <a> tag. Caller must set the closing </a> tag.
2: only return the URL
3: return full URL without session ID (for RSS feed or notification messages)

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

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