Tag > tip

13 Dec
2016

laravel token mismatch exception

Redirect Laravel Token Mismatch Exception error page

laravel TokenMismatchException screen

Every Laravel 5.2 developer has at some point seen the above default grey ‘TokenMismatchException error page’, which is usually caused when a protected page (which the user needs to be logged in to view) has not been refreshed for a long time and the users login session has timed-out. So the best option is to make the url redirect instead of showing this error message

So have you been wondering if there is anyway to customise the page or redirect to the default login/home page? Well it’s actually fairly easy to sort with a few changes to some of the default setting and files.

Continue reading…

Posted in: <Laravel>

03 Sep
2013

jquery icon grafxflow

Prevent Empty Searches in WordPress Revised

I had an issue in WordPress where blank searches were still being passed and bringing back results. So I had to find a way of stopping it from being submitted. Searching the web I found this nice little solution/snippet of code from (PAGE/URL NO LONGER EXISTS): http://callmenick.com/2013/04/24/prevent-empty-searches-in-wordpress/

Continue reading…

Posted in: <WordPress>

12 Sep
2012

joomla icon grafxflow

Make a menu item none selectable/linkable in Joomla

You have a menu option which has several submenu options, but you don’t want that menu option selectable or linkable, only the submenu options. So how to do it.

Continue reading…

Posted in: <Joomla>

03 Sep
2012

wordpress icon grafxflow

WordPress search older posts goes to home page

I recently had an issue when doing a search on a WordPress site. It worked on the first page of results but once I clicked the Older posts it would take me back to the home page.

Continue reading…

Posted in: <WordPress>

smart search