Wordpress

Changing your theme

Posted on

Sometimes you just want to make smaller changes to your theme, it might be a logo that should be different, or a background color. Some themes doesn’t allow you to do this under Appearance – Customize, only in their PRO version. You could do it by altering the themes files, but if you are runnuing […]

Wordpress

Piwik statistics

Posted on

Apache

Rewriterule HTTP_HOST in Apache

Posted on

We had to rewrite some specific domain names in our WordPress multisite. Most of our domains are on this form: something.w.uib.no In our case that is nice, because we also have a valid ssl certificate which supports *.w.uib.no. But in addition we have other domain names on the form: something.uib.no which we don’t have a […]

Wordpress

Create a PDF book of your WordPress blog

Posted on

If you are thinking of creating a PDF file from all your posts in your WordPress blog, you can try this: First, use the Tools – Export to create a xml file. Save it. Then go to: http://blogbooker.com/wordpress.php Upload your xml file, and Blogbooker will create it, and you can download the result afterwards. Here […]

Wordpress

Make a “copy” of an existing blog

Posted on

Someone asked me how they could make a “copy” of their existing blog. This is easy if you use WordPress export and import. Here at University of Bergen, people can create their own blogs at: https://w.uib.no/sso/ After creating the new blog, then posts, pages and other stuff can be exportet from the old one under […]

Wordpress

Remove “Leave a Reply” box?

Posted on

If you don’t want to have comments from people and potential spammers, you can remove the comments from all your pages. Here is how to: Go to admin Dashboard >> Pages. Select All at the top of the listings. Bulk Actions >> Edit >> Apply When the options box appears, choose Comments >> Do Not […]

Wordpress

Facebook wall in WordPress

Posted on

I had some issue to get this one working, but after some tips from Takanudo, see comments below, it is now working like charm 🙂 If you get: “Facebook-The global ID is not allowed. Please use the application specific ID instead” you should see the post comment’s below from Takanudo. I needed to display recent […]

Wordpress

Machform javascript embed form in wordpress post

Posted on

If one have a form in Machform, one can add the form in a WordPress Post or Page with a simple javascript embed:

Which will give the form: [raw] [/raw]

bash

Finding spam users

Posted on

We had a lot of spam users in our multisite wordpress system. This was because we had self-registration enabled for a period. Not a smart thing to do… anyway, I wrote a bash script in order to find which users id’s from the Mysql database that could potentially be spam users. With this list of […]

Wordpress

WP CLI

Posted on

WordPress command line is a must-to-have if you are running a WordPress site or multisite. If you know a bit about crontab and bash scripting, you can easily make an automated  job that will upgrade all your plugins and themes on a regular basis. But be aware, some plugins and themes might break, so you […]

bash

WordPress Brute Force attack spring 2013

Posted on

For those who are running a WordPress site today at May 2013, you should know about this on-going BruteForce attack against many WordPress sites around the world. http://www.bbc.co.uk/news/technology-22152296 Here at University of Bergen, we are also working on to protect our multisite WordPress installation. How is this “attack” performed? There is a so-called “botnet”, where […]

Wordpress

Multisite 3.5.1 Elvin

Posted on

We are upgrading to WordPress Multisite 3.5.1  tomorrow. In addition we are also upgrading 20 plugins and 7 themes. This time we hope that we don’t experience the problem with the Atahualpa theme, and we hope everything goes well. Good luck 🙂 Details: https://rts.uib.no/projects/wp