S2:CommentInfo

From No LJ Ads Wiki

Jump to: navigation, search

Information about comments attached to something.

[edit] Members

int count Current number of comments available to be read by the viewer.
bool enabled Set to false if comments disabled journal-wide or just on this item.
bool maxcomments Set to true if entry has reached a comment maximum. (5000 on LiveJournal.com.)
string post_url URL pointer to the 'Post Comment' view. (Read-only)
string read_url URL pointer to the 'Read Comments' view. (Read-only)
bool screened Set to true if there are screened comments and remote user can unscreen them.
bool show_postlink Indicates whether the Post Comment link for this entry should be shown. True if comments are enabled.
bool show_readlink Indicates whether the Read Comments link for this entry should be shown. True if comments are enabled, the comment cound is greater than 0 or there are visible screened comments, and we're on DayPage, EntryPage, FriendsPage or RecentPage.

[edit] Methods

print() : void Print all comment related links
print_postlink() : void Print the formatted link to the 'Post Comment' (ReplyPage) view
print_readlink() : void Print the formatted link to the 'Read Comments' (EntryPage) view