ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Change alert message when using HTTP Authentication

April 13, 2010 5:46am

Subscribe [4]
  • #1 / Apr 13, 2010 5:46am

    benniog

    37 posts

    Hi,
    I am using HTTP Authentication for some of my templates… is there a way to change the alert message from the default “The server xxx at ExpressionEngine Template requires a username and password”?

    Thanks in advance
    Gary

  • #2 / Apr 13, 2010 7:04am

    Sue Crocker

    26054 posts

    Are you talking about:

    enable_http_authentication_subtext in lang.templates.php?

  • #3 / Apr 13, 2010 10:49am

    Mark Bowen

    12637 posts

    I could be wrong on this but I don’t think there is a built-in option to change this text and I think that in this case it might be coming directly from the server itself maybe?

    Best wishes,

    Mark

  • #4 / Apr 13, 2010 2:02pm

    benniog

    37 posts

    Sue - I am talking about the pop message that you receive when enabling HTTP Authentication on a template. I want to change it from the default message. The variable you pointed me to is for the messaging in the control panel (i think).

    Mark - I would normally do this using a .htaccess file and customise my message that way but I want to keep all security within EE.

    I cant imagine that this is impossible, its relatively simple.

  • #5 / Apr 13, 2010 6:51pm

    Brandon Jones

    5500 posts

    Hi benniog,

    That message is being generated by the browser, and it will vary across browsers and platforms. Does that help?

  • #6 / Apr 14, 2010 5:36am

    benniog

    37 posts

    Hi Brandon,

    In my experience with using .htaccess files for this there are parts of the message that you can customise.. the part “The server xxx at ExpressionEngine Template requires a username and password?” is obviously being pulled from somewhere, I just want to know how to change that bit.

    Thanks
    Gary

  • #7 / Apr 14, 2010 6:42am

    Mark Bowen

    12637 posts

    The only place I could find ExpressionEngine Template anywhere in the whole of an ExpressionEngine install was in core.template.php. Not sure if that’s maybe where it’s getting it from perhaps?

    Best wishes,

    Mark

  • #8 / Apr 14, 2010 7:24am

    benniog

    37 posts

    Hi Mark,
    Thanks for your response, it look like it may be pulling of it from there but I dont fancy messing around in there… i havent got the skill 😊

    I think I’ll just give up and create a login page.

    Thanks anyway
    Gary

  • #9 / Apr 14, 2010 7:48am

    Sue Crocker

    26054 posts

    No worries, Gary. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases