Community Forum

User info

Welcome, Guest! Please login or register.


You are here » Community Forum » Forum for Newbies » How to hide certain /pages/pagename that have been created?


How to hide certain /pages/pagename that have been created?

Posts 1 to 9 of 9

1

you have to inform us how to hide the profile page in the previous post (thanks for that matter)
NOW: how to hide certain /pages/pagename that have been created?

based on:
can only be viewed by login users (Standart)
can only be viewed by certain users group / users rank

0

2

kami

kami wrote:

can only be viewed by login users (Standart)

For now I've made a script for logged-in users only.

<style id="hidepage">.gid3 #pun-pages #pun-main .container{display:none}</style>
<script type="text/javascript">
if(GroupID==3&&$('#pun-pages').length)$().pun_mainReady(function(){
var s='Information',s1=$('#pun-title h1>span').text();document.title=s1;
var L=' &nbsp;<a href="/">'+s1+'</a> &nbsp;'+s;$('.crumbs').html(L);
$().pun_aboutReady(function(){$('#pun-crumbs2>.crumbs').html(L);});
$('#pun-main').html('<h1><span>'+s+'</span></h1><div class=info>\
<div class=container>You have no permission to view this page.\
</div></div>');$('style#hidepage').remove();});
</script>


Place it to the page you want to hide from guests.
Notice: This is a JavaScript & CSS solution which means that it will protect your content from basic users but still the content will be available if you look through the code of your web-site.
If you need full privacy it's better to create special hidden categories or forums (sections).

kami wrote:

can only be viewed by certain users group / users rank

It's more difficult for me. Honestly, I'm not a JavaScript-writer so probably I'll ask someone to do it.

+1

3

C3La-NS wrote:

If you need full privacy it's better to create special hidden categories or forums (sections).

the problem is the categories or forum can only run the bbc code.... but the script  that you made is enough to cover a particular page and force the nonclever users to login or register to see the full content of the page

0

4

kami
Thanks for a suggestion.
We will add permissions settings for Pages on the week.

+2

5

kami
Good news!
Now you can set the permissions for groups when creating or editing a page:
http://sj.uploads.im/dkO9L.png
If you find that is not enough, please write your suggestion.

+1

6

Admin wrote:

If you find that is not enough, please write your suggestion.

extraordinary very pretty very steady very good, personally I really like this feature and I am sure all mybb users will thank you with this new features

0

7

kami
Thanks for your kind words.
Our users did like this feature.
Hope, we'll see even more features soon.

+1

8

Admin wrote:

kami
Good news!
Now you can set the permissions for groups when creating or editing a page:

If you find that is not enough, please write your suggestion.


How it can be enabled?

0

9

@Nixieoffset wrote:

How it can be enabled?

open....  /admin_pages.php To create a new page or edit an old page (Specify the users group you are allowing to view the page)

NOTE (By default)
there are 3 users group (See... /admin_groups.php
Administrator
Moderator
Users (members)
You can add some other users group

+1


You are here » Community Forum » Forum for Newbies » How to hide certain /pages/pagename that have been created?