Custom "you must me logged in to view..." message page?
Posted 16 years 10 months ago
I haven't put a lot of thought into this, but I am wondering if it is possible to develop a custom message page for some of the Joomla (and Joomla extensions) messages that appear with like a 8pt font in the content area, like 'You must be logged in to view this resource" or whatever the message is?
I would envision it's pretty easy, insofar as I develop a page with some fancy dancy graphics and some verbose text, then find the line in the core that generates this permissions notice. For CB, for example, it often shows "Please login or Register to view or modify your profile." I would like this to go to a page that is a little more professional and contains a lot more information, if that makes sense.
Is there a low-overhead extension out there that perhaps handles this, or a guide out there that tells me precisely where to look for the redirect/warning messages where I could change the URL/message/whateveritis.
Re: Custom "you must me logged in to view..." message page?
Posted 16 years 10 months ago
James S! wrote:
For that page, you could just edit the /language files to whatever you want
Thanks, James. Yea, I could put some text in there, but not sure that's the place to try try to build a custom page...most language files I have seen are either in .ini or .php or .xml format....tried to put a link in their when it fires the language line to redirect, but it just displayed the link on the page. lol
I'll ask over in the CB forums, as most of the 'you must login' is generated from that extension, as my Joomla door is wide open, so not really triggering it elsewhere.
I found this nugget:
DEFINE('_UE_REGISTERFORPROFILE','Please login or Register to view or modify your profile.');
So seems to me I should be able to create am article/page that is styled to my liking and have it display rather than the aforementioned language.
I only ask, as, as you know, you you do not have much text on some of the chroma pages, there's that little background issue that keeps coming back.
Thanks...will keep cracking on the language files.