Maris
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Efficient Related Posts] 403 ErrorWhat php version are you using? My quess is that you don’t have version 5. But this plugin requires it.
Forum: Plugins
In reply to: [Plugin: Co-Authors Plus] coauthors_wp_list_authors bug?The bug is inside this sql statement:
$author_count = array(); $sql = "SELECT DISTINCT p1.post_author, (COUNT(ID)+(SELECT COUNT(*) FROM $wpdb->posts p2, $wpdb->postmeta pm WHERE p2.ID = pm.post_id AND pm.meta_key = '_coauthor' AND pm.meta_value = p1.post_author) ) AS count FROM $wpdb->posts p1 WHERE post_type = 'post' AND " . get_private_posts_cap_sql( 'post' ) . " GROUP BY post_author";To fix it I changed the lines above (coauthors.php file, lines 455 till 466 from Co Authors Plus plugin) to this:
foreach ( (array) $authors as $author ) { $sql = "SELECT count(*) AS count FROM $wpdb->posts p1, $wpdb->postmeta pm WHERE p1.ID = pm.post_id AND pm.meta_key = '_coauthor' AND pm.meta_value = '" . $author->ID . "' AND p1.post_status = 'publish' OR p1.post_author = '" . $author->ID . "' AND p1.post_status = 'publish'";And add } symbol right after line 508.
Now, this is definitely not the best variant as it makes an sql query for each author, but – it works. One can see it in action at darkmatter101.org.
If you don’t want to dive into your plugin file, to fix this – Co Authors Plus modified plugin download link: http://www.moskjis.com
Forum: Plugins
In reply to: FTP images (NexGen)This time I see different gallery (Thailand), all images have thumbnails and load fast.
Forum: Plugins
In reply to: FTP images (NexGen)hmm, doesn’t seem to be the problem. But you can try: resize them a little…
Forum: Plugins
In reply to: FTP images (NexGen)piclens show the images for me. but the load time is long (I have 18 Mbps net) so, your images must be too big.
Forum: Plugins
In reply to: FTP images (NexGen)maybe they are too big?
Forum: Plugins
In reply to: FTP images (NexGen)hmm, it does create thumbnails for me. You can try selecting all, then use Create new thumbnails from the dropdown list.
Forum: Plugins
In reply to: FTP images (NexGen)No, make a gallery, put them in your gallery folder, then go to admin interface, Manage Gallery, then your gallery, then Scan Folder for new images (button)
Forum: Everything else WordPress
In reply to: [Plugin: NextGEN Gallery] translationYea, I’m using poEdit. But the problem is: if someone wants to help and doesn’t have needed computer skills, he/she’d be stuck. Or, if there is a new version out, with some changes? Old, translated po file doesn’t have those changes. Or, if someone corrects just some translations, I doubt he/she will send those changes. It doesn’t seem enough to be worth troubling the developer.
Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslateWell, if you add:
add_action(‘init’, ‘wp_dtree_update_cache’);
to the new wp-dtree.php, all works as wanted.
Test it hereThe problem is, it makes caching almost useless.
I’m thinking about ways to overcome this problem.
Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslateI’l do it. Not today, but during “computer workdays” – at work.
And hope, StefaRossi will test it for me, as I seem to be bad at testing. 🙂About the difference between _e() and __(). I’m aware of it. But, somehow, only _e() seems to be working the way I want it in this case.
Maybe some trigger is needed and I just need to find it.Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslateStefaRossi, thank you. You found a bug in, well, my thinking process 🙂
What is needed is this function:
qtrans_convertURL(string $url, string $lang)It returns an converted URL for the selected language or the current language, if $lang is omitted.
Sadly, that means, we can’t get real independence from qtranslate.
We will need to check for it.<?php
if (function_exists(‘qtrans_convertURL’))
{
wp_dtree_get_pages(<some new param here>);
}
else
{
wp_dtree_get_pages();
}
?>O, yes, Here functions for developers and template authors can be found.
Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslateTo StefaRossi: my suggestions were for stable version: 3.4.2, not the development version. For code changing: you just replace the line mentioned with the new line, that’s all. Here is a zipped version: link.
Note that I didn’t change code for archives or titles, as there was no need for it, at least for me.To Ulfben: The approach you took was for localization support alright, but the way you did it was not the one I would take. I understand why you did it that way, but, there is no need to worry about performance losses: the string gets longer only when one uses qtranslate (q. further in the text), and, in that case, they need that string. With q. you change the name on the fly: take it from different WordPress (W. further in the text) .mo file or user specified string. You did the same, before W. or q. could do it and, you did it for the default language (defined in wp-config.php), as you could not possibly see other languages. So, when W. or q. tried to do it there was nothing they could do: the string was already parsed.
I looked through the code for a bit, so: here is a working example for links section:
wp-dtree_lnk-functions.php
change to:
line 30: ‘title’ => $cat->name
line 50: ‘title’ => $lnkresult->link_name,
line 72: echo _e($lnkresults);I didn’t change line 70, Didn’t thought there was a need for it, as it looked like it was there for testing purposes.
Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslateTo Ulfben:
Did a first check on it. There is improvement, (great work on admin panel), there are not so many improvements with multilanguage support.Will check the code during the day.
P.S. It didn’t show pages for me.
P.P.S. There is one page, one link et cetera. You just display part of it.
The tags, it looks for, is: [lang_<your language here>]<Text to display>[/lang<your language here>]
Don’t know how it does it with *.mo files. But, as it completes it using WordPress build-in functionality: link,
there should be no problems with or without qtranslate plugin.Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslate