[ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1203 lignes (53 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
CMT_commentBar( $sid, $title, $type, $order, $mode ) X-Ref |
This function displays the comment control bar Prints the control that allows the user to interact with Geeklog Comments param: string $sid ID of item in question param: string $title Title of item param: string $type Type of item (i.e. story, photo, etc) param: string $order Order that comments are displayed in param: string $mode Mode (nested, flat, etc.) return: string HTML Formated comment bar |
CMT_getComment( &$comments, $mode, $type, $order, $delete_option = false, $preview = false ) X-Ref |
This function prints &$comments (db results set of comments) in comment format -For previews, &$comments is assumed to be an associative array containing data for a single comment. param: array &$comments Database result set of comments to be printed param: string $mode 'flat', 'threaded', etc param: string $type Type of item (article, poll, etc.) param: string $order How to order the comments 'ASC' or 'DESC' param: boolean $delete_option if current user can delete comments param: boolean $preview Preview display (for edit) or not return: string HTML Formated Comment |
CMT_userComments( $sid, $title, $type='article', $order='', $mode='', $pid = 0, $page = 1, $cid = false, $delete_option = false ) X-Ref |
This function displays the comments in a high level format. Begins displaying user comments for an item param: string $sid ID for item to show comments for param: string $title Title of item param: string $type Type of item (article, poll, etc.) param: string $order How to order the comments 'ASC' or 'DESC' param: string $mode comment mode (nested, flat, etc.) param: int $pid id of parent comment param: int $page page number of comments to display param: boolean $cid true if $pid should be interpreted as a cid instead param: boolean $delete_option if current user can delete comments return: string HTML Formated Comments |
CMT_commentForm($title,$comment,$sid,$pid='0',$type,$mode,$postmode) X-Ref |
Displays the comment form param: string $title Title of comment param: string $comment Text of comment param: string $sid ID of object comment belongs to param: int $pid ID of parent comment param: string $type Type of object comment is posted to param: string $mode Mode, e.g. 'preview' param: string $postmode Indicates if comment is plain text or HTML return: string HTML for comment form |
CMT_saveComment($title, $comment, $sid, $pid, $type, $postmode) X-Ref |
Save a comment author: Vincent Furia <vinny01 AT users DOT sourceforge DOT net> param: string $title Title of comment param: string $comment Text of comment param: string $sid ID of object receiving comment param: int $pid ID of parent comment param: string $type Type of comment this is (article, polls, etc) param: string $postmode Indicates if text is HTML or plain text return: int 0 for success, > 0 indicates error |
CMT_sendNotification($title, $comment, $uid, $ipaddress, $type, $cid) X-Ref |
Send an email notification for a new comment submission. param: $title string comment title param: $comment string text of the comment param: $uid integer user id param: $ipaddress string poster's IP address param: $type string type of comment ('article', 'poll', ...) param: $cid integer comment id |
CMT_deleteComment($cid, $sid, $type) X-Ref |
Deletes a given comment The function expects the calling function to check to make sure the requesting user has the correct permissions and that the comment exits for the specified $type and $sid. author: Vincent Furia <vinny01 AT users DOT sourceforge DOT net> param: string $type article, poll, or plugin identifier param: string $sid id of object comment belongs to param: int $cid Comment ID return: string 0 indicates success, >0 identifies problem |
CMT_reportAbusiveComment($cid, $type) X-Ref |
Display form to report abusive comment. param: string $cid comment id param: string $type type of comment ('article', 'poll', ...) return: string HTML for the form (or error message) |
CMT_sendReport($cid, $type) X-Ref |
Send report about abusive comment param: string $cid comment id param: string $type type of comment ('article', 'poll', ...) return: string Meta refresh or HTML for error message |
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |