How can i disable forum pages for my members
3 posters
Page 1 of 1
How can i disable forum pages for my members
Hi, i want to disable some pages on my forum.
for example if someone is going to use the address bar to access a page, i want him to be transfered to the home page.
my forum is http://myplanet.forumgreek.com/ and if someone for example will try to write http://myplanet.forumgreek.com/memberlist (this code im asking for,) will transfer him to http://myplanet.forumgreek.com/forum
how can i do that? thanks a lot
for example if someone is going to use the address bar to access a page, i want him to be transfered to the home page.
my forum is http://myplanet.forumgreek.com/ and if someone for example will try to write http://myplanet.forumgreek.com/memberlist (this code im asking for,) will transfer him to http://myplanet.forumgreek.com/forum
how can i do that? thanks a lot
Re: How can i disable forum pages for my members
Are you referring to members or guests? You can set which groups can see the memberlist.
Administration Panel > Users & Usergroups > Special Rights
Administration Panel > Users & Usergroups > Special Rights
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: How can i disable forum pages for my members
yeah i know that but i want to be transfered to homepage instead of going there and saying 'u dont have the rights to view the page.."
and im reffering to both guests and members
and im reffering to both guests and members
Re: How can i disable forum pages for my members
Hello,
You will have to do these redirections manually through javascript. Even then, if someone disable javascript they can still view the page if it is open.
Ex :
You will have to do these redirections manually through javascript. Even then, if someone disable javascript they can still view the page if it is open.
Ex :
- Code:
if (location.pathname == '/memberlist') location.pathname == '/forum';
Re: How can i disable forum pages for my members
Whoopsie I wrote an extra equal sign when assigning the new pathname
try now :
try now :
- Code:
if (location.pathname == '/memberlist') location.pathname = '/forum';
Re: How can i disable forum pages for my members
very nice, thank u
its solved, just an extra thing if this possible.
is it possible to make this redirection only to guests and simple members (no rank) ?
its solved, just an extra thing if this possible.
is it possible to make this redirection only to guests and simple members (no rank) ?
Re: How can i disable forum pages for my members
For guests and members you'll have to use userdata :
_userdata.user_level = 0 : guest / member
_userdata.user_level = 1 : administrator
_userdata.user_level = 2 : moderator
- Code:
$(function() {
if (_userdata.user_level == 0) {
if (location.pathname == '/memberlist') location.pathname = '/forum';
}
});
_userdata.user_level = 0 : guest / member
_userdata.user_level = 1 : administrator
_userdata.user_level = 2 : moderator
Similar topics
» How to disable mobile view of forum and how to truncate posts into pages?
» Disable new members?
» Awards Disable for members?
» How to disable Right click on mause anywhere on forum
» Is there a way to show members profile contact fields on members forum posts?
» Disable new members?
» Awards Disable for members?
» How to disable Right click on mause anywhere on forum
» Is there a way to show members profile contact fields on members forum posts?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum