1
Sir_Saeed
Some codes disappear in some pages!
  • 2010/3/27 15:36

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


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:

<{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:

<{$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

2
culex
Re: Some codes disappear in some pages!
  • 2010/3/27 21:20

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Try to check these modules templates. Maybe they use the same name and therefore overwrites yours

Login

Who's Online

346 user(s) are online (227 user(s) are browsing Support Forums)


Members: 0


Guests: 346


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits