Are the following lines in your twitter plugin to remove the username
from the title?
$twitter_username = explode('/', $original_publisher);
$twitter_username = $twitter_username[3];
//remove username from front of posts
$item->item_title = trim(str_replace($twitter_username.':', '',
$item->item_title));
There's likely a problem with how the title's being stored, echo out
the title in the pre_display function eg. add the following line to
pre_display() fuction...
var_dump($item->item_title)
So you can see if the @ sign really is the first character in the
item_title string.
On May 12, 2:24 pm, "!!blue" <
zob...@gmail.com> wrote:
> I'm trying to filter out twitter entries with certain links and those
> that are @ replies.
>
> This block of code in the twitter plugin is not working in the pre_db
> part:
>
> <code>
> //filter out @replies (set as unpublished)
> if (substr($item->item_title, 0, 1) == '@') {
> $item->item_status = 'draft';}
>
> if (stripos($item->item_title, '
http://blip.fm/') > 0) {
> $item->item_status = 'draft';}
>
> if (stripos($item->item_title, '
http://twitpic.com/') > 0) {
> $item->item_status = 'draft';}
>
> if (stripos($item->item_title, '
http://ff.im/') > 0) {
> $item->item_status = 'draft';}
>
> if (stripos($item->item_title, '
http://tumblr.com/') > 0) {
> $item->item_status = 'draft';}
>
> </code>
>
> The code is from this thread:
http://groups.google.com/group/sweetcron/browse_thread/thread/66f9dae...