Hi onetimedude,
please copy and paste the contents of this file here for me to look at, or at least the first 30 lines or so
Regards
Max
Alright, here it is (plugins/content/ChronoComments.php - first 44 lines):
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$mainframe->registerEvent( 'onPrepareContent', 'plgContentChronocomments' );
require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
function plgContentChronocomments( &$row, &$params, $page=0 )
{
global $mainframe, $addChronoCommentscripts;
if((JRequest::getVar('option') == 'com_newsfeeds')||(JRequest::getVar('option') == 'com_contact'))return;
// if(JRequest::getVar('view') == 'category')return;
if(JRequest::getVar('view') == 'section')return;
JPlugin::loadLanguage( 'com_chronocomments' );
$uri = & JFactory::getURI();
$configs = JComponentHelper::getParams('com_chronocomments');
if((JRequest::getVar('print') == '1')&&($configs->get('disable_onprint') == '1'))return;
$user = JFactory::getUser();
$session =& JFactory::getSession();
// first captcha
if($configs->get('captcha') == '1'){
$alphanum = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789abcdefghijkmnpqrstuvwxyz";
$rand = substr(str_shuffle($alphanum), 0, 5);
$session->set("comment_captcha", md5(strtolower($rand)), md5('chrono'));
$session->set("comment_captcha_orig", $rand, md5('chrono'));
}
//pagination
if($configs->get('enablepagination', '0') == '1'){
$session->set("pagination_current_start", 0, md5('chrono'));
$session->set("pagination_next_start", (0 + (int)$configs->get('paginationcount', '10')), md5('chrono'));
$session->set("pagination_prev_start", (0 - (int)$configs->get('paginationcount', '10')), md5('chrono'));
}
JHTML::_('behavior.mootools');
$js = '<script type="text/javascript">';
$js .= "var CommentPublished = ".(($configs->get('new_posts_published', '2') == '0') ? 0 : ((($configs->get('new_posts_published', '2') == '1')&&($user->guest)) ? 0 : 1)).";";
$js .= "\n";
$js .= "var CommentVerified = ".((($configs->get('new_posts_verified', '0') == '0')|| (($configs->get('new_posts_verified', '0') == '1')&&$user->id)))? 1 : ((($configs->get('new_posts_verified', '0') == '1')&&($user->guest)) ? 0 : 0)).";";
I have some mods done to this file, not PHP related, only HTML.