Charlie Merland
Forum Replies Created
-
Forum: Plugins
In reply to: [WPMovieLibrary] Customs the size of the TrailerHi Alina,
Very sorry for making you wait for so long. I’ll investigate this and get back to you quickly!
Hi there Mr_hero,
Meta descriptions and titles are mostly handled by the theme, so the plugin doesn’t control that part for now; depending on your settings you may have to add this to your theme’s
page.php(if you set an archive page for the plugin) orarchive.php(if you’re using the basic WordPress archive display). Can you share your website’s URL so I can take a look at it?Forum: Plugins
In reply to: [WPMovieLibrary] Best way to implement meta tags in header?Correct, the YYYY-MM-DD format is inherited from TheMovieDB; you can handle it like any other date format with PHP, though. The code you pasted is incorrect (
wpmoly_movie_datedoesn’t exist, looks likewpmoly_format_movie_release_datewhich renders a link to the date in ‘YY MONTH YYYY’ format). If you don’t want the link, either strip it usingstrip_tags():echo strip_tags( apply_filters( 'wpmoly_format_movie_release_date', wpmoly_get_movie_meta( null, 'release_date' ) ) );Or the more basic PHP way:
echo date( 'jS F Y', strtotime( wpmoly_get_movie_meta( null, 'release_date' ) ) );Note that if the first code will be localized, the second will not.
Forum: Plugins
In reply to: [WPMovieLibrary] Any way to shorten the list of actors?You’re welcome 🙂
Forum: Plugins
In reply to: [WPMovieLibrary] Any way to shorten the list of actors?Hi Nathaniel,
$meta['cast']is a string, casting it to an array will only result in an array with a single row in it; to get the actual split you have to useexplode():$Casinput = explode( ', ', $meta['cast'] ); $Casinput = array_slice( $Casinput, 0, 10 ); $Casinput = implode( ', ', $Casinput );One-liner:
$Casinput = implode( ', ', array_slice( explode( ', ', $meta['cast'] ), 0, 10 ) );Note: rather than modifying the plugin’s file − which will result in your modifications being deleted on each plugin update − copy the file to your theme’s folder under a
wpmovielibraryfolder instead ofviews, for instance:wpmovielibrary/movies/movie-imdb-headbox.php. Edit that file: it will be used instead of the plugin’s default one!Forum: Plugins
In reply to: [WPMovieLibrary] Customs the size of the TrailerHi Alina,
Making a player responsive is a bit tricky as, in the end, it mostly depends on the videos size… Apart from having a JavaScript calculating the optimum size and dealing with resizes, you can always override the plugin’s template by creating a
wpmovielibrary/movies/headbox-allocine/tabs/trailer.phpfile in your theme’s folder with this content. This will render a 640x380px player limited to the container’s width in smaller screen to avoid overflow. See how it works!Forum: Plugins
In reply to: [WPMovieLibrary] Customs the size of the TrailerHi Alina,
Making a player responsive is a bit tricky as, in the end, it mostly depends on the videos size… Apart from having a JavaScript calculating the optimum size and dealing with resizes, you can always override the plugin’s template by creating a
wpmovielibrary/movies/headbox-allocine/tabs/trailer.phpfile in your theme’s folder with this content. This will render a 640x380px player limited to the container’s width in smaller screen to avoid overflow. See how it works!Forum: Plugins
In reply to: [WPMovieLibrary] Customs the size of the TrailerHi Alina,
Ok. Making a video player responsive is a bit tricky as, in the end, it depends on the size of the video itself… You can always override the trailker template by adding a
wpmovielibrary/movies/headbox-allocine/tabs/trailer.phpfile to your theme’s folder with this content. The player will render a player of 640x390px with width limited to the container width to avoid overflow.Forum: Plugins
In reply to: [WPMovieLibrary] Headbox ShortcodeHi there Johannes,
About the
[movie]Shortcode issue, any clue in the server’s log? A missing content like you describe looks like a PHP error killing the rest of the script.As for the Headbox Shortcode, yes, it’s been resquested here few days ago, and it’s now a planned feature!
Forum: Plugins
In reply to: [WPMovieLibrary] Adding options to the headboxNevermind, definitely a bug. I’ll fix this for the next version!
Forum: Plugins
In reply to: [WPMovieLibrary] Adding options to the headboxHi emmajrobinson,
I suppose the missing data (languages and country, essentially) are correctly imported and present in the metadata?
Forum: Plugins
In reply to: [WPMovieLibrary] Disabling Frontend FeaturesNo problem! Scheduled for the next version 🙂
Forum: Plugins
In reply to: [WPMovieLibrary] Taxonomy for YearThere’s someone working on the German translation already, but I don’t know how far he’s got; anyways, you can use the current POT file from GitHub and edit it with Poedit.
I don’t know the Genesis framework, but if you can provide a URL for your site I’ll take a look at it, see how the menu can be fixed 🙂
Forum: Plugins
In reply to: [WPMovieLibrary] Taxonomy for YearThe grid issue is a compatibility issue with your theme; which one is that?
As for the links issue, the German translation is out of date, that may explain a part of the problem. Did you add some translation yourself?
Forum: Plugins
In reply to: [WPMovieLibrary] Disabling Frontend FeaturesHi fghafoor,
There is no “full-admin-only” mode, some things will always be loaded on frontend too, but if you set off all public-related options there shouldn’t much to do on frontend.
That being said, here’s a quick trick for you: in the plugin’s
wpmovielibrary.phpfile, edit line 106 and changeif ( wpmoly_requirements_met() )toif ( wpmoly_requirements_met() && is_admin() ) {. That way if you’re not in the dashboard, nothing will be loaded. I’ll add this as an option in a future version, too.