News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

ebaums world bbcode v1.1

Started by SA™, June 07, 2008, 12:25:20 AM

Previous topic - Next topic

SA™

Link to Mod



EBAUM'S WORLD BBCODE v1.1
By wdm2005


Link to Mod | Comment On This Mod

Introduction
Adds [ebaumsworld][/ebaumsworld] bbcode to show Ebaums World clips

Ebaum's World do not use the same video id in the url and for the video file like YouTube, so I've devised a lookup table in the database.
The first time each clip is shown on your forum, the information you will need to embed the video is obtained from ebaumsworld.
The height/width and id/reference are then stored in the lookup table so that any time after that the clip is used on your forum, the information is retrieved from the lookup table.
(Since its a hundred times faster to perform the query, the go and get the id/reference every time)
To keep the lookup table fairly optimized, lookup references get wiped after 3 months/90 days
(and an new version of the lookup reference will be obtained)

Installation
Simply install the package to install this modification on the Default theme.

Manual edits will be required for non-default themes to insert the BBcode button onto the Post.template.php.
And a copy of the ebaumsworld.gif placed in the bbcode images folder for each theme (Theme/{themename}/images/bbc/)

Features
o BBCode Button to insert [ebaumsworld][/ebaumsworld] tags
- works with full urls [ebaumsworld]http://www.ebaumsworld.co.uk/video/watch/12345[/ebaumsworld]
- works with video id [ebaumsworld]12345[/ebaumsworld]
- supports custom sizes (width,height) [ebaumsworld=250,250]12345[/ebaumsworld]

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 18th August 2007
o Initial release by request (fuelthescene)
1.1 - 19th August 2007
o Fixed language string insertion so adds before ?> and not at end
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-


SA™

little more info would be nice any errors in error logs?


just tested it and it does work


what are you trying to embed?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

LinK187

this is my error log:


http://*********/forumtest/index.php?action=post;msg=11;topic=9.0;sesc 
8: Undefined index: ebaumsworld
File: /home/gordonj/public_html/forumtest/Themes/default/languages/Post.english-utf8.php (eval?)
Line: 795


Also, it would have been nice to have manual instalation instructions in the event that your package manager method is botched.

On top of that the button added to the editor doesn't have a hover thing so new users would have to be told what it is or they'd probly never notice it, let alone use it.

Any help is much appreciated.

SA™

is this in your modifactions.english.php

$txt['ebaumsworld'] = 'Ebaum\'s World';
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

LinK187

Don't worry about it, i just used AEVA instead. It embeds around 50 or more vid formats without the need for tags. Just post a link, and it's imbedded.

Advertisement: