b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.8) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _comment.funcs.php

Source Location: /blogs/inc/MODEL/comments/_comment.funcs.php

Page Details

This file implements Comment handling functions.

This file is part of the b2evolution/evocms project - http://b2evolution.net/. See also http://sourceforge.net/projects/evocms/.

Author:  cafelog (team)
Author:  blueyed: Daniel HAHLER.
Author:  fplanque: Francois PLANQUE.
Version:  $Id: _comment.funcs.php,v 1.4.2.3 2006/07/04 16:24:12 fplanque Exp $
Copyright:  (c)2003-2006 by Francois PLANQUE - http://fplanque.net/. Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact.
Todo:  

implement CommentCache based on LinkCache

Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Includes
require_once (dirname(__FILE__).'/_comment.class.php') [line 35]

Includes:

[ Top ]


Functions
comments_link  [line 226]

void comments_link( [ $file = ''], [ $tb = 0], [ $pb = 0]  )

Displays link to comments page

Parameters:
   $file: 
   $tb: 
   $pb: 

API Tags:
Deprecated:  deprecated by Item::feedback_link(), used in rss2.php


[ Top ]
comments_number  [line 190]

void comments_number( [ $zero = '#'], [ $one = '#'], [ $more = '#'], [ $post_ID = NULL]  )

comments_number(-)

Parameters:
   $zero: 
   $one: 
   $more: 
   $post_ID: 

API Tags:
Deprecated:  deprecated by Item::feedback_link(), used in _edit_showposts.php


[ Top ]
comments_popup_script  [line 256]

void comments_popup_script( [integer $width = 600], [integer $height = 450], [boolean $scrollbars = true], [boolean $status = true], [boolean $resizable = true]  )

This will include the javascript that is required to open comments, trackback and pingback in popup windows.

You should put this tag before the </head> tag in your template.

Parameters:
integer   $width:  width of window or false
integer   $height:  height of window or false
boolean   $scrollbars:  do you want a scrollbar
boolean   $status:  do you want a status bar
boolean   $resizable:  do you want the windows to be resizable


[ Top ]
comment_author_url  [line 289]

void comment_author_url( [ $echo = true]  )

comment_author_url(-)

Parameters:
   $echo: 

API Tags:
Deprecated:  deprecated by Comment::author_url()
Usedby:  comment_author_url_basedomain()


[ Top ]
comment_author_url_basedomain  [line 312]

void comment_author_url_basedomain( [ $disp = true]  )

comment_author_url_basedomain(-)

Parameters:
   $disp: 

API Tags:
Deprecated:  
Uses:  comment_author_url()


[ Top ]
Comment_get_by_ID  [line 155]

Comment Comment_get_by_ID( integer $comment_ID  )

Get a Comment by ID. Exits if the requested comment does not exist!

Parameters:
integer   $comment_ID: 


[ Top ]
generic_ctp_number  [line 46]

void generic_ctp_number( integer $post_id, [string $mode = 'comments'], [ $status = 'published']  )

Generic comments/trackbacks/pingbacks counting

Parameters:
integer   $post_id: 
string   $mode:  what to count
   $status: 

Information Tags:
Todo:  check this in a multiblog page...
Todo:  This should support visibility: at least in the default front office (_feedback.php), there should only the number of visible comments/trackbacks get used (Item::feedback_link()).

[ Top ]


Documentation generated on Tue, 18 Dec 2007 23:11:34 +0100 by phpDocumentor 1.4.0