About Agbonghama Collins

Agbonghama Collins is a webdeveloper and an internet geek. I love writing and sharing the little idea & information i know. Hope you enjoyed my Article.

Follow me on Twitter, add him on Facebook or on Google+

How to Download a Given Folder in a Github Repository via SVN

There are times we download or clone a full GitHub repository when all that is needed is a given folder in it.Say (like me) you use PHP Code Sniffer Tool to analyze and detect violations of a defined coding standard in PHP code and you've decided to include PSR2 standard to your list of … [Read more...]

Adding Custom Admin Notices & Error alert in WordPress

When developing plugins for WordPress, I seldom use the Settings API to build the plugin settings page instead, I build it from ground-up utilizing the Options API to store the plugin data to the database.Not quite long, I discovered I could use the function add_settings_error() — a member of … [Read more...]

Set Default Editor Mode (TinyMCE / HTML) in WordPress

I recently built a plugin where I needed WordPress to by default always set its editor to Text (HTML) mode and not tinyMCE.This is achievable using the undocumented filer wp_default_editor.To make TinyMCE always display by default, use the code below.[php] function set_default_editor() … [Read more...]

Vagrant Fix: `parse': (<unknown>): found a tab character that violate intendation while scanning a plain scalar

In case you haven't heard, I have move my PHP development from XAMPP to Vagrant, Laravel homestead box to be precise. A post on getting started with vagrant coming soon.As always whilst starting a new project, i added the site to Homestead.yaml, did Vagrant up and got the following error … [Read more...]

How to Upgrade XAMPP to a Newer Version

XAMPP is a popular PHP development environment for creating a local LAMP stack.In this succinct tutorial, I will show us how to upgrade XAMPP for Windows to a newer version in few steps.Firstly, download and install the latest version of XAMPP in a new installation folder.Say your … [Read more...]

Remove Sensitive Data and Commits from Git History with BFG Repo-Cleaner

Earlier today, I accidentally committed a sensitive data of a project I was working on to a public Github repository.To remove every trace of that data on Github, I had to remove all history of the file that contained the said data.In this succinct article, I will show us how to remove or … [Read more...]

HybridAuth Fix: Authentication failed! Facebook returned an invalid user id

In a project I was working on this past weeks, I was tasked to integrate social network login functionality to the site.To reduce time required to implement the social login of each social networks, I opted to use HybridAuth - a PHP library that enable developers to easily build social … [Read more...]

Setting Up Xdebug in XAMPP with PhpStorm

Xdebug is a PHP extension which provides debugging, profiling, code coverage, stack traces and many other capabilities.In this succinct tutorial, I will show us how to set up Xdebug that ships with XAMPP in PhpStorm. See the steps below.Open up php.ini (located at C:\path-to-xampp\php) … [Read more...]