custom BBCode

Started by niravdave, November 21, 2007, 06:34:11 PM

Previous topic - Next topic

niravdave

Hi,

I have a video website and would like to know how can i make a custom BBCode for playing the videos from my website.

Video on my website do not have any numbers but instead are links like this.

http://www.mysite.in/view/8/stomp-nike-basketball-commercial/

is it possible to make an auto conversion thing which converts the link into video without entering the bbcode?


help would be appreciated.
Thanks
Dave

SleePy

Have you searched the Mod Site for current bbc code? This could save you time from coding your own as well as help you code your own bbc tags.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

karlbenson

1) Please be careful when making links to sites.
The one in your signature is MISSPELLED and links to a site which tries to hijack your browser + lots of popups.

2) Rather than bbcode, I think your trying to make something like my Auto Embed Video Clip mod work for your site.
(where no bbcode is needed).

Having looked at your site it will NOT be possible to write a script because the url/filename of the file does NOT appear in the url to the page. (This usually happens for sites where their creators have tried to use SEO style urls, but these are useless to external sites because they don't tie directly to content)

eg
Your url http://www.megavideos.in/view/210/beautiful-song-from-a-lovely-movie-/

But the actual link to the .flv is
http://www.megavideos.in/flvideo/1197118804776985245.flv

In order to make it work, 1197118804776985245 would need to be in the url of the page.
Like http://www.megavideos.in/view/210/1197118804776985245

Advertisement: