Archive for the ‘Uncategorized’ Category

How to know what functions are hooked to an action/filter?

December 21, 2017

A very useful function if you need to know which functions are hooked to a particular hook and where the functions are located. Found in stackoverflow, answer of Danijel 

https://stackoverflow.com/a/26680808

 

Advertisements

Override bp-signups view with pending users view from ‘new user approve’ plugin

December 11, 2017

Using BuddyPress and New user approve plugin is a bit confusing for the admin, cause the “pending” users link on top of  users table in admin page, points to BuddyPress pending users. But when the ‘New user approve’ plugin is activated, the pending users are shown in a different page.

In order to fix the link “Pending” displayed on top of the users table, the following filter is needed.

WordPress 4.4 “Clifford” – Fully translated in more than 40 languages

December 9, 2015

At https://wordpress.org/news/2015/12/clifford/ you can read all the new features version 4.4. has to make your site more connected and responsive.

Also this version is already available in more than 40 languages (if you count all English “versions” too).

Among them is also the Greek version!!! I’m so proud to be part of the Greek translation team

Thanks to all teammates and our editors ♥ ♥ ♥

 

 

Make poedit work correctly for Buddypress

February 17, 2014

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

MySql cache tuning

October 17, 2013

I’m not a db administrator, but the only sure thing I know is that having a  wordpress multisite + buddypress installation with more than 10.000 users is very heavy task for a single database.

Right now we use a plugin (multidb) and have our database spilled in 17  databases spread in 4 database servers.

But, there are still cases, where the mysql is slowing down the site .

So we are always on the search for finding tips on  improving the mysql performance (If you have some tips please share).

Recently we noticed that in the slow_queries.log that the same query was  appearing again and again. This was strange, because the query should be cached on the 1st time.

So, this made us wonder if the MySql Query Cache was misconfigured.

A very usefull presentation of percona about MySql Query Cache http://www.percona.com/files/presentations/MySQL_Query_Cache.pdf helped us to spot what was wrong in our installation.

It turned out that mysql cache was fragmented. In the above presentation a nice “Tuning the Query Cache” helped us to make some configuration decisions.

We ‘ll wait and see if the decisions  were in the right direction.

 

 

BuddyPress 1.8 “Di Fara” is available

July 18, 2013

New version of Buddypress 1.8 is now available on http://buddypress.org/download/
More about this version of Buddypress on http://buddypress.org/2013/07/buddypress-1-8-di-fara/

I’m proud as a peacock that I’m also mentioned to the credits even for that small patch I submitted

Buddypress Group Documents for BP 1.7 and WP 3.5.1 – Version 0.6

June 4, 2013

An updated version of Buddypress Group Documents for BP 1.7 and WP 3.5.1 in available. 

in this 0.6 version the changes are:

  • Add settings link on plugins page
  • Fix the admin menu link for single wp installation

Download link is available at https://lenasterg.wordpress.com/2013/04/30/buddypress-group-documents-for-bp-1-7-and-wp-3-5-1/

How to Fix TimThumb Theme Script Security Exploit

February 1, 2013

An article about that

http://wpmu.tripawds.com/2011/08/03/how-to-fix-timthumb-theme-script-security-exploit/

Creating a Embeddable Content Plugin for WordPress

November 22, 2012

From smashingmagazine.com

Creating a Embeddable Content Plugin for WordPress. By Sameer Borate

Our goal in this article is to create widget code that a user could insert in their website to display a list of recent posts from the parent website. Of course, this can also be easily accomplished using RSS, but this is just an example to show the technique. In reality, you would use it for more interesting purposes, like sharing popular product images if you are running a WordPress e-commerce website.

Another update on Buddypress Group Documents http lenasterg…

May 14, 2012

Another update on Buddypress Group Documents https://lenasterg.wordpress.com/2012/04/17/buddypress-group-documents-for-bp-1-5-and-wp-3-3/.
Now at version 0.4.3.3. Again Chris Keeble (http://keeblesmith.com) made a great work.

%d bloggers like this: