The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Edit Login and Permission page with IPB styled message

    avatar
    Shadow.
    Forumember


    Posts : 76
    Reputation : 5
    Language : English

    Solved Edit Login and Permission page with IPB styled message

    Post by Shadow. March 20th 2014, 3:08 pm

    So my question is simple. Few forums out there changed their "Sorry, but only users granted special access can read topics in this forum" and /login page with IPB designed message such as: Edit Login and Permission page with IPB styled message YDVGMko

    I know it's done by javascript but just can't get a way how to do it.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Edit Login and Permission page with IPB styled message

    Post by Ange Tuteur March 20th 2014, 6:37 pm

    Hello Shadow.,

    This is for when users are redirected to the log in page ? You could probably do something like :
    Code:
    $(function() {
     Â   if (window.location.href.indexOf('/login?redirect') > 0) {
     Â      $('#pun-head').after('<div><span style="font-size:18px;">Sorry, we couldn\'t find that!</span></div>')
     Â   }
    });

    I don't exactly know what the page looks like, but the above should only display if you have been redirected to the log in page.

    For the permissions page, it should be the following template :
    Administration panel > display > templates > general > message_body
    avatar
    Shadow.
    Forumember


    Posts : 76
    Reputation : 5
    Language : English

    Solved Re: Edit Login and Permission page with IPB styled message

    Post by Shadow. March 20th 2014, 7:17 pm

    I created something using if (location.pathname == "/login" && GetParam("redirect") !== null) { Like return this.innerHTML.replace('Sorry, but only <strong>users granted special access</strong> can read topics in this forum.', special_access);

    Thanks for help, this can be put as solved.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Edit Login and Permission page with IPB styled message

    Post by Ange Tuteur March 20th 2014, 7:31 pm

    Welcome Smile

    Topic solved and archived

      Current date/time is September 22nd 2024, 8:17 pm