форум vBSupport.ru > vBulletin > vBulletin 4.0.x-4.1.х > Хаки, моды и скрипты 4.0.x-4.1.х
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
SeM13
Знаток
 
SeM13's Avatar
Default BB Code MP3 Player
5

Just adds an easy to use post bb mp3 player to your vb4.

Installation
Upload all the files and folders from the zip package to your forum root folder.

Go to your admin cp and add a bb custom code.

Title: Mp3 Player
BB Code Tag Name: MP3
Replacement:
PHP Code:
<object type="application/x-shockwave-flash" data="/misc/audio-player/player.swf" id="audioplayer" height="24" width="290">
<
param name="movie" value="/misc/audio-player/player.swf"
<
param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}"
<
param name="quality" value="high"
<
param name="menu" value="false"
<
param name="wmode" value="transparent">
</
object
Example:
PHP Code:
http://www.url.com/track.mp3 
Description: Feel free to add anything what will promote your MP3 Player to your user.

Use {option}: No
Button Image:

PHP Code:
images/editor/mp3_bb.png 

Remove Tag If Empty:
Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: No
Disable Word Wrapping Within This BB Code: No

Hit "Save" and you are ready to go!

Additional Notes:
The wordpress player is developed by Martin Laine (http://wpaudioplayer.com).
You can add several options to the player. For a complete list please visit: http://wpaudioplayer.com/standalone.

For adding an option you have to edit the: <param name="FlashVars" value="playerID=audioplayer&amp;soundFile={param}"> line.
Example: <param name="FlashVars" value="option1=setting1&amp;option2=setting2&amp;playerID=audioplayer&amp;soundFile={param}">

DEMO:

POPUP DEMO:

Troubleshooting:If you got any trouble with the player is not showing up, just replace the relative path by an absolute path to your player.swf

PHP Code:
<object type="application/x-shockwave-flash" data="http://path/to/your/player.swf" id="audioplayer" height="24" width="290">
<
param name="movie" value="http://path/to/your/player.swf"
No more text displayed after the code tag: just add a </object> to the end of the BB replacement. At release this line was missin here.
>>Скачать<<
Залил на депозит по причине что сюда архив тупо не влез. Плохо когда мало место под вложения.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Volkoff
Простоузер
Default
0

Почему любой контент отображается как Track1, есть решение или придется флэшку пересобирать?
 
 
BeatBASS
Простоузер
Default
0

bb Пойдет на линейки vBulletin® v3.6.7?
 
 
Azeroth
Специалист
 
Azeroth's Avatar
Default
1

SeM13, можно было бы и на русский перевести
BeatBASS, да, кстати вот выкладывал кому то. Я так понимаю точно такой же.
 
 
BeatBASS
Простоузер
Default
0

как сделать чтоб заместо Track1 писал какой трек играет.
 
 
omentos
Продвинутый
Default
6

Quote:
Originally Posted by BeatBASS View Post
как сделать чтоб заместо Track1 писал какой трек играет.
Тоже задался этим вопросом. Поиск ни к чему не привел. Ничего не оставалось как сделать самому. Правда придется немного руками скриптики повставлять.
Может и еще кому окажется полезным.

Для установки
1. Загрузите файлы из папки "upload" на сайт
Внутри картинка кнопки, js скрипт, swf файл плеера последней версии
2. Отредактируйте шаблон "headinclude":
К скриптам в шаблоне добавьте
PHP Code:
<script type="text/javascript" src="misc/audio-player/audio-player.js"></script>
<script type="text/javascript">  
    AudioPlayer.setup("misc/audio-player/player.swf", {  
        width: 290, transparentpagebg: "yes", buffer: "5", skip: "FE0000"  
    });  
</script> 
3. Создайте ББкод
В отличии от настроек в первом посте этой темы используйте скрипт замены
Quote:
<span class="popupmenu"><a href="javascript://" class="popupctrl"><img src="images/editor/mp3_bb.png" alt="Скачать"/></a>
<span class="popupbody popuphover">
<script language="JavaScript">
var titles="{option}"
var songs="{param}"
var reg=/[\/\wА-Я\.:\-=\?\s\(\)\%]+/gi
var arr, arrn=[], arru=[]
while ((arr = reg.exec(titles)) != null)
{
arrn.push(arr[0])
}
while ((arr = reg.exec(songs)) != null)
{
arru.push(arr[0])
}
for(i=1;i<=arrn.length;i++)
{
document.write("<li><a href='" + arru[i-1] + "'; target=_blank>"+ arrn[i-1] +"</a></li>")
}
</script></span></span>
<p id="{option}">Ошибка отображения плеера, обратитесь к администратору</p>
<script type="text/javascript">
AudioPlayer.embed("{option}", {
soundFile: "{param}",
titles: "{option}"
});
</script>
Включите использование опций и отключите автоматическое преобразование ссылок внутри кода

Как пользоваться:
При добавлении в текст сообщения в опциях должны быть указаны через запятую названия треков (не используйте в названиях запятые)
В параметрах указываются в том же порядке прямые ссылки на mp3 через запятую

Таким образом имеем плеер, который может воспроизводить несколько указанных треков, перед плеером выпадающий список для скачивания.

Скрины:
**тут был скрин, он умер**
Attached Files
File Type: zip mp3player.zip (19.5 KB, 52 views)

Last edited by omentos : 06-08-2010 at 08:33 AM.
 
 
omentos
Продвинутый
Default
0

Нашел проблему в скрипте и в регулярке. Все исправил и перезалил
 
 
demirov
Продвинутый
 
demirov's Avatar
Default
2

**тут был скрин, он умер** вот такую картинку для bb кода нарисовал
 
 
SeM13
Знаток
 
SeM13's Avatar
Default
0

Проблема когда идет быстрое редактирование поста и там есть этот код то происходит пустая страница и надписи типо
  • треке
  • трек
  • трек
  • и т.д. если они есть.
Что с этим делать?
 
 
SeM13
Знаток
 
SeM13's Avatar
Default
0

Quote:
Originally Posted by SeM13 View Post
Проблема когда идет быстрое редактирование поста и там есть этот код то происходит пустая страница и надписи типо
  • треке
  • трек
  • трек
  • и т.д. если они есть.
Что с этим делать?
ап
 

Tags
bbcode, mp3


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 03:20 PM.


Powered by vBulletin® Version 3.0.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.