vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - TMDb Movie Thread Starter LITE (https://vborg.vbsupport.ru/showthread.php?t=299273)

ckgb 01-03-2014 09:34 PM

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

nhawk 01-03-2014 10:11 PM

Quote:

Originally Posted by ckgb (Post 2472099)
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.

ckgb 01-03-2014 10:20 PM

I see. Facebook does not recognize images under 200x200. Unfortunate.

nhawk 01-03-2014 10:34 PM

Quote:

Originally Posted by ckgb (Post 2472114)
I see. Facebook does not recognize images under 200x200. Unfortunate.

Interesting considering I see many, many images sized at 76x114.

ckgb 01-04-2014 07:02 PM

Regardless, Great mod. Great. Simply love it. Rating of the movies would be next great addition to it ))

final kaoss 01-19-2014 01:43 AM

Thanks but this doesn't seem to work for tv shows? Example that I tried.
http://www.themoviedb.org/tv/12278-c...ngel-mindfreak

nhawk 01-19-2014 11:46 AM

Quote:

Originally Posted by final kaoss (Post 2475295)
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.

highlander_RD 01-22-2015 07:30 AM

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.


All times are GMT. The time now is 12:57 AM.

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.01252 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete