Thanks for the response mg...
indexbody.tpl line...
Here is the rating_index_body.tpl
Code: Select all
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline">
<!-- BEGIN notopics -->
<td class="row3" align="left" valign="top"><span class="gensmall"> {notopics.MESSAGE}</span></td>
<!-- END notopics -->
<!-- BEGIN ratingrow -->
<tr>
<td class="row3" align="right" valign="top"><span class="gensmall">{ratingrow.RATING} : </td><td class="row3" width="87%" align="left" valign="top"> <a href="{ratingrow.URL}">{ratingrow.TITLE}</a></span></td>
</tr>
<!-- END ratingrow -->
</table>
And here is the rating.php itself...
Code: Select all
<?php
/***************************************************************************
* $RCSfile: rate.php,v $
* -------------------
* begin : Saturday, May 08, 2003
* copyright : (C) 2002-2003 Nivisec.com
* email : support@nivisec.com
*
* $Id: rate.php,v 2.4 2003/05/21 18:49:27 nivisec Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', TRUE);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
/*******************************************************************************************
/** Start session.
/******************************************************************************************/
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
/*******************************************************************************************
/** Get parameters.
/******************************************************************************************/
$params = array('rate_mode', 'forum_top', 'topic_id', 'rating');
foreach($params as $var)
{
$$var = '';
if( isset($HTTP_POST_VARS[$var]) || isset($HTTP_GET_VARS[$var]) )
{
$$var = ( isset($HTTP_POST_VARS[$var]) ) ? $HTTP_POST_VARS[$var] : $HTTP_GET_VARS[$var];
}
}
/*******************************************************************************************
/** Page Titles if Specific!
/******************************************************************************************/
switch($rate_mode)
{
case 'rate':
$page_title = $lang['Rating'];
case 'rerate':
break;
case 'detailed':
{
if ($topic_id == '')
{
message_die(GENERAL_ERROR, $lang['No_Topic_ID'], '', __LINE__, __FILE__);
}
$page_title = $lang['Topic_Rating_Details'];
break;
}
default:
{
if ($forum_top == '')
{
$forum_top = -1;
}
$page_title = sprintf($lang['Top_Topics'], $board_config['large_rating_return_limit']);
break;
}
}
/*******************************************************************************************
/** Include Header (It Contains Rate Functions).
/******************************************************************************************/
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
/*******************************************************************************************
/** Display modes, for if the page is called seperately
/******************************************************************************************/
switch($rate_mode)
{
case 'rate':
rate_topic($userdata['user_id'], $topic_id, $rating, 'rate');
break;
case 'rerate':
rate_topic($userdata['user_id'], $topic_id, $rating, 'rerate');
break;
case 'detailed':
{
ratings_detailed($topic_id);
break;
}
default:
{
ratings_large();
break;
}
}
nivisec_copyright();
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Many thanks for looking at this!!
~Speed