Advertisement:

Author Topic: Read Topic Permission  (Read 57145 times)

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Read Topic Permission
« on: November 30, 2005, 10:48:58 PM »
Link to Mod

This mod adds three group permissions that allow/deny users from reading normal/sticky/digest topics.  Listing of topic is unaffected.

Own topics are not affected.
Attachments are not affected, however if you cannot read a topic then you can't see links to its attachments.
If a user cannot access a board, read permissions cannot help it.

Digest topic is supported by Topic Digest mod and is optional.  This is an independent mod.
Sticky digest topics are treated as sticky topic for read permission if sticky is enabled.

Check access for recent posts or last posts, but not search result (that only shows partial posts anyway).  Search can be controlled with another permission.

Error messages can be customised in modifications.english.php

Offline Saku

  • Jr. Member
  • **
  • Posts: 305
  • Gender: Male
Re: Read Topic Permission
« Reply #1 on: December 01, 2005, 07:56:33 PM »
thanks for this mod but i did a manuel instal because i got a error with package manager
Code: [Select]
The package you tried to upload either is not a valid package or has become corrupted.

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #2 on: December 02, 2005, 06:52:33 PM »
No problem for me.  Try redownload?

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Read Topic Permission
« Reply #3 on: December 11, 2005, 02:45:18 PM »
"This mod adds three group permissions that allow/deny users from reading normal/sticky/digest topics."

These settings...they appear under the "global board permissions" section of the "permissions by membergroup" page of the admin board? Specifically, under "General", located under the "Moderate Board" permission?

Reason I asked is because I installed your mod, and three check boxes appeared there. Unfortunately, they are not LABELLED, so I have no idea which box belongs to what...

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #4 on: December 12, 2005, 11:14:58 PM »
The mod supports only English, so if you're using some other languages then the labels won't show.

IIRC, from top to bottom, the settings are permission for reading stickies, normal posts, and digest posts (effective only if topic digest mod is also installed, which supports English and Chinese).  I would suggest registering a test account to verify that you're setting the correct permissions.[/olor]

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #5 on: December 12, 2005, 11:16:20 PM »
Oh yes, it is possible to show the labels, if it is really because you're not using english, by copying the labels, helps and error messages from modification.english.php to modification.whatever-language-you-are-using.php.

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Read Topic Permission
« Reply #6 on: December 13, 2005, 06:10:19 AM »
Uh, I AM using english.

Here's the newest...I uninstalled it, reloaded it, and tried to reinstall. I get this message:

Modification parse error

when it's testing to install...

I'll bite, why would it be doing this?

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #7 on: December 13, 2005, 10:47:18 PM »
Hmm.  This is curious, because I've friends who successfully installed it.  I'll retest the mod today then.

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Read Topic Permission
« Reply #8 on: December 14, 2005, 01:19:19 AM »
Yeah, I was thinking the same thing, because from what I've seen, you have reliable mods... LOL

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #9 on: December 15, 2005, 01:41:23 AM »
Yes I see what is wrong now.  Messed up quite big this time :o, although it shouldn't affect functionality or security.  Trying to find the best way to fix it...

Technically, I accidently keyed two permission checking operations with same comment, so they are both applied twice, one after another.  As a result they can't be uninstalled with the usual reverse operation.

[edited: added technical details]
« Last Edit: December 15, 2005, 02:07:39 AM by Sheepy »

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #10 on: December 15, 2005, 05:19:11 AM »
Fixed.  New version 1.0.1.  Users experiencing no problems are advised to upgrade as well since old version does not check read permission in show member post.

Offline sadiqbaig

  • Jr. Member
  • **
  • Posts: 104
  • Gender: Male
    • wapforum
Re: Read Topic Permission
« Reply #11 on: December 15, 2005, 11:51:13 AM »

does this work for smf RC 1.1

btw i cant create any topics in any forum

Offline spaceman

  • Semi-Newbie
  • *
  • Posts: 93
Re: Read Topic Permission
« Reply #12 on: December 15, 2005, 04:24:48 PM »
Yeah nice mod. Am looking for this for long. Just wondering is there a DEMO for it? :)

Suggestion:

By the way instead of error message, it would be preferable to show a login screen for the guest as well if they need login permission to read the topics?

Thank you in advance!

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #13 on: December 15, 2005, 05:50:46 PM »
does this work for smf RC 1.1
btw i cant create any topics in any forum
Yes this mod is designed for and so far only for 1.1 RC 1.

For inability to create topics, you may wish to seek help in the support board, unless it is proven or highly suspected that it is related with this mod (which is extraordinary unlikely).  :-\

Yeah nice mod. Am looking for this for long. Just wondering is there a DEMO for it? :)

By the way instead of error message, it would be preferable to show a login screen for the guest as well if they need login permission to read the topics?
Thanks.  I fear that I do not have a English demo site availble at this moment, but I'll consider building one.  ::)

The permissions are handled like default ones - if a user do not have the right to read a topic, it results in the standard error message screen, and if that user is a guest, a login form will also be displayed.

In list of multiple posts, such as unread posts or user posts, the post body will be replaced by an error message, without login form even for guests.  This I can do without making the mod dependent on theme.

That say, as long as the language resource in modification.english.php is available, it should works for all themes.  8)

[edited: added emoicons~ I was in a hurry]
« Last Edit: December 15, 2005, 06:42:13 PM by Sheepy »

Offline OlliMuc

  • Semi-Newbie
  • *
  • Posts: 35
Re: Read Topic Permission
« Reply #14 on: January 01, 2006, 11:24:04 AM »
Hi,

has anyone tried this mod with 1.0.5 yet? I guess I'll have to upgrade if I want it to work ... on the other hand, there's only version RC2 right now to upgrade to. What would you recommend to do?

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #15 on: January 01, 2006, 05:28:22 PM »
If past record is any indication, we'll get 1.1 final in a few days, but I feel slightly more maybe needed this time.  Eitherway, it shouldn't be far and I'm going to upgrade the mod so I'd suggest you wait a week or two and upgrade when it arrives.

If you want RC1, or Beta3Public, or 1.0.x, you can get it from the download page.  Archived downloads or something, at the top.

Offline OlliMuc

  • Semi-Newbie
  • *
  • Posts: 35
Re: Read Topic Permission
« Reply #16 on: January 04, 2006, 06:37:27 PM »
Hey Sheepy,

thanks a lot for the reply, I'm happy to wait for the 1.1 relase. Really looking forward to it  ;).

Offline Sheepy

  • Full Member
  • ***
  • Posts: 418
  • -=~ Love ~=-
    • Sheepy's SMF Mod board
Re: Read Topic Permission
« Reply #17 on: January 21, 2006, 05:45:06 PM »
Updated for RC2.

Offline FBI

  • Semi-Newbie
  • *
  • Posts: 98
  • Great Forum and Free! Its SMF!
Re: Read Topic Permission
« Reply #18 on: February 04, 2006, 08:39:32 PM »
Nice mod. :)
Currently using RC2. Which setting should be checked? I am trying to setting in Admin Area - Permissions - Modify Guest Group.

There is 3 new:
- Read sticky topic      
- Read normal topic --> I check and Uncheck , nothing happen on Guest viewing (still can't read)      
- Read digest topic (with digest mod installed), currently I didnt installing, yet.

Thanks..

Offline definitive

  • Jr. Member
  • **
  • Posts: 102
  • Gender: Male
    • http://www.yapiforum.net
Re: Read Topic Permission
« Reply #19 on: February 09, 2006, 10:20:18 AM »
thanks for the mod, very useful,
but what about search engines? i think this will not allow them to index the forum, how can we allow them to do so?

thanks