ChowKaiDeng
Forum Replies Created
-
Well, is not that get_locale() “didn’t work”, it was more like “I couldn’t make it work” ??
Greetings!
I’ve found a solution using get_bloginfo () in here. Check it out!
Hi guys!
I’ve tried the solution from the other post sugested by yoyurec and Chouby (using get_locale) but it didn’t work for me. But finally, I’ve found a perfect and similar solution using get_bloginfo, that can print the lang values located in the <html> tag. Here’s what it looks like:
<?php $currentlang = get_bloginfo('language'); if($currentlang=="en-US"): ?> <div>Content in English</div> <?php else: ?> <div>Content in Spanish (or other language)</div> <?php endif; ?>
So, basically, you could use that function as many times as you want on a template to get different contents depending of the language selected by the user ??
I suggest to include this solution as part of the documentation of the plugin as many users may want to use it. What do you think?
Greetings!
Thanks yoyurec! I’m checking it out, but as far as I can see, I think that would do the job.
Greetings!
Forum: Plugins
In reply to: Sort of like buttonMaybe you could use a plugin like GD Star Rating so the students could rate and review each idea in a more complex way?
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] Thousands of errors in error_logThanks gaspy, but I ended up deactivating and deleting it. I’m changing to W3 Total Cache instead of WP-Super cache, because it has more functions (including CSS, HTML, and JS minifying).
Thanks again for your time ??
Greetings
At the end, Jetpack was not the one causing the error, it was a damned WP-Minify bug. We just noticed it after several hours of false attempts and tests. For some, reason, when Jetpack was activated at the same time when WP-Minify was generating errors, the CPU went up like crazy. I wrote about it on this thread. Conclusion: Jetpack works well.
But, I agree with jcglobalcitizen: It would be nice a simplified plugin with not so much functions as Jetpack.
Try “Dynamic Widgets” plugin. You can select on which pages, posts, categories, and so on… will appear a particular widget. It works perfect for me.
Cheers!
I didn’t saw this post before and posted my own :
A few days ago, my server went down after installing the Jetpack for WordPress plugin (the site was consumming about 20% CPU when it’s usually 2%), I blamed Jetpack but maybe it has something to do with this… after all, the server is forced to write huge ammounts of data every few seconds to a file. I’m reinstalling Jetpack to check again the CPU ussage reports.
BTW, in order to apply a custom class to the tag, remember to change the double quotation marks for inverted commas (dunno how to say this in english).
Example:
The code is written like this:
print "<p>" . wpmp_switcher_link('desktop', __('Switch to our desktop site', 'wpmp')) . "</p>";
So, change it to:
print '<p class="your-classname">' . wpmp_switcher_link('desktop', __('Switch to our desktop site', 'wpmp')) . '</p>';
Otherwise, it won’t work ??
I was looking exactly for the same thing.
I think the answer it’s on line 212 on this file:\plugins\wordpress-mobile-pack\plugins\wpmp_switcher\wpmp_switcher.php
case WPMP_SWITCHER_DESKTOP_PAGE: print "<p>" . wpmp_switcher_link('mobile', __('Switch to our mobile site', 'wpmp')) . "</p>"; break;
You can change what it prints or print a different tag (like a div) as well as adding a custom class, or just comment it from 211 to 213. It worked for me.
Cheers