0
Hi,
GREAT component and it installed easily but I'm getting errors when I click on 'Album Manager' in the admin area and also on the front of the website.
Details:
Joomla 1.5.8
PHP 5
Legacy enabled (for another component)
The Error in Admin on Album Manager is:
$points) $grey="_grey"; $java = "id='star".$i."_".$album_id."' onclick='".$funcio."($i,$album_id);' onmouseover='stars($i,$album_id);' "; $add_java = ""; if($album_id) $add_java = $java; $return .= ""; } return $return; } function time_to_string($total_time){ $segons = $total_time % 60; if($segons = 60){ $minuts_60 = $minuts % 60; $hores = ($minuts - $minuts_60)/60; if($minuts_60 0){ $total_time = $hores.":".$minuts_60.":".$segons; } else $total_time = $minuts.":".$segons; return $total_time; } }
and the error on the front page of the website is:
# $points){ $grey = "_grey"; if($points > ($i-1)) $grey = "_half_grey"; } $image_attr = array( "title" => "$points ".JText::_('out of')." 5" ); $image_attr_java = array( "title" => "$points ".JText::_('out of')." 5" , "id" => "star".$i."_".$album_id , //"onclick" => $funcio."($i,$album_id);" , "onmouseover" => "stars($i,$album_id);" ); if($album_id) { $image_attr = $image_attr_java; $return .= "".JHTML::image('components/com_muscol/assets/images/star' . $grey.$show_small. '.png' , "$i ".JText::_('out of')." 5" , $image_attr ).""; } else{ $return .= JHTML::image('components/com_muscol/assets/images/star' . $grey.$show_small. '.png' , "$points ".JText::_('out of')." 5" , $image_attr ); } } return $return; } function li_inicial($lletra,$selected,$pos){ $cadena = ""; if($selected){ if($pos=="") $cadena .= ""; else if($pos=="left") $cadena .= "
# "; else if($pos=="right") $cadena .= "
# "; } else{ if($pos=="") $cadena .= "
# "; else if($pos=="left") $cadena .= "
# "; else if($pos=="right") $cadena .= "
# "; } $link = JRoute::_( 'index.php?option=com_muscol&view=artists&letter='. $lletra ); $cadena .= "".$lletra."
n"; return $cadena; } function month_name($month){ $month_array = array( 1 => JText::_( "January" ), 2 => JText::_( "February" ), 3 => JText::_( "March" ), 4 => JText::_( "April" ), 5 => JText::_( "May" ), 6 => JText::_( "June" ), 7 => JText::_( "July" ), 8 => JText::_( "August" ), 9 => JText::_( "September" ), 10 => JText::_( "October" ), 11 => JText::_( "November" ), 12 => JText::_( "December" ) ); return $month_array[$month]; } function letter_navigation($inicial){ $return .= "
"; $inicials = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","123"); if($inicials[0] != $inicial) $return .= MusColHelper::li_inicial($inicials[0],false,"left"); else $return .= MusColHelper::li_inicial($inicials[0],true,"left"); for($i=1;$i= 60){ $minuts_60 = $minuts % 60; $hores = ($minuts - $minuts_60)/60; if($minuts_60 0){ $total_time = $hores.":".$minuts_60.":".$segons; } else $total_time = $minuts.":".$segons; return $total_time; } } params->get('showletternavigation')){ echo MusColHelper::letter_navigation($this->artist->letter); } ?>
params->get('showpdficon')){ ?>
artist->id); $image_songs = JHTML::image('components/com_muscol/assets/images/music.png',JText::_('View songs')); $image_albums = JHTML::image('components/com_muscol/assets/images/cdr.png',JText::_('View albums')); ?>
Please Help as I really wanted this to work on my website , especially after I had paid for it!
Thanks for your help.
GREAT component and it installed easily but I'm getting errors when I click on 'Album Manager' in the admin area and also on the front of the website.
Details:
Joomla 1.5.8
PHP 5
Legacy enabled (for another component)
The Error in Admin on Album Manager is:
$points) $grey="_grey"; $java = "id='star".$i."_".$album_id."' onclick='".$funcio."($i,$album_id);' onmouseover='stars($i,$album_id);' "; $add_java = ""; if($album_id) $add_java = $java; $return .= ""; } return $return; } function time_to_string($total_time){ $segons = $total_time % 60; if($segons = 60){ $minuts_60 = $minuts % 60; $hores = ($minuts - $minuts_60)/60; if($minuts_60 0){ $total_time = $hores.":".$minuts_60.":".$segons; } else $total_time = $minuts.":".$segons; return $total_time; } }
and the error on the front page of the website is:
# $points){ $grey = "_grey"; if($points > ($i-1)) $grey = "_half_grey"; } $image_attr = array( "title" => "$points ".JText::_('out of')." 5" ); $image_attr_java = array( "title" => "$points ".JText::_('out of')." 5" , "id" => "star".$i."_".$album_id , //"onclick" => $funcio."($i,$album_id);" , "onmouseover" => "stars($i,$album_id);" ); if($album_id) { $image_attr = $image_attr_java; $return .= "".JHTML::image('components/com_muscol/assets/images/star' . $grey.$show_small. '.png' , "$i ".JText::_('out of')." 5" , $image_attr ).""; } else{ $return .= JHTML::image('components/com_muscol/assets/images/star' . $grey.$show_small. '.png' , "$points ".JText::_('out of')." 5" , $image_attr ); } } return $return; } function li_inicial($lletra,$selected,$pos){ $cadena = ""; if($selected){ if($pos=="") $cadena .= ""; else if($pos=="left") $cadena .= "
# "; else if($pos=="right") $cadena .= "
# "; } else{ if($pos=="") $cadena .= "
# "; else if($pos=="left") $cadena .= "
# "; else if($pos=="right") $cadena .= "
# "; } $link = JRoute::_( 'index.php?option=com_muscol&view=artists&letter='. $lletra ); $cadena .= "".$lletra."
n"; return $cadena; } function month_name($month){ $month_array = array( 1 => JText::_( "January" ), 2 => JText::_( "February" ), 3 => JText::_( "March" ), 4 => JText::_( "April" ), 5 => JText::_( "May" ), 6 => JText::_( "June" ), 7 => JText::_( "July" ), 8 => JText::_( "August" ), 9 => JText::_( "September" ), 10 => JText::_( "October" ), 11 => JText::_( "November" ), 12 => JText::_( "December" ) ); return $month_array[$month]; } function letter_navigation($inicial){ $return .= "
"; $inicials = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","123"); if($inicials[0] != $inicial) $return .= MusColHelper::li_inicial($inicials[0],false,"left"); else $return .= MusColHelper::li_inicial($inicials[0],true,"left"); for($i=1;$i= 60){ $minuts_60 = $minuts % 60; $hores = ($minuts - $minuts_60)/60; if($minuts_60 0){ $total_time = $hores.":".$minuts_60.":".$segons; } else $total_time = $minuts.":".$segons; return $total_time; } } params->get('showletternavigation')){ echo MusColHelper::letter_navigation($this->artist->letter); } ?>
params->get('showpdficon')){ ?>
artist->id); $image_songs = JHTML::image('components/com_muscol/assets/images/music.png',JText::_('View songs')); $image_albums = JHTML::image('components/com_muscol/assets/images/cdr.png',JText::_('View albums')); ?>
Please Help as I really wanted this to work on my website , especially after I had paid for it!
Thanks for your help.
Responses (6)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0With much help from germi I got the issue solved. You have to add the line:
to the php.ini file that is in the Joomla install folder. If that doesn't solve it. Rename php.ini to php5.inishort_open_tag = On
This worked perfectly for me.
can't thank germi enough for the help!! I thought I was screwed!
Callum
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »