Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
TMDb Movie Thread Starter LITE Details »»
TMDb Movie Thread Starter LITE
Version: 1.0.5, by nhawk nhawk is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.2.x Rating:
Released: 06-18-2013 Last Update: 05-19-2014 Installs: 14
 
No support by the author.

THIS ADD-ON IS NO LONGER AVAILABLE AND IS NOT SUPPORTED

Do you run a movie review or discussion site? Always copying and pasting information from The Movie Database to your new threads? Or, maybe you just want a place on your site to discuss movies with friends.

Then this vBulletin add-on is for you!

The TMDb Thread Starter allows you to enter the movie ID or the entire link to the movie at TMDb into your new thread, add whatever comments you like and post the new thread. The TMDb Thread Starter will import all of the information for your movie into the first post of the new thread.

FEATURES:
  • Makes the new thread title the name of the movie.
  • Automatically populates the top of the first post with the movie poster and information.
  • Images are not stored locally and are obtained from The Movie Database cloud.

REQUIREMENTS:

vBulletin 4.2.x
A TMDb API Key
Server must have cURL installed

1.0.5 (May 20, 2014)
- Fix for new image url

1.0.4 (June 27, 2013)
- Improved movie decoding/encoding
- Added check for duplicate movie

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
tbworld

Comments
  #42  
Old 01-03-2014, 09:34 PM
ckgb ckgb is offline
 
Join Date: Oct 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now the movie image created inside a thread has a size of 185x278 pixels. Is there a way to change the size to 200x301?

I tried changing it in newpost_process but it just fails to display.

Thank You
Reply With Quote
  #43  
Old 01-03-2014, 10:11 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ckgb View Post
Right now the movie image created inside a thread has a size of 185x278 pixels. Is there a way to change the size to 200x301?

I tried changing it in newpost_process but it just fails to display.

Thank You
The size of the image comes directly from TMDb. It is not controllable by the add-on.
Reply With Quote
  #44  
Old 01-03-2014, 10:20 PM
ckgb ckgb is offline
 
Join Date: Oct 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see. Facebook does not recognize images under 200x200. Unfortunate.
Reply With Quote
  #45  
Old 01-03-2014, 10:34 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ckgb View Post
I see. Facebook does not recognize images under 200x200. Unfortunate.
Interesting considering I see many, many images sized at 76x114.
Reply With Quote
  #46  
Old 01-04-2014, 07:02 PM
ckgb ckgb is offline
 
Join Date: Oct 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Regardless, Great mod. Great. Simply love it. Rating of the movies would be next great addition to it ))
Reply With Quote
  #47  
Old 01-19-2014, 01:43 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks but this doesn't seem to work for tv shows? Example that I tried.
http://www.themoviedb.org/tv/12278-c...ngel-mindfreak
Reply With Quote
  #48  
Old 01-19-2014, 11:46 AM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
Thanks but this doesn't seem to work for tv shows? Example that I tried.
http://www.themoviedb.org/tv/12278-c...ngel-mindfreak
No it doesn't.

The TV API from TMDb works differently from the Movie API. The reponses and queries are different.

AND the TV API at TMDb isn't complete yet. There are critical functions missing from it.
Reply With Quote
  #49  
Old 01-22-2015, 07:30 AM
highlander_RD's Avatar
highlander_RD highlander_RD is offline
 
Join Date: Oct 2003
Location: Italy
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you nhawk: great mod! :up:

I just amended few things in the "newpost_process" plugin.

1) I added the language option, so to extract title and plot in Italian, as follows:
PHP Code:
curl_setopt($chCURLOPT_URL"http://api.themoviedb.org/3/movie/" $tmdbid "?api_key=" $vbulletin->options['tmdbthreads_api'] . "&language=it&include_image_language=it,null" "&append_to_response=casts"); 
2) I added addslashes to the movietitle in the SQL because of the symbols (as ' ) we have in our language:
PHP Code:
            $isposted $vbulletin->db->query_first("SELECT threadid, tmdb_title FROM " TABLE_PREFIX "thread WHERE tmdb_title = '" addslashes($movietitle) . "' AND tmdb_release = '" $releasedate "' AND forumid = '" $foruminfo 
3) I put variables $movietitle and $plot under utf8_decode() so to avoid gibberish characters and obtain ISO-8859-1 correct accented characters.
Reply With Quote
Благодарность от:
Gerritje64
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:14 AM.


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.04803 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (2)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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