vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Innovative Small MP3 Player BB Code (https://vborg.vbsupport.ru/showthread.php?t=199533)

TheLastSuperman 12-21-2008 10:00 PM

Innovative Small MP3 Player BB Code
 
Innovative Small mp3 Player BB Code

By:
https://vborg.vbsupport.ru/external/2010/08/16.png

This BB Code will allow users to have a small mp3 player in:
  • Posts in the forums
  • Signatures i.e. Song of the day/week etc.
  • anywhere you can use BB Code Tags

I found this while browsing: http://www.phpbb3bbcodes.com as I have some phpBB boards of my own and was tinkering as usual ;). It was rather simple to add as a BB Code to VBulletin and did not take much time to make it work in vB via the {param} tags etc!

Credit for the Code goes to phpbb3codes.com and the creator of the .swf player i.e. djgalix!

Time to install: 1-2 mins

Instructions:
  • Download the .zip and extract the SWF player
  • Upload the player_mp3.swf into your forum root folder
  • Add new BB code:

AdminCP --> Custom BB Codes --> Add New BB Code

Title: mp3
Tag: mp3
Replacement:
Code:

<object type="application/x-shockwave-flash"
        data="player_mp3.swf?mp3={param}" width="200" height="20" />
  <param name="movie" value="player_mp3.swf?mp3={param}" />
  <param name="wmode" value="transparent">
</object>

Use {option} = NO

*The Player .swf file HAS to be in your forums ROOT folder, this will make it NOT visible in AdminCP as that is another folder i.e. admincp folder BUT it will display FINE in the forums via FireFox and Internet Explorer! (Thanks for the catching that bug where it did not display joh!)

Now use the tags [mp3]Full Song URL Here![/mp3]

*Experienced Users can take the code replacement and hard code into forums where desired!

Demo

Enjoy!

TheLastSuperman :rolleyes:
http://www.innovationbyinstinct.com

dej 03-07-2011 08:14 PM

When I use your replacement code:

Code:

<object type="application/x-shockwave-flash"
        data="player_mp3.swf?mp3={param}" width="200" height="20" />
  <param name="movie" value="player_mp3.swf?mp3={param}" />
  <param name="wmode" value="transparent">
</object>


I get this error when trying to save the bbcode:


Code:

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

    * <object type="application/x-shockwave-flash" data="player_mp3.swf?mp3={param}" width="200" height="20" /> <param name="movie" value="player_mp3.swf?mp3={param}" /> <param name="wmode" value="transparent"> </object>r:


TheLastSuperman 03-08-2011 01:09 AM

Quote:

Originally Posted by dej (Post 2170675)
When I use your replacement code:

Code:

<object type="application/x-shockwave-flash"
        data="player_mp3.swf?mp3={param}" width="200" height="20" />
  <param name="movie" value="player_mp3.swf?mp3={param}" />
  <param name="wmode" value="transparent">
</object>


I get this error when trying to save the bbcode:


Code:

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

    * <object type="application/x-shockwave-flash" data="player_mp3.swf?mp3={param}" width="200" height="20" /> <param name="movie" value="player_mp3.swf?mp3={param}" /> <param name="wmode" value="transparent"> </object>r:


3.5 forum? I don't have one lying around to test on however should work fine, same code for 3.6/7/8 and no issues.

Did you enter it in correctly?

dej 03-08-2011 03:41 PM

Quote:

Originally Posted by TheLastSuperman (Post 2170763)
3.5 forum? I don't have one lying around to test on however should work fine, same code for 3.6/7/8 and no issues.

Did you enter it in correctly?

Actually, I tried it on 4.1.2 :o

But, before I did, I checked the code and couldn't find a reason why it wouldn't work on 4x - but guess I was wrong =/

I really wanted to use your bb because your swf is exactly the same one our forum used *before* migrating to VB. And, I think it's the best looking one (yours).

Any way this can be adapted to 4x?

Thanks


All times are GMT. The time now is 02:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01077 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete