1 (edited by elbekko 2006-05-01 15:42)

Topic: Forum rank access 1.1

##
##
##      Mod title: Minimum forum rank access
##
##      Mod version: 1.1
##   Works on PunBB: 1.2.11
##     Release date: 2006-05-01
##           Author: El Bekko (elbekko@gmail.com)
##
##      Description: Limit access to forums to users with a certain rank
##
##  Difference with
## previous version: Added the possibility to mass assign a minimum post amount
##
##   Affected files: index.php and viewforum.php
##
##       Affects DB: Yes
##
##            Notes: /
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download

2

Re: Forum rank access 1.1

Wee, first one to download it.

I'll test it now and see if it works.
Any known bugs?

Re: Forum rank access 1.1

No bugs that I know of. How does it work?

4 (edited by Runar 2006-04-30 19:43)

Re: Forum rank access 1.1

I cant find the think I'm supposed to find in viewtopic.php, or I have already used a mod and changed it.
I'm not good enough to try to figure it out myself.

If you want to help me or just say what to add/replace, here is my code:

$result = $db->query('SELECT f.forum_name, pf.forum_name AS parent_forum, f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, f.parent_forum_id, fp.post_topics FROM '.$db->prefix.'forums AS f LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') LEFT JOIN '.$db->prefix.'forums AS pf ON f.parent_forum_id=pf.id WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id='.$id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());

Re: Forum rank access 1.1

Ah, the sub-forum mod I see =P

Just replace

SELECT f.forum_name,

with

SELECT f.forum_name, f.min_posts,

6

Re: Forum rank access 1.1

If you know how to remove the subforumthing, please tell me tongue
It made my index.php page so ** slow so I just removed some parts of it, dont know witch.

I'll try your thing now smile

Re: Forum rank access 1.1

lol, remove everything it's readme says ^^

8 (edited by Runar 2006-04-30 20:05)

Re: Forum rank access 1.1

I installed it, but it only shows one forum.
I have set the minimumposts to 0 on all boards, and still I can only see one of them.

Also, you should add "Send inn all" instead of clicking one time for each forum.
It might take some time for some of us.

Edit: I replaced "f.disp_position', true" with "f.disp_position'" in index.php, since I didnt have the true, and now it works.

Re: Forum rank access 1.1

=/ Odd error. PunBB 1.2.11?

10

Re: Forum rank access 1.1

Ye, but it worked when I removed the "true" thing.

Re: Forum rank access 1.1

Also, you should add "Send inn all" instead of clicking one time for each forum.
It might take some time for some of us.

I could add that, yeah smile Thx for suggesting smile

Re: Forum rank access 1.1

Small bug fixed in 1.0.1.

Re: Forum rank access 1.1

Also, you should add "Send inn all" instead of clicking one time for each forum.
It might take some time for some of us.

Added this in 1.1 smile

Re: Forum rank access 1.1

does this mod effect the checks you can put to where only scertain memebers can see? such as admininstration and moderator and other custom groups that are made?