Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Internet Movie Database (IMDb) BB Code Details »»
Internet Movie Database (IMDb) BB Code
Version: 1.01, by yoyoyoyo yoyoyoyo is offline
Developer Last Online: Sep 2008 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 11-24-2006 Last Update: 11-25-2006 Installs: 52
 
No support by the author.

Internet Movie Database BB Code

This BB Code allows your users to simply type the name of a movie or an actor, etc., and then wrap BB code around the text to automagically link to the IMDb.

NOTE: This should work for most versions of VBulletin since it is simply a new BB Code.

TITLE: IMDb
TAG: imdb
Replacement:
Code:
<a href="http://www.imdb.com/find?s=all&q={param}">{param}</a>
example:
PHP Code:
[imdb]Snakes on a Plane[/imdb

Description: Links to search on Internet Movie Database
Use {option}: No
Button Image (Optional): see attachments

To open in a new window change the replacement code to this:
Code:
<a href="http://www.imdb.com/find?s=all&q={param}"target="_blank">{param}</a>
note: if you are using vBAnonymizer then use the following code: Thanks to Rian)

TITLE: IMDb
TAG: imdb
Replacement:
Code:
<a href="http://www.imdb.com/find?{param}">{param}</a>
example:
Code:
[imdb]Snakes on a Plane[/imdb]
Description: Links to search on Internet Movie Database
Use {option}: No
Button Image (Optional): see attachments

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-25-2006, 08:43 PM
bki bki is offline
 
Join Date: Mar 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to change the deafult BB code images size 21x20 so it will fit the imdb picture?
Reply With Quote
  #13  
Old 11-25-2006, 10:16 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bki View Post
Is it possible to change the deafult BB code images size 21x20 so it will fit the imdb picture?
the imdb icon? here is a smaller version, though I don't think it is as readable
Reply With Quote
  #14  
Old 11-26-2006, 02:02 AM
iran.gs iran.gs is offline
 
Join Date: Jul 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ur code can be done like this also and than all u need is the number.
<a href="http://www.imdb.com/find?s=all&q="{param}</a>

[imdb]tt0120689[/imdb]
this is for the green mile
Reply With Quote
  #15  
Old 11-26-2006, 02:16 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iran.gs View Post
ur code can be done like this also and than all u need is the number.
<a href="http://www.imdb.com/find?s=all&q="{param}</a>


[imdb]tt0120689[/imdb]
this is for the green mile
yes indeed, but not as intutive
Reply With Quote
  #16  
Old 11-26-2006, 02:40 AM
transitbus transitbus is offline
 
Join Date: Aug 2006
Location: California
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To open in a new page, just change the replacemnt code to this:

Quote:
<a href="http://www.imdb.com/find?s=all&q={param}" target="_blank">{param}</a>
Reply With Quote
  #17  
Old 11-26-2006, 08:57 AM
Rian Rian is offline
 
Join Date: Sep 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confirmed on 4 forums. This script does not work. It simply takes you to an empty search page at imdb.
Reply With Quote
  #18  
Old 11-26-2006, 11:32 AM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This script works just fine. Even putting in ridiculous names for movies, the search came up with something close.

I would also include the opening a new page version as transitbus posted in the top section. Whether you agree with it or not, I think most would want it to act this way.
Reply With Quote
  #19  
Old 11-26-2006, 07:23 PM
Rian Rian is offline
 
Join Date: Sep 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My apologies. The hack itself does work. I found my problem.

I am using VBAnonymizer, which interfered with the outgoing link, cutting it off.

I changed it as follow:

Quote:
<a href="http://www.imdb.com/find?s=all&q={param}">{param}</a>
to

Quote:
<a href="http://www.imdb.com/find?{param}">{param}</a>
Its working perfectly now.
Reply With Quote
  #20  
Old 11-26-2006, 09:20 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rian View Post
My apologies. The hack itself does work. I found my problem.

I am using VBAnonymizer, which interfered with the outgoing link, cutting it off.

I changed it as follow:



to



Its working perfectly now.
Interesting - I will look in to it and change it.
Reply With Quote
  #21  
Old 11-26-2006, 09:33 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated the code to include the fix for vBanonymizer, and also fixed the read me to make it more clear, so if you were having a problem with it before please try again.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05676 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete