BBCodeBox3

prosilver | subsilver2

Willkommen und einen schönen Mittag, Guest  Beim nächsten Piep ist es zwischen 11:00 und 12:00 Uhr

It is currently Sun 26. Oct 2025, 12:40

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Thu 20. May 2010, 04:32 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Zero and X-Poster Topic Restricion v.0.0.2

MOD-Title: Zero and X-Poster Topic Restriction
MOD-Version: 0.0.2
MOD-Author: 4seven

Request by: sliar
Request Thread: http://www.phpbb.com/community/viewtopi ... 56&start=0

MOD-Description: prevent the reading, quoting and searching of topics for zero- or x-posters.

MOD-Demo: http://4seven.bplaced.net/phpbb3/index.php
(Login as user: ZatanglE / pw: testtest) restricted is forum-id 10
phpBB-Version: phpBB 3.0.x
phpBB-Languages: en
phpBB-Styles: prosilver, subsilver2

Image

Download:
Download
Attachment:


Features:
With this Mod you prevent the reading, quoting and searching of topics for zero- or x-posters.
User must post at least one or x posts to have full access.
U can set, which forum is restricted.

Search ist exceptionless highly restricted for zero- or x-posters

All these things are restricted for Guests, too



Working Mode

Search:
- by trying to search trigger error

Post / View:
- by trying to quote trigger error
- by reply topic review is invisible
- posts in viewtopic are hidden, but have info-text



To-Do after Install

Important:

After install, search for

Quote:
$sql_users['user_posts'] < 1


in posting.php, search.php and viewtopic.php

and change the number from 1 to eg. 5

Quote:
$sql_users['user_posts'] < 5


to set the amount to 5

and change the number in edits for language/en/common.php also to 5

-------------------------

Also don't forget to enter your forum-id's in posting.php and viewtopic.php:

Code:
// Set here which forum u want to restrict
        $forum_to_restrict = array(10,11);
        // Enter forum-id as given: 10,12,14,17          


Clear all Board-, Style- and Browser-Caches



changes in v.0.0.2:
- fixing little hurry-up's in instruction
- fixing readables by guest
- adding subsilver2

fix #1 for v.0.0.2:
Update for Attachments, which are not insert as inline
viewtopic.php?p=1598#p1598


Top
 Profile  
 
PostPosted: Thu 27. May 2010, 15:19 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Update for Attachments, which are not insert as inline

-- package is updated --

open

styles/prosilver/template/viewtopc.body.html

find

Code:
            <!-- IF postrow.S_HAS_ATTACHMENTS -->
                <dl class="attachbox">
                    <dt>{L_ATTACHMENTS}</dt>
                    <!-- BEGIN attachment -->
                        <dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
                    <!-- END attachment -->
                </dl>
            <!-- ENDIF -->     


replace with

Code:
            <!-- IF not postrow.S_TO_LESS_POSTS -->
            <!-- IF postrow.S_HAS_ATTACHMENTS -->
                <dl class="attachbox">
                    <dt>{L_ATTACHMENTS}</dt>
                    <!-- BEGIN attachment -->
                        <dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
                    <!-- END attachment -->
                </dl>
            <!-- ENDIF -->        
            
<!-- ENDIF --> 


open

styles/subsilver2/template/viewtopc.body.html

find

Code:
                    <!-- IF postrow.S_HAS_ATTACHMENTS -->
                        <br clear="all" /><br />

                        <table class="tablebg" width="100%" cellspacing="1">
                        <tr>
                            <td class="row3"><b class="genmed">{L_ATTACHMENTS}: </b></td>
                        </tr>
                        <!-- BEGIN attachment -->
                            <tr>
                                <!-- IF postrow.attachment.S_ROW_COUNT is even --><td class="row2"><!-- ELSE --><td class="row1"><!-- ENDIF -->{postrow.attachment.DISPLAY_ATTACHMENT}</td>
                            </tr>
                        <!-- END attachment -->
                        </table>
                    <!-- ENDIF --> 


replace with

Code:
                    <!-- IF not postrow.S_TO_LESS_POSTS -->
                    <!-- IF postrow.S_HAS_ATTACHMENTS -->
                        <br clear="all" /><br />

                        <table class="tablebg" width="100%" cellspacing="1">
                        <tr>
                            <td class="row3"><b class="genmed">{L_ATTACHMENTS}: </b></td>
                        </tr>
                        <!-- BEGIN attachment -->
                            <tr>
                                <!-- IF postrow.attachment.S_ROW_COUNT is even --><td class="row2"><!-- ELSE --><td class="row1"><!-- ENDIF -->{postrow.attachment.DISPLAY_ATTACHMENT}</td>
                            </tr>
                        <!-- END attachment -->
                        </table>
                    <!-- ENDIF -->
                    <!-- ENDIF --> 


clear all board-, style- and browser-caches


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.013s | 18 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]