• Skip to primary navigation
  • Skip to main content
  • Skip to footer

TECHXT

simple extendable solutions

  • Home
  • Wordpress Tutorial
  • SEO
  • How to
  • Forum
  • Knowledge Base
    • Domain Name Generator
    • My Tech Projects
    • News
    • Security
  • About
  • Search

IMDB custom button|Tweet Like Plusone and Share Plugin|Plugin Support Forum|TECHXT

.

Avatar
sp_LogInOut Log Insp_MemberList Members
Lost password?
sp_Search Search
Advanced Search
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
Home
Plugin Support Forum
Tweet Like Plusone and Share Plugin
IMDB custom button
Go to Bottom
sp_NewPost Add Reply
sp_NewTopic Add Topic
sp_Feed Topic RSSsp_TopicIcon
IMDB custom button
March 15, 2012
12:12 pm
Avatar
SpoilerOne
Guest
Guests
Go to Top
1sp_Permalink sp_Print sp_QuotePost Quote

Hi all and thanks for this great plugin!

My site is about Movies and TV Series, so I would like to add a custom button that directly passes the %%TITLE%% value to IMDB search.

The problem is most of my titles are like "Dexter - Season four" but IMDB shows no results for this, so I need a trick (Javascript?) to cut the %%TITLE%% and pass to IMDB only the part before the "-" char.

I tried this

function doSomething(form) {
var str = "%%TITLE%%";
var new_var = str.split("-",1);
form.action = 'http://www.imdb.com/find?'+new_var;
return true;
}

but it seems not to split anything...

Any help would be appreciated thank you!!!

March 15, 2012
12:16 pm
Avatar
SpoilerOne
Guest
Guests
Go to Top
2sp_Permalink sp_Print sp_QuotePost Quote

For some reason the forum cut some part of script I pasted...

Please find the full code I'm trying here: http://nopaste.php-q.net/189695

March 15, 2012
1:13 pm
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
3sp_EditHistory sp_Permalink sp_Print sp_QuotePost Quote

SpoilerOne said

Hi all and thanks for this great plugin!

My site is about Movies and TV Series, so I would like to add a custom button that directly passes the %%TITLE%% value to IMDB search.

The problem is most of my titles are like "Dexter - Season four" but IMDB shows no results for this, so I need a trick (Javascript?) to cut the %%TITLE%% and pass to IMDB only the part before the "-" char.

I tried this

function doSomething(form) {
var str = "%%TITLE%%";
var new_var = str.split("-",1);
form.action = 'http://www.imdb.com/find?'+new_var;
return true;
}

but it seems not to split anything...

Any help would be appreciated thank you!!!

why do you want to use javascript when this can be done using simple HTML. Try out the below code.

<a href="http://www.imdb.com/find?q=%%TITLE%%&s=all" target="_blank"><img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/174569_15925638948_1606817441_q.jpg" alt="" width="50" /></a>

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

sp_NewPost Add Reply
sp_NewTopic Add Topic
Add Reply: IMDB custom button
Guest name (required):
Guest email (required):

NOTE: new posts are subject to administrator approval before being displayed

Guest URL (required)
Math Required
What is the sum of:
9 + 10
sp_Feed All RSS
Go to top
Forum Timezone: America/New_York
Most Users Ever Online: 177
Currently Online:
Guest(s) 2
Top Posters:
Natália Gastão: 10
indy: 6
Milan Berger: 5
Cesar Bielich: 5
YethzART: 4
Aqua Skye: 4
Member Stats:
Guest Posters: 369
Members: 88
Moderators: 0
Admins: 2
Forum Stats:
Groups: 2
Forums: 5
Topics: 384
Posts: 1334
Newest Members:
test usser, Anthony Ang, Fernando Rueda, Jesus S. Jr Matubis, Quinton Williamson, William H Cole
Administrators: Administrator: 4, _sudipto_: 537
© Simple:Press —sp_Information

Footer

Subscribe by email

FOLLOW US :

Tools & Apps

  • Domain Names Generator
  • Our Wordpress Plugins
  • HTML Code Table

TechXT Network

  • www.seecoupons.com – Just another Deals & Coupons site
  • pincodes.techxt.com – A search engine for Indian Pincode.
  • stdcode.techxt.com – A search engine for Indian STD Codes
  • mobileinfo.techxt.com – A search engine for Indian Mobile Codes
  • bankifsccode.techxt.com – A search engine for Indian Bank IFSC Codes.

Info

  • Contact us
  • Privacy Policy

  •   simple extendable solutions

© Copyright 2025 TECHXT.COM

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.