currt Posted April 12, 2016 Report Share Posted April 12, 2016 Нашёл 1. Загрузить файл add.tpl в папку шаблона аудиозаписей 2. Добавить в audio.php Над //################### Загрузка с компьютера ###################// Ставим case "add": $user_id = $user_info['user_id']; $tpl->load_template('audio/add.tpl'); $tpl->set('{user-id}', $user_id); $tpl->set('{PHPSESSID}', $_COOKIE['PHPSESSID']); $tpl->compile('content'); AjaxTpl(); die(); break; 3. Загрузить в images png файл 4. Добавить в css .uploadbuttbgd{background:url("../images/uploadbuttond.png") no-repeat;width:145px;height:24px} 5. Добавить в profile.js Над addBoxComp: function(){ Ставим addBoxCom: function(){ Box.Close(); viiBox.start(); $.post('/index.php?go=audio&act=add', function(d){ viiBox.win('add_audio', d); }) }, Заменить код addBox: function(f){ на мой addBox: function(f){ first = f; $('.js_titleRemove').remove(); Box.Close(); Box.Show('addaudio', 510, lang_audio_add, '<div class="videos_pad"><div class="buttonsprofile albumsbuttonsprofile buttonsprofileSecond" style="height:22px;margin-bottom:20px;margin-top:-5px"><div class="buttonsprofileSec cursor_pointer"><a><div><b>По ссылке</b></div></a></div><a class="cursor_pointer" onClick="audio.addBoxCom()"><div><b>С компьютера</b></div></a></div><div class="videos_text">Вставьте ссылку на mp3 файл</div><input type="text" class="videos_input" id="audio_lnk" style="margin-top:5px" /><span id="vi_info">Например: <b>http://music.com/uploads/files/audio/2012/faxo_-_kalp.mp3</b></span></div>', lang_box_canсel, lang_album_create, 'audio.send()', 0, 0, 1, 1); $('#audio_lnk').focus(); }, на адном форуме myzika.zip Quote Link to comment Share on other sites More sharing options...
Why Not Posted April 12, 2016 Report Share Posted April 12, 2016 (edited) Нашёл на адном форуме На каком? Edited April 12, 2016 by Why Not Quote Link to comment Share on other sites More sharing options...
Advokat Posted April 12, 2016 Report Share Posted April 12, 2016 Укажи источник. Quote Link to comment Share on other sites More sharing options...
mdf007 Posted April 12, 2016 Report Share Posted April 12, 2016 у меня не работает....выбираю файлы а они не загружаютсяУ вас в инструкции есть такой код:Заменить код addBox: function(f){ на мойaddBox: function(f){first = f;$('.js_titleRemove').remove();Box.Close();Box.Show('addaudio', 510, lang_audio_add, '<div class="videos_pad"><div class="buttonsprofile albumsbuttonsprofile buttonsprofileSecond" style="height:22px;margin-bottom:20px;margin-top:-5px"><div class="buttonsprofileSec cursor_pointer"><a><div><b>По ссылке</b></div></a></div><a class="cursor_pointer" onclick="audio.addBoxCom()"><div><b>С компьютера</b></div></a></div><div class="videos_text">Вставьте ссылку на mp3 файл</div><input type="text" class="videos_input" id="audio_lnk" style="margin-top:5px" /><span id="vi_info">Например: <b>http://music.com/upl...b></span></div>' lang_box_canсel, lang_album_create, 'audio.send()', 0, 0, 1, 1);$('#audio_lnk').focus(); },--------------так вот в моём файле profile.js такого нет в разделе //AUDIO addBox: function(f){ ( с буквой F), а вот такой есть addBox: function(){...и вот такой есть , но не думаю что этот кусок кода относится к аудио:var rating = {addbox: function(f){$('.js_titleRemove').remove();viiBox.start();$.post('/index.php?go=rating', {for_user_id: f}, function(d){viiBox.win('rate', d);}); },Пыталась по разному всё поставить но ничего не получилосьЧто делать подскажите Quote Link to comment Share on other sites More sharing options...
currt Posted April 13, 2016 Author Report Share Posted April 13, 2016 //AUDIO var first = ''; var audio = { вставь под addBox: function(f){ first = f; $('.js_titleRemove').remove(); Box.Close(); Box.Show('addaudio', 510, lang_audio_add, '<div class="videos_pad"><div class="buttonsprofile albumsbuttonsprofile buttonsprofileSecond" style="height:22px;margin-bottom:20px;margin-top:-5px"><div class="buttonsprofileSec cursor_pointer"><a><div><b>По ссылке</b></div></a></div><a class="cursor_pointer" onClick="audio.addBoxCom()"><div><b>С компьютера</b></div></a></div><div class="videos_text">Вставьте ссылку на mp3 файл</div><input type="text" class="videos_input" id="audio_lnk" style="margin-top:5px" /><span id="vi_info">Например: <b>http://music.com/uploads/files/audio/2012/faxo_-_kalp.mp3</b></span></div>' lang_box_canсel, lang_album_create, 'audio.send()', 0, 0, 1, 1); $('#audio_lnk').focus(); }, Quote Link to comment Share on other sites More sharing options...
currt Posted April 13, 2016 Author Report Share Posted April 13, 2016 (edited) кто если хочет снять лимит то в файле add.tpl находим file_upload_limit: "5", и меняем цифру 5 на к примеру 20 Edited April 14, 2016 by currt Quote Link to comment Share on other sites More sharing options...
roland1555 Posted July 16, 2016 Report Share Posted July 16, 2016 хороший модуль! только одинаковые аудиофайлы не запрещает, как можно это пофиксить? есть по 2 -3 одинаковых трека попадаеся Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.