cptdondo
Forum Replies Created
-
Forum: Plugins
In reply to: Multiple plugins messing up SQL query🙂 started down that road. It’s a pain… Neither plugin is simple….
So I hit on a simpler sol,ution – add one line to the ecg plugin:
function ecg_cat_join($query) {
global $table_prefix;
/****** new line ******/
if (strstr($query,’JOIN’)) { return $query ;}
$newquery = $query . ‘ LEFT JOIN ‘ . $table_prefix .
‘post2cat ON (‘ . $table_prefix . ‘posts.ID = ‘ .
$table_prefix . ‘post2cat.post_id) ‘;
return $newquery;
}You also have to load the ecg plugin after the private categories plugin….
But it still seems to me that there should be a standard wp-join function to make sure the plugins create a valid SQL query…..
–Yan
Forum: Fixing WordPress
In reply to: Default visible categoriesOK, there is something wrong with the SQL query… I have a conflict between private_categories and front_page_categories….
Anyone know of a plugin that provides both? (Save me some coding and headache… The mergin of the two doesn’t seem too trivial….)
Forum: Fixing WordPress
In reply to: Default visible categoriesOK, I get this:
WordPress database error: [Not unique table/alias: ‘wp_post2cat’]
SELECT COUNT(ID) FROM wp_posts /*index*/ LEFT JOIN wp_post2cat ON wp_posts.ID = wp_post2cat.post_id LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND post_date_gmt <= ‘2005-08-15 15:50:59’ AND (post_status = “publish” OR post_author = 1 AND post_status != ‘draft’ AND post_status != ‘static’) AND (category_id != 0 AND category_id != 1 AND category_id != 2 AND category_id != 4 AND category_id != 5Apparently it doesn’t like something… Googling for this error reveals only one similar post for a different plugin, which alas doesn’t even activate on my system…..
I don’t know enough of WP’s innards to figure out what it is complaining about – the SQL query seems fine…
Forum: Fixing WordPress
In reply to: Default visible categoriesI probably wasn’t clear in my original post – I am looking for a way to only show *posts* from some default categories… Trying to reduce the clutter on the main blog page….
I want visitors to see posts from two categories only in the default view, and then have one or two more categories that they have to click on to see the posts from those categories….
I’ll fish through my template to see how the posts are shown….
Forum: Requests and Feedback
In reply to: Yet another image viewerYes, the post has to have some specific magic incantations to make it work… Only the two test posts have the correct href tags. 🙂
As for the next/prev buttons, that’s version 2. Seriously, if someone could provide some guidance as to how to parse the text of the post for specific text in a plugin I would be happy to attempt it. In fact, that’s high on my list as soon as I get this working.
AFAICT, the plugin would have to parse the text of the post for the img … tags and build the links. Not hard, but I am completely new to wordpress/php/javascript, so some hints would be good.
–Yan
Forum: Requests and Feedback
In reply to: Yet another image viewerOOPS! Fixed an access problem to the php script. Apologies; I think it affected MSIE but not Firefox… Hopefully all is well now.
Forum: Plugins
In reply to: Limiting user access to certain featuresCool, thanks. I hope to have a hacked up version of the mailer up soon…. In the meantime, if anyone is interested in an image viewer/mailer, email me and I will send a tarball…. It’s definitely alpha code right now, but it works. Eventually, I hope to create a plugin….
Forum: Fixing WordPress
In reply to: Showing articles on another page (not a wordpress page)Do you have an example of this? I am looking for something like this as well….
Forum: Plugins
In reply to: Pushing images to the serverWell, if anyone is interested, I’ve now written a script that pushes images to a server. The web server must accept the PUT method.
The script also previews, scales, rotates and creates thumbnails…
Post or email me if you want a copy. The script only runs under linux….
Forum: Fixing WordPress
In reply to: Multiple languages in themesOK, I’ve tried some UTF-8 editors that I have. None will render the stuff in the theme correctly. The chars are represented as & # 1234 ; …. What is this? How do I write it?
What editors do people use to write this particular char representation?
I use linux mostly, but I have access to windowsXP, so either way will work if someone can recommend an editor to use….
Thanks.
Forum: Fixing WordPress
In reply to: Multiple languages in themesIt’s not a mistake, it’s a feature. At least for me. 🙂
I’ll try to reverse-engineer (or translate) the Russian stuff. I have UTF-8 editors, so I’ll play with it. Thanks.
Forum: Fixing WordPress
In reply to: Opening page on loginOK this is the source of my confusion…. I *don’t* want them to see the wp-admin page. I want them to see the blog. But when they log in, they are autmagically taken to the wp-admin page…. I don’t want this to happen, but I can’t find the setting that sets that anywhere….
I want a user, on logging in, to end up at the …/blog, *not* at the /blog/wp-admin, as is happening right now….
How do I change this?
Thanks,
–Yan