elizabethcb
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WP-O-Matic] Added functionalityHiya,
I got the ok from the plugin author to release my changes. I’ve gotten enough data to feel comfortable with the duplicate posts fix. http://thedailyglobe.com has 100,000++ posts, so I have plenty of data now. The latest posts have all tags stripped, except for what WordPress puts back in. I’m not happy with it, but there’s a lot of broken tags in feeds that break page layouts. There’s one feature that I’ll either have to remove or option out. It automatically adds a flickr image if there’s no image present in the post. It’s a very specific feature for this site. I can see it’s application to other cases, but I think it’ll have to be removed for release.
Hopefully, I can get to putting it up on my website and adding it to github this week.
Forum: Plugins
In reply to: [Plugin: WP-O-Matic] Added functionalityDavid,
Duplicate post fix will be sometime this week. I have to merge those specific changes with an original, as mine is very modified. I’m been bug squashing the past week, but I haven’t seen any duplicate posts!
Kagliostro,
Categories for each feed is a little out of scope of my changes. I just have each campaign named for a category. Tags though. That’s doable. I’ll see what I can come up with.
Forum: Plugins
In reply to: wpomatic duplicate posts fix for wordpress 2.8?Daviddicks,
Replied at the topic: http://wordpress.org/support/topic/316385Kiwipearls,
The problem with automatic tags and feed pulling, is that feeds have all sorts of random things in their categories. I’ve seen 6 digit numbers, 5 words, the name of the author. It’s unfortunate, but using the feeds info is pretty gross.What is the difficulty you’re having with tags?
Forum: Plugins
In reply to: [Plugin: Simple Tags] Autotags not being added to posts created with wpomaticMy initial exam shows that things should be doing what they’re supposed to. WP-O-Matic uses WordPress’s wp_insert_post which runs the appropriate hooks the Simple Tags uses. The only thing I can think is that if you’re using a cron job to pull posts, WordPress hooks aren’t run.
In laymen’s speak, Simple Tags doesn’t know it needs to add auto tags if WP-O-Matic is run via a cron job.
If it’s not run via a cron job, let me know, and I’ll look into it some more.
Forum: Plugins
In reply to: wpomatic duplicate posts fix for wordpress 2.8?I jumped the gun a little, it mostly worked, but I didn’t have enough data. Now that I’m getting about 100-200 posts an hour, I have a lot more data to go on. I’ll be sure in a day or two weather it’s a fix.
I’m thinking of forking this project and releasing it.
I’ll get a plain copy to diff, and see if I can’t find a nice middle ground between my very custom changes and public changes.slatetechpdx.com will eventually have a page for plugins and a contact form.
Please feel free to email me.
elizabeth at slatetechpdx dot com
Forum: Fixing WordPress
In reply to: WP-O-Matic Post Title Links to SourceActually, add_action runs add_filter in WPMU trunk wp-includes/plugin.php:
271 function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) { 272 return add_filter($tag, $function_to_add, $priority, $accepted_args); 273 }lines 324-326 for WordPress trunk.
So that won’t do anything.
It’s a pretty straight forward action, but it does depend on being inside “The Loop”.
Forum: Plugins
In reply to: WP-O-Matic – Article links {permalink} are not displayingWithin the WordPress Loop:
<?php $perma = get_post_meta( get_the_ID(), 'wpo_sourcepermalink', 1); if ($perma) { ?> <a href="<?php echo $perma; ?>">Original Story</a> <? } else { ?> .... <? } ?>Forum: Plugins
In reply to: wp-o-matic RSS plugin being sold by ownerI’ve been developing with this plugin. I believe I’ve licked the duplicate posts bug.
I’ve made some site specific changes, so I can’t do a straight diff. In a couple more days, I should have clear data on the duplicate bug.Are there any other bugs that people have found that I can iron out while I’m at it?
elizabeth at slatetechpdx dt com
Forum: Plugins
In reply to: wpomatic duplicate posts fix for wordpress 2.8?I believe I solved the duplication problem.
For some reason the isDuplicate function doesn’t quite catch a duplicate.
I added a unique index to the hash column in the campaign_feeds table. I then tested for the insert and if it returns false, I don’t insert the post to wordpress’s posts table.
In processItem had to move:
$test = $wpdb->query(WPOTools::insertQuery($this->db[‘campaign_post’], array(
‘campaign_id’ => $campaign->id,
‘feed_id’ => $feed->id,
‘post_id’ => $postid,
‘hash’ => $this->getItemHash($item)
)));if ($test == false)
return false;
to above this:
// Create post
$postid = $this->insertPost(
$wpdb->escape($item->get_title()),
$wpdb->escape($content),
$date, $categories, $campaign->posttype,
$this->feeduser, $campaign->allowpings,
$campaign->comment_status, $meta);// If pingback/trackbacks
if ($campaign->dopingbacks) {
$this->log(‘Processing item pingbacks’);require_once(ABSPATH . WPINC . ‘/comment.php’);
pingback($content, $postid);
}also, I had to add the if $test statement to prevent lasthash from being overwritten:
// Processes post stack
foreach($items as $item) {
$test = $this->processItem($campaign, $feed, $item);
if ($test == true)
$lasthash = $this->getItemHash($item);
}Also, in the activation section I had to change campaign_feed’s hash column definition from:
hash varchar(255) default ”,
to this:
hash varchar(255) default ” UNIQUE,which adds a unique constraint to the insert statement.
I would add line numbers, but I’ve switched a bunch of other stuff around. It wouldn’t be accurate.
Note:
With the use of dbDelta, it won’t drop the table if it already exists, so deactivation and activation won’t work. Also, if you do drop the table the data already stored will be removed. However, since the only thing that needs to be changed is an add index, if you have access to your db at all, it is simple to make the modifications. Especially, with something like PHPMyAdmin.
All you do is find the table, click add index, name it hash or whatever, select unique from the dropdown menu and click save.I’ll keep an eye on this thread to see if anyone has any problems or suggestions.
Done with WPMU 2.9.1
Forum: Plugins
In reply to: WP-o-matic Plugin does not workWas there any error in your logs? What os is your computer? What version of wordpress are you using? Adding a campaign has nothing to do with cron.
Forum: Plugins
In reply to: [Plugin: Front End Editor] the_content() field not editingOops. WordPress MU 2.9.1 PHP 5.something
Forum: Plugins
In reply to: [Plugin: Front End Editor] Plugin page disappeared after activationHilariously enough, upgrading to wpmu 2.9.1.1 did the trick. As I said above, there is little difference between the files I mentioned above, but for whatever reason, the plugin activates.
I have another problem, which I’ll start a new thread with.
Thanks for your help and quick replies!
Forum: Plugins
In reply to: [Plugin: Front End Editor] Plugin page disappeared after activationThanks for that! I guess, I should use the debug feature more often!
Error:
PHP Fatal error: Cannot redeclare debug() (previously declared in /my/wordpress/directory/wp-content/plugins/front-end-editor/scb/Util.php(79) : eval()’d code:3) in /my/wordpress/directory/wp-includes/rss.php on line 1375Interesting. How does scbUtil::debug() conflict with the debug in rss.php? Also the function gets eval’d even with the if (! function_exists($func) declaration. It looks like both WPMU 2.9 and 2.9.1.1 have the debug function declared in rss.php
line 802
http://trac.mu.wordpress.org/browser/trunk/wp-includes/rss.phpApparently, the powers that be feel that file is somewhat broken. Do you have a fix?
Thanks
Elizabeth
PS. I fixed the error I was getting with the other plugin I was working on though. Thanks for the WP_DEBUG suggestion.Forum: Plugins
In reply to: [Plugin: Front End Editor] Plugin page disappeared after activationThe only plugin active on that blog is Front End Editor. Though I have several plugins active throughout. Add Custom Blog (my own plugin which works fine), Events Manager, Feed WordPress, OpenID, Session Manager, and TDO Mini Forms.
Again, these are active on other blogs, though my plugin, Events, Feed, OpenID and Session are “activated site wide”.
On a possibly related note. A script I’m converting to a plugin seems to be causing the same thing. Blank backend, no Apache error log entries.
thanks for the help Scribu!
Forum: Plugins
In reply to: [Plugin: Front End Editor] Plugin page disappeared after activationFront End Editor, like it says in the title.