Advertisement:

Author Topic: IMDB BBCode  (Read 9869 times)

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
IMDB BBCode
« on: February 27, 2007, 06:23:06 PM »
Link to Mod

Install/Mod Info
Tested and works on 1.1.2, 1.1.1, 1.1 It may or may not work on other versions.

Enables you to create a link to a IMDB search page for particular keyword(s).
      
eg [imdb=superman]TITLE[/imdb]
will link to a list of all the superman films in the IMDB database.

Installs on Default Skin Only.

(It will also appear on any other custom theme which does not have a custom post.template.php. For custom themes which do you will need to manually install this modification onto the default skin.

Version Info
V1.0 - Initial Release

Manual Edits
To install this on custom themes;

For the theme you wish to install this modification on, please open its Post.template.php

Find:
Code: [Select]
$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),

AFTER it copy and paste
Code: [Select]
$txt['imdb_bbcode_tag'] => array('code' => $txt['imdb_bbcode_title'], 'before' => '[' . $txt['imdb_bbcode_title'] . '=]', 'after' => '[/' . $txt['imdb_bbcode_title'] . ']', 'description' => $txt['imdb_bbcode_desc']),

Offline Niteblade

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
    • Prosperent Ads
Re: IMDB BBCode
« Reply #1 on: February 27, 2007, 07:07:55 PM »
Interesting mod.
affiliate blog

Offline Shonick

  • Jr. Member
  • **
  • Posts: 148
    • Blogger Resources
Re: IMDB BBCode
« Reply #2 on: March 05, 2007, 04:54:05 PM »
could you tell me more about  what this mod for?or could you give me a demo of this mod.Thanks

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
Re: IMDB BBCode
« Reply #3 on: March 05, 2007, 05:03:48 PM »
type eg [imdb=superman]TITLE[/imdb]

and you get

Superman

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,603
  • It's quite perplexing isn't it
Re: IMDB BBCode
« Reply #4 on: April 13, 2007, 12:20:45 PM »
hi

I tried to install but got a fail:

Installations actions for "IMDB BBCode":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Subs.php    Test successful
2.    Execute Modification    ./Themes/default/Post.template.php    Test successful
3.    Execute Modification    ./Themes/default/Display.template.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Extract File    Themes/default/images/bbc/imdb.gif

I just installed your wiki bbc code with no problems (very cool). 

I have lots of mods installed.

Any ideas why the display.template might fail?

thanks

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
Re: IMDB BBCode
« Reply #5 on: April 14, 2007, 11:29:47 AM »
Do you have the quick reply mod installed?

Anyways, I'm working on a version of this to include non-english languages.

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,603
  • It's quite perplexing isn't it
Re: IMDB BBCode
« Reply #6 on: April 14, 2007, 11:56:47 AM »
the enhances quick reply?  yes and the color bar

but everything is English :)

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,630
  • Gender: Male
    • Lifeproof
Re: IMDB BBCode
« Reply #7 on: April 15, 2007, 05:45:24 AM »
the bit that failed is the installing on the enhanced quick reply.

I dont know why.

All i can suggest is, don't install the mod, or do and single edit on the display.template manually

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,603
  • It's quite perplexing isn't it
Re: IMDB BBCode
« Reply #8 on: April 15, 2007, 12:26:36 PM »
ok, thanks, I will look at what needs to be edited