BuddyPress Hashtags LS – version 1.2


I just updated the Buddypress Hashtags plugin.

In this version 1.2 two options were added in the Buddypress Hashtags Settings page:

1. Display or not the “#” infront of the hashtags in widgets and in hashtag cloud.

2. (For multisite). If the blog’s post’s taxonomy (categories, tags) should also included in the hashtags list.

 

“BuddyPress Hashtags LS ” is available at https://github.com/lenasterg/ls_bp_hashtags

 

In general, the Buddypress Hashtags LS plugin, “mimics” the Twitter hashtag behaviour, allowed the users to use # to tag a topic into there activity update and into their blog’s post (for multisite installations).

  • it supports unicode ex. Greek language
  • it provides a “Popular terms” widget.
  • it provides a shortcode [ls_bp_hashtags] which accept same arguments as wp_generate_tag_cloud() function.
  • in multisite installation it also includes the tags and categories of each post
  • in multisite installation, if a hashtag is inside the post content it also has link to the related activity.
  • it doesn’t alter the activity contents instead all hashtags are stored in a new db table in order to make lighter queries in activity table

I have tested it with BuddyPress  2. The base functionality seems OK.

It would be great if someone try it or even contribute to it.

The alpha version of “BuddyPress Hashtags LS ” is available at https://github.com/lenasterg/ls_bp_hashtags

 

Keep in mind that it is still under heavy developement so don’t use it in a production site.

The plugin creates a new db table, which is not deleted when the plugin is deactivated.

 

 

Script for deleting autodrafts, post revisions and trashed posts from multisite & buddypress


1. Backup database first.

2. Create a file in root wordpress directory, with the  code of https://github.com/lenasterg/wordpress-buddypress-multisite-maintainaince/blob/master/clean_unused_posts.php.
3. Did I say BACKUP database first?
4. Run the file  once.
5. Delete the file in order to avoid accidentally use.

 

BuddyPress Hashtags LS


I’m in a process of making a hashtag plugin, based on BuddyPress Activity Stream Hashtags.

The Buddypress Hashtags LS plugin:

  • it doesn’t alter the activity contents instead all hashtags are stored in a new db table in order to make lighter queries in activity table
  • it supports unicode ex. Greek language
  • it provides a “Popular terms” widget.
  • it provides a shortcode [ls_bp_hashtags] which accept same arguments as wp_generate_tag_cloud() function.
  • in multisite installation it also includes the tags and categories of each post
  • in multisite installation, if a hashtag is inside the post content it also has link to the related activity.

I have tested with the latest BP 2 RC. The base functionality seems OK.

Things which need fixing are:

  • Unistaller function
  • Popular terms” widget. Add parameters
  • Related Activity listing. Find a way to display activities from private or hidden groups.
  • Create a Activity tab “Terms sitewide”
  • Create a “similar activity” widget for use under a blog post in case of multisite installation.
  • “Trends”. This is a difficult one :-)

It would be great if someone try it or even contribute to it.

The alpha version of “BuddyPress Hashtags LS ” is available at https://github.com/lenasterg/ls_bp_hashtags

Keep in mind that it is still alpha version so don’t use it in a production site, cause:

1. The plugin creates a new db table, which is not deleted when the plugin is deactivated.

2. The plugin alters the activity contents by adding a link to each tag, prior inserting into the activity table.  This link don’t change when the plugin is deactivated.

 

Make poedit work correctly for Buddypress


I tried to create Greek .mo file for Buddypress using PoEdit and it seemed to ignored plural forms for the _n keyword which is used in some places e.x. _n( ‘Viewing group %1$s to %2$s (of %3$s group)’ , ‘Viewing group %1$s to %2$s (of %3$s groups)’ , $total , ‘buddypress’ ) 

Solution on that was simple, and found at http://stackoverflow.com/questions/12184978/poedit-doesnt-recognize-n-plurals.

Just go to the Catalog properties and at the tab “Sources keyword” add the keyword
_n:1,2

Complete (  Current list of the keyword I use for the wordpres/buddypress translation is:

_e
__
_n
_n:1,2
_nx
_nx:1,2
_ex
_x:2c,1