Nav menus administration. Open all metaboxes by default


When you have a multisite installation, it is possible that the bloggers you host. have trouble to create menus for their blog.  The default behavior of wordPress in wp-admin/nav-menus.php is to have hidden the posts, tags and formats metaboxes, which make the process of finding the things they want to include in the navigation menus more difficult. The following snippet opens by default these metaboxes in wp-admin/nav-menus.php.

Just paste the following in your /plugins/custom.php or /plugins/bp-custom.php file.

https://gist.github.com/lenasterg/64989b9711273fbd9844

BP Groups Suggestions plugin v. 1.3


lenasterg:

New version of BP Groups Suggestions plugin available at https://wordpress.org/plugins/bp-groups-suggestions/
Minor fix.

Originally posted on WP MS + Buddypress experiences:

Some time ago I tested the ‘BP Groups Suggest Widget’ (http://buddydev.com/plugins/bp-group-suggest/)  from  Brajesh Singh, which gave me the idea to extend it, since I needed the groups suggestion to also take into account more user data.

So the result, was BP Groups Suggestions plugin.

The plugin adds “Suggested groups” functionality into Buddypress groups.

By default, it uses the user’s friends’s groups in order to suggest groups of the login user, but this can be extended throught available filters.

It adds a “Suggested group” tab into the Groups Directory page, and also a widget “Suggested groups” is available.

Image

The login user can hide groups from suggestion list, by pressing the “Remove group”, either through the widget, the “Suggested groups” tab or by the group’s homepage. Also the login user can reset the hidden suggestion list. The plugin uses various ‘filters’ so a developer can extend it, for example to include admins…

View original 18 more words

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