The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Edit Login and Permission page with IPB styled message

View previous topic View next topic 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:

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

Shadow.
Forumember

Posts : 69
Reputation : 4
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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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.

Shadow.
Forumember

Posts : 69
Reputation : 4
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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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