помогите плз!!
Дорогие люди кто может помогите плз!!Не могу установить модуль!
Ставлю на NUke 8.0 модуль topMusic_3.0PR5_beta1!Все ставиться окейно но сначало он не находил файл с русским языком (я скопировал lang-english.php переименовав в lang-russian.php)потом модуль стал работать но таким образом: Artist/_TOPMUSIC_GROUP :: _TOPMUSIC_ALBUM :: _TOPMUSIC_SONG сидел ковырялся но так и не понял что надо делать!!Заранее спасибо! P.s Может кто подскажет похожий модуль для создания муз портала?За любую помощь БИГ СЕНКС=) =========================== ВЫРЕЗКИ =========================== lang-russian.php ============ /* Administration Menu */ /************************************************** ********* ******* */ define("_TOPMUSIC","Top Music"); define("_TOPMUSICADMIN","Top Music Module Administration"); define("_TOPMUSIC_ARTIST","Artist"); define("_TOPMUSIC_BANDSAZ","Bands AZ"); define("_TOPMUSIC_BANDSAZDESC","Complete Bands AZ List"); define("_TOPMUSIC_SEARCHDESC","Search Artists, Albums or Songs"); define("_TOPMUSIC_ARTISTNEW","New Band"); define("_TOPMUSIC_ARTISTNEWDESC","Add a new Band"); define("_TOPMUSIC_ALBUMNEW","New Album"); define("_TOPMUSIC_ALBUMNEWDESC","Add a new Album"); define("_TOPMUSIC_SONGNEW","New Song"); define("_TOPMUSIC_SONGNEWDESC","Add a new Song"); define("_TOPMUSIC_GENRELIST","List of genres"); define("_TOPMUSIC_GENRELISTDESC","List all Genres for edition"); define("_TOPMUSIC_GENRENEW","New Genre"); define("_TOPMUSIC_GENRENEWDESC","Add a new Genre"); define("_TOPMUSIC_ALBUMLIST","List of Albums"); define("_TOPMUSIC_ALBUMLISTDESC","List of Albums"); define("_TOPMUSIC_SONGLIST","List of Songs"); define("_TOPMUSIC_SONGLISTDESC","List of Songs of the current album"); define("_TOPMUSIC_CONFIGURE","Settings"); define("_TOPMUSIC_CONFIGUREDESC","Configure your Top Music module"); define("_TOPMUSIC_ORPHANALBUMS","Orphan albums"); define("_TOPMUSIC_ORPHANALBUMSDESC","Albums not linked to any artist/band"); define("_TOPMUSIC_ORPHANSONGS","Orphan songs"); define("_TOPMUSIC_ORPHANSONGSDESC","Songs not linked to any album"); define("_TOPMUSIC_CUSTOMFIELDS_ARTIST","Artist custom fields"); define("_TOPMUSIC_CUSTOMFIELDS_ARTIST_DESC","Create your own artist custom fields"); define("_TOPMUSIC_CUSTOMFIELDS_ALBUM","Album custom fields"); define("_TOPMUSIC_CUSTOMFIELDS_ALBUM_DESC","Create your own album custom fields"); define("_TOPMUSIC_CUSTOMFIELDS_SONG","Song custom fields"); define("_TOPMUSIC_CUSTOMFIELDS_SONG_DESC","Create your own song custom fields"); define("_TOPMUSIC_ADD_CUSTOMFIELD","Add a new custom field"); define("_TOPMUSIC_SITEMAP","Sitemap Generator"); define("_TOPMUSIC_SITEMAP_DESC","Generate Google Sitemap xml files."); А вот Index.php(часть): if (!eregi("modules.php", $_SERVER['PHP_SELF']) && !eregi("music.php", $_SERVER['PHP_SELF']) && !eregi("index.php", $_SERVER['PHP_SELF'])) { die ("You can't access this file directly..."); } $module_name = basename(dirname(__FILE__)); if(!eregi("music.php",$_SERVER['PHP_SELF'])){ require_once("mainfile.php"); include_once("modules/$module_name/lib/config.php"); require_once("modules/$module_name/lib/net/php/smarty/Smarty.class.php"); } get_lang($module_name); if($config->getTheme()=="") $tm_theme="default"; else $tm_theme=$config->getTheme(); $smarty = new Smarty; $smarty->template_dir ="modules/".$module_name."/themes/".$tm_theme."/"; $smarty->compile_dir = "modules/".$module_name."/themes_c/".$tm_theme."/"; $smarty->cache_dir = $smarty->compile_dir; $smarty->config_dir = "modules/".$module_name."/language/"; $smarty->caching = false; $smarty->assign("module_name",$module_name); $smarty->assign("id_artist",$_GET['idartist']); $smarty->assign("id_album",$_GET['idalbum']); $smarty->assign("id_song",$_GET['idsong']); $smarty->assign("tm_BaseURL",$config->getBaseURL()); $smarty->assign("tm_rateartists",$config->getRateArtists()); $smarty->assign("tm_ratealbums",$config->getRateAlbums()); $smarty->assign("tm_ratesongs",$config->getRateSongs()); $smarty->assign("tm_easyURL",$config->getEasyURL()); $smarty->assign("tm_easyURLtype",$config->getEasyURLType()); $smarty->assign("tm_theme",$config->getTheme()); $smarty->assign("op",$_GET['op']); $smarty->assign("configfile","templates-".$currentlang.".conf"); include("header.php"); $index=$config->getInd(); if($config->getTopMenu()) include("modules/$module_name/includes/menu.php"); include("modules/$module_name/includes/path.php"); $op=$_GET['op']; if($op=="") $op=$_POST['op']; if($op=="") $op=$config->getMain_page(); switch($op) { case "voteArtist": require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistO.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php"); $artistDAO=new ArtistDAO($db,$prefix); $artistO=new ArtistO(); if(!$artistDAO->voteArtist($idartist,$_POST['rate'],$_SERVER['REMOTE_ADDR'])) $message=_TOPMUSIC_ARTIST_ALREADYVOTED; $artistO=$artistDAO->getArtist($idartist,$currentlang); $artistVoted=1; $smarty->assign("message",$message); case "artist": require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistO.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/model/ArtistDAO.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/view/GenericView.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/view/ArtistView.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/view/AlbumView.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/model/AlbumDAO.php"); require_once("modules/$module_name/lib/com/sergids/topmusic/model/SongDAO.php"); require_once("modules/$module_name/lib/com/sergids/common/File.php"); if(!$artistVoted || $artistVoted==""){ $artistDAO=new ArtistDAO($db,$prefix); $artistDAO->addView($idartist); $artistO=$artistDAO->getArtist($idartist,$currentlang); } $songDAO=new SongDAO($db,$prefix); $albumDAO=new AlbumDAO($db,$prefix); $discography=$albumDAO->getAlbumList($_GET['idartist'],$currentlang,$prefix."_topmusic_album.yeardate",6); //print_r($discography); AlbumView::parseThumbs($module_name,&$discography,75,0); //print_r($discography); $related_artists=$artistDAO->getRelated($_GET['idartist']); ArtistView::parseThumbs($module_name,&$related_artists,75,0); $top_songs=$songDAO->getMostVotedSongs(10,$_GET['idartist']); $custom_fields=$artistDAO->getCustomFields($_GET['idartist']); $rate_code=GenericView::getRateCode($artistO->getAvgvotes(),$module_name,$tm_theme); $discography_url=ArtistView::getDiscographyUrl($mo dule_name,$config,$artistO,$discography_url); $forum_url=ArtistView::getForumUrl($artistO->getForum()); $photo_url=ArtistView::getPhotoUrl($artistO,$modul e_name); $photothumb_url=ArtistView::getPhotoThumbUrl($arti stO,$module_name,200,0); $bio_url=ArtistView::getBioUrl($module_name,$confi g,$artistO); $dead_year=$artistO->getDeadyear(); $dead_year=ArtistView::getDeadYear($dead_year); $genericView=new GenericView(); $smarty->assign("dead_year",$dead_year); $smarty->assign("artistVoted",$artistVoted); $smarty->assign("rate_code",$rate_code); $smarty->assign("discography_url",$discography_url); $smarty->assign("photo_url",$photo_url); $smarty->assign("photothumb_url",$photothumb_url); $smarty->assign("forum_url",$forum_url); $smarty->assign("bio_url",$bio_url); $smarty->assign("artist",$artistO); $smarty->assign("tm_rateartists",$config->getRateArtists()); $smarty->assign("discography",$discography); $smarty->assign("related_artists",$related_artists); $smarty->assign("top_songs",$top_songs); $smarty->assign("custom_fields",$custom_fields); $smarty->assign("genericView",$genericView); $tm_content=$smarty->fetch("artist.tpl"); break; ================= c menu.php ================= //song Сылка отображаеться так _TOPMUSIC_SEARCH но НЕ работает if($tm_menu_idsong!="" && ($tm_menu_op!="song" && $tm_menu_op!="voteSong")){ if(!$config->getEasyURL()) $url_song= "<a href=\"modules.php? name=".$module_name."&op=song&idartist=".$tm_menu_idartist." &idalbum=".$tm_menu_idalbum."&idsong=".$tm_menu_idsong."\">< b>"; elseif(!$config->getEasyURLType()){ $url_song= "<a href=\"".$config->getBaseURL ()."/music.php/artist/".$artistname."/album/".$albumname."/s ong/".$songname."\">"; }elseif($config->getEasyURLType()==2){ $url_song= "<a href=\"song".$tm_menu_idartist."_".$tm_menu_idalbum."_".$tm_ menu_idsong.".html\">"; }else{ $url_song= "<a href=\"".$config->getBaseURL ()."/music.php/artist/".$tm_menu_idartist."/album/".$tm_menu _idalbum."/song/".$tm_menu_idsong."\">"; } }elseif($tm_menu_op=="song" || $tm_menu_op=="voteSong") $url_song= ""; $url_song.=_TOPMUSIC_SONG; if($tm_menu_idsong!="" && ($tm_menu_op!="song" && $tm_menu_op!="voteSong")) $url_song.="</a> "; elseif($tm_menu_op=="song" || $tm_menu_op=="voteSong") $url_song.=""; //ranking Отобажаеться отлично!!!! if($tm_menu_op!="ranking" && !($tm_menu_op=="" && $config- >getMain_page()=="ranking")){ if(!$config->getEasyURL()) $ranking_url= "<a href=\"modules.php? name=$module_name&op=ranking\">"; else{ if($config->getEasyURLType()==2) $ranking_url="<a href=\"tops.html\">"; else $ranking_url="<a href=\"".$config- >getBaseURL()."/music.php/ranking\">"; } } $ranking_url.=""._TOPMUSIC_RANKING.""; if($tm_menu_op!="ranking" && !($tm_menu_op=="" && $config- >getMain_page()=="ranking")) $ranking_url.="</a>"; //search Сылка отображаеться так _TOPMUSIC_SEARCH но работает if($tm_menu_op!="search" && !($tm_menu_op=="" && $config- >getMain_page()=="search")){ if(!$config->getEasyURL()) $search_url="<a href=\"modules.php? name=".$module_name."&op=search\">"; else{ if($config->getEasyURLType()==2) $search_url="<a href=\"search.html\">"; else $search_url="<a href=\"music.php/search\">"; } }else $search_url=""; $search_url.=_TOPMUSIC_SEARCH; if($tm_menu_op!="search" && !($tm_menu_op=="" && $config- >getMain_page()=="search")) $search_url.="</a>"; else $search_url.=""; |
Часовой пояс GMT +4, время: 23:44. |
Copyright © 2005 by Soniks