Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Modifying ForcedBBCode to post Youtube videos

grantgrant
edited December 2008 in Vanilla 1.0 Help
My first post so hi to everyone and thanks for all the helpful contributions I've been digging through since adding Lussumo to my site a few weeks ago. You can see my Lussumo forum at: http://www.dvdcollections.co.uk/forums/discussions/ I've been using the ForcedBBCode extension as I find it simple and easy to use but as my site's about DVDs and films I'd really like to be able to embed Youtube videos with film clips and trailers etc. I tried installing the BBCodeParser and BBInsertBar extensions (while switching off ForcedBBCode) and I was able to embed a youtube video using the [youtube][/youtube] tags. But all of my colored links and some other formatting in all my previous posts got messed up as it seemed to conflict with what I'd previously posted using ForcedBBCode. I'm no PHP coder so I'd more than appreciate any help if anyone thinks I could hack the default.php file within the ForcedBBCode folder to incoroporate the Youtube functionality from BBCodeParser or have any other ideas? Many thanks, Grant

Comments

  • Would you mind taking a coupla screenshots to show the screwed up formatting using BBCodeParser? I may be able to do something about it. I'm already planning on adding "Force to BBCode" in BBCodeParser, and chuyskywalker doesn't seem to be around any more :(
  • Hi Stash, nice work on the BBCodeParser :) Here's a screenshot of a problem I get when switching to BBCodeParser and BBInsertBar http://www.dvdcollections.co.uk/up/screenshot.jpg Playing around a bit it seems that it doesn't like very long links (I shortened the Amazon link one and it displayed fine) and it doesn't like certain colors (some colors work fine, others it has a problem with. I'll leave BBCodeParser and BBInsertBar running on my forum for a short while if you want to have a look to see if you can find anything else then I'll put it back to ForcedBBCode.
  • StashStash
    edited March 2007
    Hmm, I'm trying on my forums and getting a similar error with the long URL. Not with the colours though, could you post the code for the colour codes that are causing issues? Perhaps a code dump of that Disney animals comment? That would be useful for testing purposes :)
  • Sure, here's the code from the disney comment... We get a lot of searches for Disney box sets but try finding any in stock with the classic animated films and it's almost impossible. With that in mind this animal box set including the familiar favourites of Dumbo, Bambi and The Arostocats is currently at a good price at ChoicesUK. Next best price I could find is £51.98 at [url=http://www.amazon.co.uk/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.co.uk%2FDisney-Classics-Animals%2Fdp%2FB000DN5UV8%3Fie%3DUTF8%26s%3Ddvd%26qid%3D1173748176%26sr%3D1-4&tag=moma-21&linkCode=ur2&camp=1634&creative=6738]Amazon[/url]. [b][color=#CC0000]Best Price:[/color] [url=http://www.awin1.com/awclick.php?awinmid=1266&awinaffid=66418&p=http://www.choicesuk.com/Product.aspx/!677993]Disney Classics - Animals[/url] - £42.52[/b][color=#CC0000]* *Using 10% off discount code [color=#000000]BEST10[/color] at ChoicesUK.[/color] [img]http://www.dvdcollections.co.uk/up/disney-animal-classics.jpg[/img]
  • I think I have a fix for the nested colours, but the URL problem is completely beyond me. More knowledgeable people, please let me know if I'm talking out of my arse, but... It looks like that URL is URL Encoded and that the parser is choking on it. I have asked someone off the boards if they can shed any light on this problem, so I'll report back as soon as I have any news on that.

    Thanks for finding these two bugs grant, much appreciated :)
  • Cheers Stash, good to see you got the nested colours sorted, hope there's good news to come with the URL problem.
  • hey i'm trying to do the same thing, how can i add a embed youtube link to the bbinsertbar that comes in this plugin? or maybe even make a youtube/picture automatically embed just like the "make it simple" plugin?
This discussion has been closed.