Zurd
Forum Replies Created
-
Bug fix confirmed, thanks a lot!
Safe mode wasn’t working so I disabled the plugin and then I was able to edit the page. I’ve created snippets and now it’s working like it should.
As for the error, it’s only because I had relative path in my code before so I put absolute path and it’s fine now.
Forum: Plugins
In reply to: [Weather Layer] MultilanguageThis plugin is quite neat. It is missing a multi-language option though.
I’m using polylang and was able to make a quick fix.
Open up wp-content/plugins/weather-layer/weather_layer.php and comment this line:
$langue = weather_layer_getLanguage();Replace with:
if ( pll_current_language() == ‘en’ ) {
$langue =”en”;
}
else {
$langue = “fr”;
}Forum: Plugins
In reply to: [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] brokenwill try again in next version, keep working on it 😉
The beta 2.0.2 doesn’t show the error about ‘MVC Template’ but when clicking on an image, it doesn’t show, it’s like it’s invisible. Background do fade but that’s it.
I rollback to 1.9.13 and it’s all good, will wait.
Forum: Plugins
In reply to: [Polylang] How to use polylang to translate a pluginI found out that some of the text we not properly translated in their MO/PO files so I set that right by modifying it myself.
Then I had problems with the message after posting a comment (the page wp-comments-post.php, for example ‘ERROR: please type a comment.’ which was not translated.
In the settings of Polylang, I checked :
The language code, for example /en/, is added to all urls when using pretty permalinks.instead of the other one and it is now all translated.
Forum: Plugins
In reply to: [WP Customer Reviews] How to have random testimonialsPaste me your line 385 from wp-customer-reviews.php
Forum: Plugins
In reply to: [WP Customer Reviews] How to have random testimonialsheaders already sent usually means you have spaces or blank lines at the top of your file before <?php or at the end completely after ?>
Let’s try one more time, copy and paste in wp-customer-reviews.php :
http://pastebin.com/NKe7fkxaAnd call in a WP page the plugin like so :
[WPCR_SHOW POSTID=”ALL” NUM=”1″ SNIPPET=”170″ MORE=”” HIDECUSTOM=”0″ HIDERESPONSE=”0″ RANDOM=”1″]Forum: Plugins
In reply to: [WP Customer Reviews] How to have random testimonialsCheck the box at the bootom “Notify me”. Is it working now?
Forum: Plugins
In reply to: [Polylang] Search results : only in specific languageUsing the home_url instead of site_url just takes me back to my homepage without any search results.
Using the translation po/mo files of wordpress is better than what I do but what I did is already working and I don’t have no po or mo files to compile, yes, I’m lazy.
Thanks for providing us polylang, this is the best translation plugin I ever used, if I ever finish the 2 websites that is using it, I’ll donate, thanks again.
Forum: Plugins
In reply to: [Polylang] Search results : only in specific languageSolved, here’s the code I used, it’s the search form :
<?php $currentlang = get_bloginfo('language'); if ( $currentlang=="en-CA" ) { echo "<h2>Search</h2>"; echo '<form method="get" id="searchform" action="' . site_url() . '/en/">'; } else { echo "<h2>Recherche</h2>"; echo '<form method="get" id="searchform" action="' . site_url() .'/fr/">'; } ?> <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" /> <input type="submit" value=">" /> </form>Forum: Plugins
In reply to: [Polylang] Search results : only in specific languageThis is the code that loops in my search.php file that prints every page title. If there was only a way to test what language is for the_post()
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<h3 id=”post-<?php the_ID(); ?>”>
” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?>
</h3>
</div><?php endwhile; ?>
Forum: Plugins
In reply to: [WP Customer Reviews] How to have random testimonialsLooks like there was a problem when you copied the file.
Line 393 should read like that :
function get_reviews($postID, $startpage, $perpage, $status, $random)see, it has 5 arguments and your error is complaining about a missing fifth argument.
Forum: Plugins
In reply to: [WP Customer Reviews] How to have random testimonialsBut you still have a problem with editing the comments?
Forum: Plugins
In reply to: [WP Customer Reviews] How to have random testimonialsMight be because of the permission of the file if you created a new onem make sure it’s 644.
If you have linux, make a diff of the original file wp-customer-reviews.php and the new one, there might be more difference.
I will make a diff of the admin.php file and the original later tonite, will keep you posted.