Charlie Merland
Forum Replies Created
-
Forum: Plugins
In reply to: [WPMovieLibrary] Can this script import TV series, tooSorry, at the moment no, this plugin cannot do that. It’s been requested though, so it’s planned, we just don’t know yet which form it will take (additional plugin, complete fork, premium, free, there’s a lot of possibilities).
We hope to be able to propose something like this at the end summer 🙂
Forum: Plugins
In reply to: [WPMovieLibrary] PersonnalisationPas de soucis 😉
Forum: Plugins
In reply to: [WPMovieLibrary] Error message on dashboardHi matth3wwatson,
Looks unrelated to the plugin itself, more likely an issue with another plugin/theme:
mts_Walkerseems to be a part of MyThemeShop products, are you by any chance using one of their themes?As for a fix, hard to say; my first step would be to check the
functions.phpto find an occurrence ofmts_Walker::start_el()and maybe try replace it withmts_Walker::start_el(null, null). And/or see the MTS support if they know precisely where that’s coming from.From what I gathered the issue seems to be that the
mts_Walker::start_el()method requires at least two arguments, but none is passed in thefunctions.phpfile, causing a PHP Strict error, but I don’t have any way to actually test this.Forum: Plugins
In reply to: [WPMovieLibrary] PersonnalisationJ’ai regardé vite fait AZindex, il y a plusieurs endroits ou il est explicitement définit post et page uniquement ; ajouter
moviedevrait suffire.A priori, il faudrait remplacer les lignes 73 et 110 de
az-index-cache.phprespectivement parif ( in_array( $post_type, array( 'post', 'page', 'movie' ) ) ) {etif ( in_array( $post->post_type, array( 'post', 'page', 'movie' ) ) ) {, et remplacer la ligne 627 par$selection = "'post', 'movie'";. À voir si ça marche !PS: non, je n’ai pas de site en rapport avec le cinéma 🙂
Forum: Plugins
In reply to: [WPMovieLibrary] Unique identifierOk! The plugin doesn’t provide anything like that, but I guess you could achieve that with a few built-in WP tools, I’m thinking of custom fields or post slugs…
Forum: Plugins
In reply to: [WPMovieLibrary] PersonnalisationHop-là , à coller dans votre fichier
functions.php: https://gist.github.com/Askelon/cf57b979d795ba3e83aaForum: Plugins
In reply to: [WPMovieLibrary] PersonnalisationBonjour, vous devriez pouvoir obtenir ce résultat en désactivant l’affichage des métadonnées et détails (dans le dashboard, Films > Réglages > Films et régler « Afficher les métadonnées des films » et « Afficher les détails des films » sur « Jamais ») puis en collant ce bloc incluant les shortcodes dans vos posts :
<table style="width: 290px; float: left; margin: 10px; height: 303px;"> <tbody> <tr> <td class="titre" style="background: #0F1718; height: 65px; text-align: center; font-size: 18pt; line-height: 25px; -moz-border-radius: 5px; border-radius: 5px;"><span style="color: #ffffff;">[movie_title label="no"]</span></td> </tr> <tr> <td class="infos" style="background: #192122; height: 168px; -moz-border-radius: 5px;"> <address style="font-size: 8.5pt;"><span style="color: #ffffff;">[movie_poster] Réalisé par [movie_director label="no"]</span></address><br> <address style="font-size: 8.5pt;"><span style="color: #ffffff;"> Avec [movie_actors label="no" count="4"]</span></address><br> <address style="font-size: 8.5pt;"> </address> <address style="font-size: 8.5pt;"><span style="color: #ffffff;">Long-métrage [movie_country label="no"]<br></span></address> <address style="font-size: 8.5pt;"><span style="color: #ffffff;"> Genres : [movie_genres label="no"]<br></span></address> <address style="font-size: 8.5pt;"><span style="color: #ffffff;"> Durée : [movie_runtime label="no"]</span></address> <address style="font-size: 8.5pt;"><span style="color: #ffffff;">Année de production : [movie_release_date label="no"]</span></address> </td> </tr> <tr> <td class="note" style="background: #232B2C; text-align: center; font-size: 24pt; height: 50px; color: green; -moz-border-radius: 5px;"><span style="color: #008000;">[movie_rating raw="yes"]/5</span></td> </tr> </tbody> </table>Remarques :
- Il faudra un peu de CSS pour ajuster le tout à votre thème, notamment l’affiche du film, utilisez la classe
.infos .wpml_movie_poster .wp-post-image; - Les noms des pays de production ne sont pas traduit, mais c’est prévu pour une prochaine version ;
- Pensez à changer le format de la date dans les réglages du plugins si besoin (Films > Réglages > Films et changer « Format de date de sortie » pour
Y, la valeur par défaut étantj F Y).
Sur ma version de test j’obtiens ceci : http://pix.caercam.org/?img=1406239575.png Ce n’est pas au pixel près, mais cela prend en compte les informations essentielles.
Pour éviter de devoir faire un copier/coller à chaque nouveau film vous pouvez ajouter une petite fonction dans le fichier
functions.phpde votre thème, je ferais ça vite fait demain si cela vous intéresse !Forum: Plugins
In reply to: [WPMovieLibrary] Unique identifierNot sure I’m getting your point here. Technically, movies are just a custom post type, meaning they already have a unique identifier: the Post ID. Wouldn’t that be what you’re looking for?
Forum: Plugins
In reply to: [WPMovieLibrary] Images not showingThank you!
Forum: Plugins
In reply to: [WPMovieLibrary] Images not showingNo, the movie’s info are added to the post’s content before it is displayed; shortcodes are intended to enhance posts content, they cannot really palliate to themes deficiencies…
But in that case you’re better off adding the featured images support to your theme, see this modified version of Ming’s
single.php: https://gist.github.com/Askelon/e484454725c40017effdForum: Plugins
In reply to: [WPMovieLibrary] Images not showingIf featured images work with theme A and not with theme B then it is most likely an issue with theme B. What theme are you using that doesn’t show posts thumbnails? I’ll test the plugin with it to be sure.
Forum: Plugins
In reply to: [WPMovieLibrary] Images not showingDoc is here: http://wpmovielibrary.com/documentation/shortcodes/movie_images/
To show all images related to a movie, simply put
[movie_images]in your post. That will add a gallery showing all the images imported for the current movies. You can specify which size the images should be:[movie_images size="medium"]or limit the number of images:[movie_images count="4"].Forum: Plugins
In reply to: [WPMovieLibrary] Images not showingHi pps888,
Images are not included automatically in posts, you have to include them manually like regular media, or use the
[movie_images]shortcode introduced in version 1.1! See the update version 1.1.2 for better results.Forum: Plugins
In reply to: [WPMovieLibrary] Posts not ShowingThere is such a page, as you can see in this demo: http://demo.wpmovielibrary.com/movies/
Did you create a page named “Movies” that could mess with the custom post type? It could also be an issue with your theme preventing the regular display of the page.
Forum: Plugins
In reply to: [WPMovieLibrary] Posts not ShowingThanks fiifi18!
1/ If the poster shows on the admin but not in the frontend it’s more likely an issue with the theme itself as the posters are set as posts’ featured images; a bug in the plugin would rather mean no poster at all, admin or fronted. Does your theme show featured images correctly everywhere else?
This made me notice a small bug on the admin part though, manually setting a featured image doesn’t work, no AJAX sent. I’ll checking this.
2/ Could this be a permalink issue? Try reloading the General > Permalinks page in your dashboard.
Could you provide a link to your site to see live and check the basics?
- Il faudra un peu de CSS pour ajuster le tout à votre thème, notamment l’affiche du film, utilisez la classe