[Beta] Topics Only Visible to OP 0.8.0

Misc MOD Downloads for phpBB3 -- Any MOD that does not fit into any other category
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

[Beta] Topics Only Visible to OP 0.8.0

Postby Bondgamer » 14 Jan 2007, 10:52

Classification: Add-on
phpBB Part: Forum
MOD Name: Topics Only Visible to OP
MOD Version: Beta 0.8.0
Author: BondGamer
Works with: phpBB3 3.0.5
Language: English
Licence: GNU General Public License v2

Features
  • Administrators can set a forum to "Topics Only Visible to OP"
  • When in this mode, the only topics a normal user see are their own
  • A new permission is added under misc called "Can see OP view only topics", this allows a user to view all topics on an author only board
  • Announcement, global announcement, and sticky topics are still visible by all

Demo Board:
Click Here. There are hundreds of topics but you can't see any because guests and normal registered users do not have the permission.

instructions
For each forum you desire, turn on the Topic Only Visible to OP option. (ACP -> Forums -> Manage Forums -> [forum name] edit -> General forum settings --> "Topics Only Visible to OP" option)
3) Give permissions to desired Users' and Groups'. (ACP -> Permissions -> Forum Based permissions -> Users' or Groups' Forum Permissions -> Select Appropriate Forum(s) -> Misc -> "Can see OP view only topics")
Status
This MOD is in Beta. All listed features should be functional. Please report any issues you might have in this topic.

Install
Installation Level: Medium
Installation Time: 20 Minutes
Format: MODX
Download File: http://www.jcthebuilder.com/Topics_Only ... OP-080.zip
Last edited by Bondgamer on 07 Aug 2009, 08:22, edited 11 times in total.
Bondgamer
MOD Author
MOD Author
 
Posts: 102
Joined: 12 Jan 2007, 16:38
Gender: Male
phpBB Knowledge: 5


Re: [Beta] Forum For Author View Own Posts Only

Postby Highway of Life » 14 Jan 2007, 20:11

Awesome BG!! Good

For those that may be wondering...
BondGamer requested permission to take this MOD.

I'll look over the code and implementation when I can, and offer any suggestions.
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Beta] Forum For Author View Own Posts Only

Postby Bondgamer » 14 Jan 2007, 21:59

Beta Version 1.1
If a user lacks the view all posts permission and a board is author view only, that user cannot search that board anymore via any search method. I tried to implement it so they could search only their topics, but that started turning into a big miss of modifying SQL queries which, no doubt, would cause a performance hit for almost no benefit. This may be implemented someday, especially if someone suggests a nice method how. Otherwise this MOD is complete until Olympus gold release.
Bondgamer
MOD Author
MOD Author
 
Posts: 102
Joined: 12 Jan 2007, 16:38
Gender: Male
phpBB Knowledge: 5

Re: [Beta] Forum For Author View Own Posts Only

Postby Handyman » 15 Jan 2007, 05:20

Very Cool!
Thanks for getting this mod out BG!
I can't wait to install it.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7459
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Beta 1.1] Author View Board Permission

Postby Highway of Life » 17 Jan 2007, 03:39

MOD moved to the MOD Database/forum
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Beta 1.2] Author View Board Permission

Postby Bondgamer » 17 Jan 2007, 12:11

Beta 1.2
There was a variable misspelling which caused notices to be thrown when creating a new forum. All known bugs are now fixed.
Bondgamer
MOD Author
MOD Author
 
Posts: 102
Joined: 12 Jan 2007, 16:38
Gender: Male
phpBB Knowledge: 5

Re: [Beta 1.2] Author View Board Permission

Postby A_Jelly_Doughnut » 10 Feb 2007, 19:32

You probably should allow users to read Announcements and Globals in the author-only forum. I'm pretty sure you can use
Code: Select all
if ($row['post_type'] >= POST_STICKY)
but you should check the constant definitions in /includes/constants.php
A_Jelly_Doughnut
phpBB Team Member
phpBB Team Member
 
Posts: 543
Joined: 10 Feb 2007, 14:58
Location: 1- 800 - In - The - USA
Gender: Male

Re: [Beta 1.2] Author View Board Permission

Postby Bondgamer » 24 Feb 2007, 11:51

A_Jelly_Doughnut wrote:You probably should allow users to read Announcements and Globals in the author-only forum. I'm pretty sure you can use
Code: Select all
if ($row['post_type'] >= POST_STICKY)
but you should check the constant definitions in /includes/constants.php

It does this already?
Bondgamer
MOD Author
MOD Author
 
Posts: 102
Joined: 12 Jan 2007, 16:38
Gender: Male
phpBB Knowledge: 5

Re: [Beta 1.2] Author View Board Permission

Postby A_Jelly_Doughnut » 25 Feb 2007, 18:53

No, it checks to see if the post is = to sticky. This excludes announcements and global announcements. Use the >= operator to includ those Smile
A_Jelly_Doughnut
phpBB Team Member
phpBB Team Member
 
Posts: 543
Joined: 10 Feb 2007, 14:58
Location: 1- 800 - In - The - USA
Gender: Male

Re: [Beta 1.2] Author View Board Permission

Postby Bondgamer » 26 Feb 2007, 01:02

Ah, I remember now. The SQL query which pulls the announcements is separate from the query that pulls normal and sticky topics. Thus, only Sticky topics need special consideration. If you want to see a demo for this MOD you can go here:

http://www.hot-guild.com/Forum/viewforum.php?f=22
Bondgamer
MOD Author
MOD Author
 
Posts: 102
Joined: 12 Jan 2007, 16:38
Gender: Male
phpBB Knowledge: 5

Next

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: Tbot [Bot] and 2 guests