Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 1:50 am (All times are UTC )

 





Post new topic Reply to topic  [ 3 posts ] 
Author Message
Posted: Sun Jan 13, 2008 1:52 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 16, 2007 6:32 pm
Posts: 88
Eu estou tentando fazer funcionar este componente abaixo e não estou conseguindo.

http://extensions.joomla.org/component/ ... Itemid,35/

Segui as intruções de instalação enão entendi nada.

O cara falar assim:

faça uma lima nova em um diretório. Nomeie-o mp3playlist.xml

Em que direório? eu tenho que adivinhar este diretório entre as centenas de pastas do joomla?

Eu instalei o componente acima da maneira tradicional e deu este erro quando fui acessar a administração dele:
Code:

getPath( 'admin_html' ) ); require_once( $mainframe->getPath( 'class' ) ); $cid = mosGetParam($_REQUEST, 'cid', array()); switch ( $act ) { case "info": showInformation($option); break; default: switch($task) { case "orderup": orderClip( $cid[0], -1, $option ); break; case "orderdown": orderClip( $cid[0], 1, $option ); break; case "delete": deleteClips($option, $cid); break; case "save": saveClip($option); break; case "new": editClip($option, 0); break; case "edit": editClip($option, $cid[0]); break; default: listClips($option); break; } break; } function showInformation($option) { mp3Player_HTML::showInformation($option); } function deleteClips($option, $cid) { global $database; $clips = join(",", $cid); $database->SetQuery("DELETE FROM #__mp3player WHERE mp3_id IN ($clips)"); $database->Query(); $s = ""; if(count($cid) > 1) $s = "s"; mosRedirect("index2.php?option=$option", "Playlist item$s deleted."); } function saveClip($option) { global $database; $row = new mp3Player($database); // bind it to the table if (!$row -> bind($_POST)) { echo "\n"; exit(); } // store it in the db if (!$row -> store()) { echo "\n"; exit(); } $row->updateOrder(); mosRedirect("index2.php?option=$option", "Playlist item saved."); } function editClip($option, $id) { global $database; $row = null; $database->SetQuery("SELECT * FROM #__mp3player WHERE mp3_id = '$id'"); $database->loadObject($row); mp3Player_HTML::editClip($option, $row); } function orderClip( $id, $inc, $option ) { global $database; $row = new mp3Player( $database ); $row->load( $id ); $row->move( $inc, "" ); mosRedirect( 'index2.php?option='. $option); } function listClips($option) { global $database, $mainframe, $mosConfig_absolute_path; require_once( $mosConfig_absolute_path . '/administrator/includes/pageNavigation.php' ); $limit = $mainframe->getUserStateFromRequest( "viewlistlimit", 'limit', $mosConfig_list_limit ); $limitstart = $mainframe->getUserStateFromRequest( "view{$option}{$sectionid}limitstart", 'limitstart', 0 ); $database->SetQuery("SELECT * FROM #__mp3player ORDER BY ordering"); $rows = $database->loadObjectList(); $pageNav = new mosPageNav( count($rows), $limitstart, $limit ); mp3Player_HTML::listClips($option, $rows, $pageNav); } ?>



Last edited by ronildo on Fri Jan 18, 2008 7:39 pm, edited 1 time in total.

Top
   
 
Posted: Fri Jan 18, 2008 2:41 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 11, 2007 7:09 pm
Posts: 33
Location: Cachoeira de Minas - MG - Brasil
Então cara,

é só colocar o arquivo em qualquer pasta do seu sistema joomla. Eu acho melhor colocar dentro de "media" ou então criar um diretório específico pra isso.

O diretório não importa, porque depois de que fizer isso você tem que colocar nos parâmetros do módulo o caminho completo pra esse arquivo. Ex: media/mp3playlist.xml ou /mp3playlist.xml. Pode ser até uma pasta em outro site ou servidor.

Sobre o erro que você postou, pode ser o limite de memória do php. Já aconteceu este tipo de erro comigo antes (aparecer o código php da página em vez do conteúdo). Pra mim resolveu aumentar o limite de 8M pra 24M (o componente mais pesado que uso hoje puxa 22 M, no seu caso precisa ver).

Tente estes dois procedimentos. 
 

_________________
Pedro Henrique
Bel - Sistemas de Informação


Top
   
 
Posted: Fri Jan 18, 2008 5:55 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 16, 2007 6:32 pm
Posts: 88
Muito obrigado :-)


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Quick reply

 



Who is online

Users browsing this forum: Profeta Livre, ronildo and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group