Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Mybb Audio Player Plugin
#1
MyBB Audio Player Plugin[Build #1 (dev)] (v1.0)
-> convert audio links inside a specified tag into audio player.

Installation:
1. Copy and paste inc and jscripts folder to your forum's root directory from Upload folder.
2. Install and Activate the plugin from Admin CP.
3. Goto Configuration->MyBB Audio Player Plugin->choose the bbcode tag you want to use.



[Image: preview_138616_1609396704_41492794c12091...f0736b.png]


[Image: preview_138616_1609396712_a4df02dc54c19d...f99348.png]




Download:
Extend MyBB - MyBB Audio Player
Reply
#2
Hi, thank you for your contribution Smile

As a suggestion, you probably would want to use a more complex regular expression to allow URLs that match a pattern.
$re = sprintf("/\[(%s)\](.+?)\[\/\\1\]/", preg_quote($tag));

You could even add a new setting to allow only URLs from specific domains to limit the sources for security reasons.
Reply
#3
Will surely consider these things in next update as it is just a developmental release
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)