New version of Sch.gr Commons plugin


We updated the plugin Sch.gr Commons https://wordpress.org/plugins/schgr-commons/  to work as it should with the recent HTTPS change of video.sch.gr 

The plugin adds oEmbed support in WordPress posts, pages and custom post types for videos, presentations etc from the https://video.sch.gr, mmpres.sch.gr sites of Greek Schools Network.
There are no settings. Simply, add the URL in your content editor.
Just paste the given “Απευθείας σύνδεσμος” link from the “Κοινοποίηση” section of a video from video.sch.gr into the content area and it will by transformed to oEmbed into your post, page or custom post type.

screenshot-3

Advertisements

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


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

 

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


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


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


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


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.