[Not a MOD]: one bbcode for audio, video, maps, etc.

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
VEG
Registered User
Posts: 84
Joined: Sat Jun 25, 2005 9:31 am
Location: Belarus, Minsk
Contact:

[Not a MOD]: one bbcode for audio, video, maps, etc.

Post by VEG » Thu May 24, 2012 1:45 pm

Modification Name: phpBB [media] v1.13
Modification Description: Universal media bbcode without any code changes
Installation Level: Easy
Installation Time: ~1minute

BBCode: phpBB [audio] | phpBB [video] | phpBB [media]

We are glad to present you a new universal BBCode "phpBB [media]". It's a 2-in-1 bbcode: [video] and [audio]. Moreover it supports embedding of maps, panoramas and other multimedia. It is compatible with both phpBB and phpBBex. To install you do not need to edit any files, it can be added through the admin panel.

Usage example

To ebmed a video the user copies the URL of the page of the video and inserts it between the [media][/media]:

Code: Select all

[media]http://vimeo.com/40558553[/media]
or (with size specified):

Code: Select all

[media=640,360]http://vimeo.com/40558553[/media]
It is displayed as follows (it's an image, live phpBB [media] demo on my forum):
Image

To ebmed an audio the user copies the URL of the page of the audio and inserts it between the [media][/media]:

Code: Select all

[media]http://z-mc.ru/627hqsbwjdc/[/media]
In the message is displayed as follows (it's an image, live phpBB [media] demo on my forum):
Image

Supported services

Currently the following media services are supported:
  • all video services from phpBB [video]
  • all audio services from phpBB [audio]
  • maps.google.com (maps, panoramas)
  • dermandar.com (panoramas)
URLs do not need to be cleaned from the garbage arguments as our [media] will work it out.

It is convenient that our bbcode is updated and new services are supported automatically. If our BBCode doesn't support the needed service, we will be happy to add it. In this topic, please provide the URL of the page of the media with the media service you're interested in and the embed code. It will help us to add support of the service. If the new media service is demanded we will soon add the support to our media bbcode.

Automatic installation of [media] and [media=]

1. Download install_bbmedia.zip (2kb)
2. Extract it to your forum directory
3. Run http://youforum/install_bbmedia.php
4. Remove install_bbmedia.php from your forum directory

Manual installation of [media] (with fixed size)

1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [media] then delete it).
2. In the field "BBCode usage" enter:

Code: Select all

[media]{URL}[/media]
3. In the field "HTML replacement" enter (you can only change the width of the layer!):

Code: Select all

<div class='bbmedia' data-url='{URL}' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'http://phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>
4. In the field "Help line" enter:

Code: Select all

Insert audio, video, map, panorama or other multimedia: [media]http://youtube.com/url[/media]
5. Set the checkbox "Display on posting" and save the form. Done!

Manual installation of [media=width,height] (in addition to the previous)

1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [media=] then delete it).
2. In the field "BBCode usage" enter:

Code: Select all

[media={INTTEXT}]{URL}[/media]
3. In the field "HTML replacement" enter (no change!):

Code: Select all

<div class='bbmedia' data-url='{URL}' data-args='{INTTEXT}' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'http://phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>
4. In the field "Help line" enter:

Code: Select all

Insert audio, video, map, panorama or other multimedia: [media=height,width]http://youtube.com/url[/media]
5. Save the form. Done!

Links

English language demo of phpBB [media]
Russian language support of phpBB [media]
Last edited by VEG on Thu May 24, 2012 9:02 pm, edited 1 time in total.
Best regards, Evgeny

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [RC] phpBB [media]: one bbcode for audio, video, maps, e

Post by Mess » Thu May 24, 2012 6:35 pm

Almost sound to good to be true? :)

User avatar
VEG
Registered User
Posts: 84
Joined: Sat Jun 25, 2005 9:31 am
Location: Belarus, Minsk
Contact:

Re: [RC] phpBB [media]: one bbcode for audio, video, maps, e

Post by VEG » Thu May 24, 2012 8:47 pm

Mess wrote:Almost sound to good to be true? :)
It's true :) You can try it.
Best regards, Evgeny

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] phpBB [media]: one bbcode for audio, video, maps, e

Post by 4_seven » Thu May 24, 2012 9:51 pm

I found something, so may bad news for this great stuff.
Seems that all kinds of BBCode Mods never reach the ModDB :(
[b][color=#800080]DavidIQ[/color][/b] wrote:Adding a BBCode can't be considered a MOD.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [RC] phpBB [media]: one bbcode for audio, video, maps, e

Post by Erik Frèrejean » Fri May 25, 2012 10:55 am

4_seven wrote:I found something, so may bad news for this great stuff.
Seems that all kinds of BBCode Mods never reach the ModDB :(
[b][color=#800080]DavidIQ[/color][/b] wrote:Adding a BBCode can't be considered a MOD.
Correct, this would be the appropriate location to share BBCodes :).
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [RC] phpBB [media]: one bbcode for audio, video, maps, e

Post by tumba25 » Sat May 26, 2012 12:03 am

Indeed this is not a MOD. There is a topic with BBCodes in the support forums, try there, locking.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Locked

Return to “[3.0.x] Abandoned MODs”