If you need access to a website, built on WordPress, but you have SSH access only, you could still cope with the situation with a few line in the command line. Here are the steps you need to follow: Find the database credentials. They are usually in wp-config.php file under the web-root directory of your […]
Category Archives: Miscellaneous
Solution for cPanel and WHM being stuck on updates
It happens, although pretty rarely, for updates of WHM and cPanel to fail. Then you can access any of their pages and you are prompted to reload the page as if this would fix it. Solution for me was just to run the following command as root in a SSH session on the server:
1 |
/usr/local/cpanel/scripts/check_cpanel_rpms --fix /scripts/autorepair fix_duplicate_cpanel_rpms |
My […]
Gifcast – easy GIF screencasting for Linux
I recently needed to record my screen and output it to a .gif file. I know it’s a weird thing to do – compared to webm video for example, gifs are way bigger in size, way lower quality and don’t have sound. So.. why? Well, mostly because in most cases GIFs are treated as images(because […]
BuddyPress forum topics don’t show up
As the last year’s Vlado was not wise enough to blog about this little problem that occurs after BuddyPress updates or server migrations, he is doing it one year later, when he comes again to such a problem. all forum topics are missing; creating a forum topic doesn’t show up; checking topics from a specific […]
Getting the BuddyPress user profile link
For an author’s profile link, use
1 |
bp_core_get_user_domain( $user_id ) |
to get the URL, and
1 |
bp_core_get_userlink( $user_id ) |
to get an HTML link element, including display name. For the xprofile data, use
1 |
xprofile_get_field_data( $field, $user_id ) |
$field can be either the name of the field (like ‘Biography’) or the numerical field id.
Getting a specific URL parameter in jQuery
1 2 3 |
function getURLParameter(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)','i').exec(location.search)||[,""])[1].replace(/+/g, '%20'))||null; } |
Post don’t get sticky
I had this case that posts couldn’t get sticky after I check them to be sticky. Saving the changes says they are sticky, but when reloading the page, this turns out to be a big fat lie. Trying to remove “stickiness” from other posts wasn’t working either. Probably I must mention that this is a […]
Illuminate WordPress Theme by siiimplethemes (ex MuThemes)
Link: http://themeforest.net/item/illuminate-minimalist-creative-wordpress-theme Authors: http://themeforest.net/user/Siiimple Pros: Cons: not quite finished multi-language support (you need to add the text domain in functions.php); slider on front page doesn’t work on IE7, although stated to do so; styles of pages and posts does not support lists, image aligns and probably other styles too;
Cannot find old WordPress plugin?
How to find old WordPress plugin? Look for it in the repository! Seriously! I was looking for XML Google Maps, as one of the best plugins out there for google maps, routes and stuff… so after I couldn’t find it through the search on http://wordpress.org/plugins, I checked if the repository still remembers it: http://plugins.svn.wordpress.org/xml-google-maps Obviously it […]
Emails from the site are not received at the Google Apps mailbox of the same domain
There is a common problem with most hostings, when you setup Google Apps for serving the emails for your domain and you expect to receive notifications from your web application in the mailbox. The issue is caused by the “Local delivery” case. When sending emails from the code and the target is a mailbox in […]