PHP webdeveloper and frontend developer



Author Archives: Steven Dobbelaere

Change the length of the excerpt in WordPress

When you want a custom length of your excerpt add this to your theme’s function.php file and you can specify the number of words used in the excerpt

Blog Read More

Get the Youtube or Vimeo image still from the video URL with PHP

This is a handy function to retrieve the youtube of vimeo still from the video URL. To use the function you just need to pass the $url parameter to the function. The $size parameter is optional and will by default return the large image. If you pass “thumb” as size it will return a small still icon.  

 

Blog Read More

Change login session time for PHPMyAdmin

To change the time when your login session gets expired go to the root of your phpmyadmin folder and find the file config.inc.php Now search for this variable -> $cfg[‘LoginCookieValidity’]  In my example I changed it to 5 hours. You should also check the session.gc_maxlifetime in you php.ini file. The lowest value of those two will be in effect.

Blog Read More
Disable file extension change warning in Mac OS X

Disable file extension change warning in Mac OS X

When you try to change a filename and you change the file extension, you get a warning by default from Mac OS X. To disable this, execute this command in your terminal:

 And after that you need to restart your Finder

 Now open up a new finder window and you shouldn’t get anymore warning from now on.

Blog Read More

Override the from email address and from name in WordPress

This is useful when dealing with contact forms within WordPress. Just add these lines to your theme’s functions.php file and replace the variables $from_email and $from_name with your credentials.

 

Blog Read More

How to do a network IP range scan with NMAP

First of all you need to install NMAP which you can do from this website http://nmap.org/download.html#macosx After running the  NMAP installer you should restart your shell. You can do a network ip range scan like this

 This wil scan the whole ip range of 192.168.2.0 to 192.168.2.255 If you want to specify a range like 192.168.2.1 to 192.168.2.200

 This…

Blog Read More
Installing and configuring the Oh My ZSH shell

Installing and configuring the Oh My ZSH shell

Installation I love using Oh My ZSH in my terminal to use with GIT. This works faster than GIT UI programs like Tower. First of all you need to install ZSH and afterwards install Oh My ZSH. The minimum zsh version required for Oh My ZSH is 4.3.9 Install ZSH first: Git is required. If you don’t have git installed…

Blog Read More

Change domain of a wordpress website

What I find a major hassle when dealing with wordpress websites is to transfer the website from a development environment to a production environment. The domain you use in a development stage will be different from the one of the production website. Therefore you have to alter all the urls within the posts, the links of the posts and the…

Blog Read More

Customize the wordpress admin and login page

Customizing the login section If you want to remove the standard WordPress logo from the admin login section you’ll need to load a new CSS file and override the standard login CSS styles.

 This will load the file login.css from your active theme folder. You now can override the standard css.  To remove the WordPress logo from the login…

Blog Read More



s