vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Internet Movie Database (IMDb) BB Code (https://vborg.vbsupport.ru/showthread.php?t=132434)

yoyoyoyo 11-24-2006 10:00 PM

Internet Movie Database (IMDb) BB Code
 
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

yoyoyoyo 11-25-2006 01:09 PM

this space for rent (reserved for future use)

AMD_Warrior 11-25-2006 01:12 PM

great job!

efil 11-25-2006 02:10 PM

Thank you!
Very nice mod.

How can i open IMDb in new window?

yoyoyoyo 11-25-2006 02:15 PM

Quote:

Originally Posted by efil (Post 1124838)
Thank you!
Very nice mod.

How can i open IMDb in new window?

I think that is a VBulletin preference in the ACP (links open in new window), but I am not sure - that is how it works on my forum anyway, with no special code, so it must be a setting, however opening a new window is sometimes a bad idea.

Here are the top 5 reasons why you should beware of opening links in a new window:
  1. Unless you warn them, Web users are likely to expect the new page to load in the current window. Unexpected surprises can be fun, but not when you're browsing the Web.
  2. The act of opening a new browser window resets the back button in that window. The back button is the second most used navigation function (after hyperlinks, source: useit.com), so resetting it is a big no-no.
  3. To open a new browser window can disorient very novice Web users and the visually impaired. They might not realise that a new window has opened and might struggle to switch between windows.
  4. Opening a new browser window disrespects the desires of your users. If they want a new window, they'll ask for one. Don't force a new window upon users unless there's a very good reason to do so.
  5. New browser windows can make an already cluttered taskbar even more difficult to use. We've all spent ages hunting through the taskbar in search of the window we want. Don't make this process even harder by increasing the number of windows the user has open.

"But Using New Windows Keeps Users on my Site!"
Not on its own, it doesn't! Web users will stay on a site because it has the information they're looking for, or because it helps them achieve their goals -- not because the browser window is still open. If users want to return to a Website, they'll use the back button. If a new window is used, the back button in this window is reset, so users won't be able to do return to your site using this common method (cue frustrated users).

goyo 11-25-2006 03:37 PM

Quote:

Originally Posted by yoyoyoyo (Post 1124841)
Here are the top 5 reasons why you should beware of opening links in a new window:

I could post a similar list against the _self openning.

In the age of rss readers and ajax/flash technologies (usually can't use the back button) users do expect to open external domains (or even board attachments on the same domain) in new browser window. It gives them faster clearer navigation (different content different window). Also users can change this behavior in most modern browsers (open in same page) if they wish.

If a user doesn't know the difference between a new page and same window than he/she probably can't use your board...as using a vbulletin board is a more complicated task.

abramelin 11-25-2006 03:46 PM

its not going to the actual content so its not so much usefull i think

Veer 11-25-2006 05:37 PM

I didn't understand exactly.. what is it? and how is it working?

Any Screen shot or Demo please !!!

Mecho 11-25-2006 08:11 PM

hi . good job but i think u should work on it . its so simple but great idea .

yoyoyoyo 11-25-2006 08:29 PM

Quote:

Originally Posted by abramelin (Post 1124889)
its not going to the actual content so its not so much usefull i think

If it is not going to the actual page for the movie or actor then you need to make a better keyword. If I type in [imdb]snakes on a plabe[/imdb] it takes me to the "Snakes on a Plane" IMDb page, not the search results. If there is more than one selection, such as "Borat" or something then yes, it will show you the results, however if you type "Borat: Cultural Learnings of America for Make Benefit Glorious Nation of Kazakhstan" without the quotes, and put imdb tags around it then that takes you to the page on that movie.

Quote:

Originally Posted by Pehchaan (Post 1124968)
I didn't understand exactly.. what is it? and how is it working?

Any Screen shot or Demo please !!!

type the name of any movie or actor and then put the [imdb][/imdb] tags around the name. The link displayed will take you to the IMDb page on that subject.

Quote:

Originally Posted by Mecho (Post 1125051)
hi . good job but i think u should work on it . its so simple but great idea .

Well, the IMDb search is what it is - I can't really change they way they do their searches. Yes, it is simple, and it does work - at least for me.

bki 11-25-2006 08:43 PM

Is it possible to change the deafult BB code images size 21x20 so it will fit the imdb picture?

yoyoyoyo 11-25-2006 10:16 PM

Quote:

Originally Posted by bki (Post 1125072)
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

iran.gs 11-26-2006 02:02 AM

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

yoyoyoyo 11-26-2006 02:16 AM

Quote:

Originally Posted by iran.gs (Post 1125221)
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

transitbus 11-26-2006 02:40 AM

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>

Rian 11-26-2006 08:57 AM

Confirmed on 4 forums. This script does not work. It simply takes you to an empty search page at imdb.

Tulsa 11-26-2006 11:32 AM

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.

Rian 11-26-2006 07:23 PM

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.

yoyoyoyo 11-26-2006 09:20 PM

Quote:

Originally Posted by Rian (Post 1125788)
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.

yoyoyoyo 11-26-2006 09:33 PM

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.

Rian 11-27-2006 03:31 AM

Quote:

Originally Posted by yoyoyoyo (Post 1125900)
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.

Thx Yoyoyoyo

The hack is working perfectly now :)

Saskia 11-30-2006 10:27 PM

Sweet! I'm an IMDb junkie, so this'll definetly benefit me and my members on the forums. It's an easy addition, but I never would've thought about it, so thank you!

jyajay 12-11-2006 12:12 PM

Quote:

Originally Posted by Rian (Post 1125788)
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.

Not really, if I search something with this pattern the site is not even loading.


I also attached a version that is exactly 21x20px big, maybe a little more readable than the other one.



Why is this happening:

Quote:

http://www.imdb.com/find?s=all&q= <br />TEST TEST<br />
My replacement looks like this:

Code:

[imdb]
TEST TEST
[/imdb]

but it has to be:

Code:

[imdb]TEST TEST[/imdb]
PHP Code:

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


BarelyHangingOn 12-11-2006 01:04 PM

How do I add this?

compact123 06-14-2007 08:07 PM

thanks for this is mod

Alibass 06-15-2007 01:00 AM

*Installed*

Shaliza 07-23-2007 12:05 AM

Great hack!

edytwinky 11-06-2007 05:15 PM

Looks interesting. Might give it a shot when I get home.

yoyoyoyo 11-07-2007 01:46 PM

I updated the version number of the vbulletin that this works with since this works will all versions of vb that support bb code. No changes to the BB code have been found, but thought that it might be overlooked if it was buried in the 3.5.X section

XMRadioGold 11-07-2007 05:05 PM

Just installed it to my new site. Works well, thanks.

Skitty 11-07-2007 10:33 PM

This is fun, thanks !

hostmela 12-08-2008 04:11 PM

i did this and it came like this....
https://vborg.vbsupport.ru/external/2008/12/89.jpg


i want this
before post:
[IMDB]http://imdb.com/title/tt0430770/[/IMDB]

after post:
https://vborg.vbsupport.ru/external/2008/12/88.jpg

compact123 05-12-2009 04:49 PM

thnaks for mod...

marshal_ramdev 05-31-2009 04:03 PM

thanks m8

compact123 05-31-2009 10:23 PM

This is cool IMDB mod: http://www.vbulletin-turkey.com/foru...ad.php?p=31055

RedHacker 08-20-2009 08:18 AM

Quote:

Originally Posted by compact123 (Post 1820942)

But the Turkish language not know many people. I saw but not understand anything


All times are GMT. The time now is 02:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02907 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete