WordPress Moodle integration

A.K.A. WordPress and moodle SSO (Single Sign On).

There are these two very good open source content management and e-learning products:



I find this a very interesting argument, for this reason i started writing a guide about how to make users authenticate on both systems with a single sign on.

My post is about getting things running smoothly after wordpress updates.

That could be tricky because any updat on wordpress side or on moodle side will overwrite all modification made in order to make the SSO working.

You can take a look at my post about Moodle and WordPress integration.

Let me know if this works for you and what can goes wrong so I can update information there.


Welcome Twentytherteen, just add a sidebar and show excerpt|summary in home, search and co.


Well turns out a better way of having excerpts on home page is to use the <!–more–> comment tag.

So read at your risk, or if you don’t want to edit every single post to add the tag.

I just installed and enabled this new theme Twentytherteen, very nice, clean and with this VERY BIG font that is fancy nowadays.

Only two remarks:

In order to make the theme shows the summaries in place of the full articles in Home page and other similar circumstances (search results, author page, tag page, archive page, home page) , just find and edit the file called content.php in the root folder of your theme. Easy to do with the theme editor of Word Press. And look for the following line

Continue reading “Welcome Twentytherteen, just add a sidebar and show excerpt|summary in home, search and co.”

[Solved] Woocommerce theme layout problem (all themes)

woocommerce logo
woocommerce logo

How to fix Woocommerce theme layout problem in shop page, category page, product page, images size, thumbnails size; with or without sidebar(s) in any theme.

Continue reading “[Solved] Woocommerce theme layout problem (all themes)”

Woocommerce shop page layout with Responsive By emiluzelac


Mini tutorial on how to get Woocommerce perfecly integrated into your already existing wordpress theme: this case Responsive By emiluzelac, a very good and really responsive theme for your wordpress blog.

Unfortunately this theme as a large number of themes, does not have the woocommerce optimization in order to get a perfect ecommerce wordpress platform. Infact woocommerce itself works great! It just need this little help. But, hey it is worth the effort!

Continue reading “Woocommerce shop page layout with Responsive By emiluzelac”

AwesomeAds and PHP Warning: feof() expects parameter 1 to be resource, boolean given

I’m going through error logs in order to optimize apache performance avoiding unuseful php errors and warning not visible from the “outside”. Then i’ve found an error related with this wordpress plugin called “Awesome Ads” wich can manage ads displaying on pages and post from two providers: Adsense and Chitika. This second one must be in some way related with the plugin using the Adsense popularity and at same time the lack of very good plugin for its management, to push a bit their product. Common practice. Not shareable, but common.

Continue reading “AwesomeAds and PHP Warning: feof() expects parameter 1 to be resource, boolean given”

[Solved] Apache2 access log browserToolbarGetData?v=2

Nagios3 as sentinel for your servers and clientsAs I wrote in a previous article, someone is buzzing my server with continuous requests for inexistent resources, just like /browserToolbarGetData?v=2. This could be related with a new ip address i just boght, i don’t know yet but there is no trace of this io address history, so i think i’m the first using it, so io’m prone to belive it is just a remote possibility… anyway let’s tale some countermeasures.
Continue reading “[Solved] Apache2 access log browserToolbarGetData?v=2”

Apache2 access.log problem mapi?query= cmd getCounters jsonPrefix _PHJSONPCallback_1046 &rnd=

fail2ban-in-action-for-wordpress-security-and-performancesThis webpage http://file.oboz.ua/files/vf4f51401192c57_20123223481.mail%5B1%5D is trying to make a fishing attack using this page to serve unprocessed html code in order to make something with user of mail.ru.
if you see a log entry like this: - - [02/Jan/2013:08:53:31 +0000] "GET /mapi?query=%7B%22cmd%22%3A%22getCounters%22%2C%22jsonPrefix%22%3A%22__PHJSONPCallback_47%22%7D&rnd=1357116906112 HTTP/1.1" 403 507 "http://my.mail.ru/friends?" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.12 (KHTML, like Gecko) Maxthon/3.0 Chrome/18.0.966.0 Safari/535.12"

Continue reading “Apache2 access.log problem mapi?query= cmd getCounters jsonPrefix _PHJSONPCallback_1046 &rnd=”

Securing WordPress (or any site) with fail2ban: prevent vuln scanners, flood and bruteforce attack

fail2ban-stopping-scannersHow to secure WordPress using advanced tools like fail2ban.


This rules can cut out search engines from your server and they can affects all the sites hosted on the machine you are working on. I’m writing this because at the end it turned out that a better solution to prevent distribuited flooding is to use iptables with custom rules.

Fail2ban is one of my favourite server securing software, because it not only protects against several consequences deriving from being attacked by some script kiddy, but it saves a lot of system resources otherwise wasted serving pages to bots or similar.
I just discovered an annoying and repeated access log entry on my access logs wich leads to a 403/404 (i faked a little tso it makes sense for this article) error page (forbidden) and then i decided to let a specialized software do the job instead of using wordpress plugin, wich ,would act at a php/mysql level having to generate each time server headers, and here again, wasting server resources.

Some of these log entries looked loke this: Continue reading “Securing WordPress (or any site) with fail2ban: prevent vuln scanners, flood and bruteforce attack”

WordPress plugin: Amazon Wishlist widget

amazon-wishlistI just finished this WordPress plugin for displaying a given amazon wishlist on the sidebar as widget.
It can be configured for:

  • Amazon Wishlist ID
  • Show Prices or Not
  • Use 24 hours Cached Infos or Not
  • Sort Order (date, title, price, price, lsat updated, priority)
  • Anchor Text For the button to be used to buy the item
  • Live Prewiew
  • It will adapt to any theme

Continue reading “WordPress plugin: Amazon Wishlist widget”

[Fast solution] WordPress Plugins: RSS-digest and Missing argument 2 for wpdb::prepare()

Custom Grunge WordPress LogoHere you are, after updating to wordpress 3.5 you start getting this error because of a change in prepare() function wich now expects 2 parameters instead of one only.

The solution is to Continue reading “[Fast solution] WordPress Plugins: RSS-digest and Missing argument 2 for wpdb::prepare()”