Edit Login and Permission page with IPB styled message

Go down

Solved Edit Login and Permission page with IPB styled message

Post by Shadow. on 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.
avatar
Shadow.
Forumember

Posts : 76
Reputation : 5
Language : English

http://punbb-design.forumotion.com

Back to top Go down

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

Post by Ange Tuteur on 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
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13222
Reputation : 2959
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

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

Post by Shadow. on 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.
avatar
Shadow.
Forumember

Posts : 76
Reputation : 5
Language : English

http://punbb-design.forumotion.com

Back to top Go down

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

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

Welcome Smile

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13222
Reputation : 2959
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum