The iframe in chatter.html will load this 'View Chatters' page. You can format this page to look how you want the chatterblock to be displayed. Let's take a look at the code.
Basically code selects all the entries in the chatterblock to be listed, in the order of oldest last, newest first (chronological order). I only put in some basic format to display the entries; you can insert CSS, tables or whatever you like inside this part. In the above code, a user's name is displayed in bold with a hyperlink to the url entered. Note: It'll display the hyperlink regardless of whether a url is entered or not. if you want it to be more intelligent, run a simple if check to see if $url has a value. If $url is empty, then don't display the hyperlink. The message is displayed at the side of the name. Each entry is separated by a horizontal rule. Save this file as view.php
blog comments powered by Disqus |