showtime_0 wrote:s7orm wrote:well i have a problem... i installed the mod via EMC and everything was fine... however when i click on Ranks i get a blank page... help?
same error
i am using extreme styles mod and installed ranks mod via easymod
signde wrote: i don't know why on earth someone would do this, but this is how this mode was trying to work
ranks.php does some stuff
ranks.php includes overall_header.php
overall_header.php was modified to include ranks.php
its a circular include and crap programming.
comment out this line in overall_header.php and it will work
include( $phpbb_root_path . 'ranks.' . $phpEx );
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : ranks -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
{L_USERGROUPS}</a>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{L_USERGROUPS}</a>
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
<a href="{U_RANKS}" class="mainmenu">{I_RANKS}{L_RANKS}</a>
tc1415 wrote: It seems to me that theerrors are caused by this being declared somewhere else first, although I havnt pinned down where. However, surronding them with a if function exists sort of thing solves it, but it does not remove any functionality. I am inclined to believed that ranks.php is being run twice, which makes no senseCode: Select all
Cannot redeclare get_rank_title()
Code: Select all
if ( !function_exists('get_rank_title') )
{
function get_rank_title($rank_title)
{
global $rank_extended, $profilcp, $lang;
$res = $rank_title;
if ($rank_extended || $profilcp)
{
$ranks = explode( "|", $rank_title);
$res = '';
$res .= (isset($ranks[1]) && !empty($ranks[1])) ? '<b>' . $lang['Male'] . ': </b>' . $ranks[1] . '<br />': '';
$res .= (isset($ranks[1]) && !empty($ranks[2])) ? '<b>' . $lang['Female'] . ': </b>' . $ranks[2] . '<br />' : '';
$res .= '<b>' . $lang['No_gender_specify'] . ': </b>' . $ranks[0];
}
return $res;
}
}