View Full Version : joomla 1.0.13 - redirecting to a link

02-26-2008, 05:42 PM
ok enough with the laughter...

so I'm using joomla 1.0.13 and what I'd like to do is this...

currently if you attempt to view a page and you have not logged in you will see a message that says: You are not authorized to view this.

in the /languages/english.php file I found the following line:

DEFINE('_NOT_AUTH','You are not authorized to view this.');

which I'm assuming is the line I want to change...

what I'd prefer is instead just saying you're not authorized, provide a link to the login page

we've tried putting an <a href> but the double slash following http: caused the rest of the address to be commented out

we've tried using $link(blah) as well as $html->(blah) and they produced white pages of course

also...if anyone has any suggestions on a good developer book for joomla 1.0 and I don't mean how to build a website using joomla (I have 2 of those :) ) - I've been able to locate any and it would really come in handy as this post demonstrates

any and all help is appreciated!

02-26-2008, 06:16 PM
DEFINE('_NOT_AUTH','<a href="/errorpage.php">Login Here</a>');
You don't need to use the absolute path. The leading foward slash tells the browser to go to the root of the site.

However if you still want to use the full url then you need to escape the slashes

define('_NOT_AUTH','<a href="http:\/\/somesite.com/errorpage.php">Login Here</a>');

02-26-2008, 06:34 PM
escape the slashes!!!!!