1
Hello there
First of all I should confess my knowledge of php is not that great. So pardon me for possible low-level mistakes/questions.
I've had added these codes to theme.html:
le="color: #000000"><?php <{php}> global $xoopsTpl; $team_name = ''; $profile_handler =& xoops_getmodulehandler('profile', 'profile'); $profile = $profile_handler->get($uid); if (is_object($profile)) { $team_name = $profile->getVar('team_name'); $team_id = $profile->getVar('team_id'); $team_div = $profile->getVar('team_div'); $team_league = $profile->getVar('team_league'); } $xoopsTpl->assign('team_name', $team_name); $xoopsTpl->assign('team_id' , $team_id); $xoopsTpl->assign('team_div' , $team_div); $xoopsTpl->assign('team_league' , $team_league); $div = ''; if ($team_div == 1) { $div = 'League Bartar'; $team_league = 0; } elseif ($team_div == 2){ $div = 'II';} elseif ($team_div == 3){ $div = 'III';} elseif ($team_div == 4){ $div = 'IV';} elseif ($team_div == 5){ $div = 'V';} else{ $div = 'VI';} $xoopsTpl->assign('div' , $div); <{/php}>
and I call them as:
le="color: #000000"><?php <{$xoops_uname}> | <{$team_name}> | <{$div}>.<{$team_league}>
In local, these triple codes are seen everywhere, but on the actual site, in some modules' pages, like news or contact, one or two of the last ones are missing.
I have no idea what's happened there, so may I ask for any guidance?
Cheers