Tuesday, May 17, 2011

Customize the Joomla offline login redirect url

First off to customize the offline login form for joomla change the "Site Offline" to yes in the Global Configuration-> site tab.

Once you make this change the website will require a login to view the site. To customize this page copy the offline.php file to templates/YOURTEMPLATE folder. Then feel free to add your graphics, tweak the css and heck even add some animation from jquery or perhaps a slideshow.

For my project I needed to have a splash html page before the website login. This causes issues because the index.html page is loaded as the 'URL/' inestead of the index.php. Basically when someone logged in they would be redirected to the splash page. Well heck that ain't gonna work...

So to resolve the issue you need to find the line in the offline.php file that has the base64_encode(JURI::base()). Replace the JURI::base() with the url you need to redirect to i.e. base64_encode('http://YOURDOMAIN.com/about')


Stumble Upon CodePyro

1 comment:

Anonymous said...

Hublot wrist watches tend to be acclaimed for his or her various replica watches which arranged all of them very far through abounding additional types of wrist watches. Every rolex replica is done having a turning deejay agreement that dependable as well as creative. It offers the replica watches sale actual individual by having an recommend method to admeasurements period. The actual suitable replica watches uk has got the hr fight it out which orbits concerning the strong history. The actual Hublot view obvious utilizes hard disks rather than this particular hublot replica sale method of creating wrist watches. The actual custom Reproduction Hublot Wrist watches for sale tend to be the best options associated with reproduction rolex replica sale on the web.

Post a Comment