phpBB: set gravatar as default for new users

Self reference: edit /includes/function_user.php as follows: ‘user_avatar’         => strtolower($user_row[‘user_email’]), ‘user_avatar_type’      => ‘avatar.driver.gravatar’, ‘user_avatar_width’      => 60, ‘user_avatar_height’   => 60, also edit /phpbb/avatar/driver/gravatar.php and change: $url .= ‘?s=’ . max($row[‘avatar_width’], $row[‘avatar_height’]); into: $url .= ‘?s=’ . max($row[‘avatar_width’].”&d=identicon”, $row[‘avatar_height’]); so users who are not registered with gravatar get an automatically generated icon istead of […]

Add custom social media share icon buttons in phpBB

Self reference article: how to add responsive social media share icons on your forum for each page. HTML to add to /styles/stylename/template/over_header.html, right under <div id=”page-header” class=”page-width”> <div id=”socialshare” data-expendable=”yes”> <div> <a class=”twittersharebutton” href=”{SOCIAL_URL}” target=”_blank”>t</a> <a class=”facebooksharebutton” href=”{SOCIAL_URL}” target=”_blank”>f</a> <a class=”googlesharebutton” href=”{SOCIAL_URL}” target=”_blank”>g</a> </div> </div> CSS to add at the bottom of <head> section of […]

Dominant color of image as background of DIV, all in CSS

I was trying to do something fancy, and have a grayscale image turned into colored mode on mouse hover, together with showing a popup… and I obviously wanted the popup background color to be related to the image that had just been coloured up. There is a precise javascript function that does that, it’s the […]

403 Permission denied on Apache in Debian/Ubuntu with changed document root

I had just made a brand new installation of both Ubuntu trusty and vivid and Debian jessie (tried all of them) on my android phone with Linux Deplow, and installed the LAMP stack via SSH. I wanted Apache to serve files decrypted from an EncFS mount, so I found easier to move the DocumentRoot to […]

AFWall+ and Linux Deploy, no internet access unless firewall is disabled

This is a personal reminder and also an easier-to-find heads up to those looking for a solution: if you installed linux on Android via Linux Deploy, and find that, no matter how you set rules on AFWall+ you can never get internet to the mounted linux image, unless you disable the firewall altogether (not recommendable […]

Enable Dolby Digital Live Surround 5.1 in Far Cry 4 and Watchdogs

Self reference, and also a heads up for those people looking into listening to 5.1 surround sound in Far Cry 4 and Watchdogs which usually play no sound when Dolby Digital is enabled. This was tested and works in my configuration using a Sound Blaster USB Surround Pro X-Fi, and doesn’t involve any patch or […]

Samba share connection doesn’t accept user:password login from Windows

This is mainly a self-reference for when I find myself reinstalling Samba on my home server, if something goes wrong and the previous system got corrupt, or if I am upgrading something. It happens, ALWAYS, that I setup a share with a login, which is the same of the user on the server the share […]

Change the user Transmission Debian daemon runs under and avoid warning message

I am writing this post also for personal reference (and currently I am writing in bare HTML since my WordPress installation lacks an updated multilanguage plugin to be able to use the WYSIWYG editor). I was moving my home server from a slow Raspberry PI to a way faster Cubieboard 2, and got to reinstall […]

Cyclic sound MP3 audio recording in ubuntu

I work in a relatively safe environment, yet it may very well happen that I need to prove something that someone said in my office, so I can hold it against them when the time comes. My laptop is always turned on, so I could use it to record the environmental sounds around it, with […]

Tags: , , , , ,

Howto batch watermark resize convert crop images and pictures

Download IrfanView (if you already don’t have it installed, it is an awesome image viewer, and great for basic editing with its Paint plugin, installed by default) After opening the main viewer window, go to File>Batch Conversion/Rename What opens is a window crammed with options and tools, with which you can: Convert between different formats […]