News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Read Topic Permission

Started by Sheepy, November 30, 2005, 10:48:58 PM

Previous topic - Next topic

fiver

#20
Hi Sheepy,

I found in my Test board that Guest can still read topic posted by Guest. Can this also be permission-based in the future version of your Mod?

:)

md80forum

Got my package manager screaming when I tried to install this one.  ???

Jan-Erik

Sheepy

Aha, looks like I really should have updated it myself instead... I'll try to fix this before I move back to HK in two weeks, but I don't have much spare time now.

md80forum

Thanks, Sheepy, if you find the time to do that!

Jan-Erik

Sheepy

#24
Looks like 1.1 gold is no where in sight, so I finally decided to fix it before I go to Disneyland tomorrow.  Oh that leaves me 5 hours of sleep...

All RC2 users should upgrade.  I haven't tested on RC1, but with version 1.0.3 the permissions are working on RC2 now.  Also fixed two relatively minor bugs - see history.txt for details.

GJ-tje

#25
Quote from: Sheepy on March 30, 2006, 03:01:17 PM
Looks like 1.1 gold is no where in sight, so I finally decided to fix it before I go to Disneyland tomorrow.  Oh that leaves me 5 hours of sleep...

All RC2 users should upgrade.  I haven't tested on RC1, but with version 1.0.3 the permissions are working on RC2 now.  Also fixed two relatively minor bugs - see history.txt for details.


Hello, I have installed this mod on my website succesfully...
But on an other forum I am trying to install this, I can't set the permissions, because I don't see the options for it. The mod installed succesfully, and gave no errors, so you should think it should work. ;)

I don't think that an other mod is messing things up, if so, I will try to find the mod which is messing the things up...

Greetings,
GJ-tje

P.S. How was your trip to Disneyland? :D

EDIT:

I have deinstalled every mod which I could disable, and still the mod doesn't work...
Are there any files being changed upon installation? If so, can you give me a list of the files?
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

Sheepy

Since it adds on to the group permission list, the chance the options themselves get interferenced by other mods is pretty small.  (However there are other parts that sees a higher chance of causing conflicts)

If everything goes right, three permissions for reading topics can be found in each group's permission page, first group of topic permisssions.  The list of files that get changed is displayed by package manager before you really install the mod.

If you can list your environment (PHP, MySQL, and SMF version) then I can do a test.

GJ-tje

#27
Quote from: Sheepy on April 17, 2006, 08:23:38 AM
Since it adds on to the group permission list, the chance the options themselves get interferenced by other mods is pretty small.  (However there are other parts that sees a higher chance of causing conflicts)

If everything goes right, three permissions for reading topics can be found in each group's permission page, first group of topic permisssions.  The list of files that get changed is displayed by package manager before you really install the mod.

If you can list your environment (PHP, MySQL, and SMF version) then I can do a test.

I can not give a fully detailed list of exact version numbers, but the webserver with the problem has:
PHP 5
MySQL 5
SMF 1.1RC2
Webserver: IIS6 (Windows 2003)

We get no parse errors and the MySQL table has been made as well
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

RMIT

Version of my Board is 1.0.7 (upgraded from 1.0.5) and how can I apply this MOD?

(My board is modified a lot so I cannt upgrade it to 1.1RC2 :(( )

Aleko

#29
Hello,

I'm using 1.1RC2, I installed this MOD (1.0.3) everything works perfect except that users are unable to access "Show unread posts since last visit".

They get an SQL error...

This only affects normal Users, Admins are not affected by this...

I really need this MOD :-[

EDIT :

Detail of SQL error users get :

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
WHERE hxxp:b.id [nonactive]_BOARD IN (11)
AND hxxp:bp.id [nonactive]_BOARD = IF(b.permission_mode = 1, hxxp:b.id [nonactive]' at line 3
File: /home/www/web/forum/Sources/Security.php
Line: 752

Again, this only affects users, admin is not affected by this...

Carlos Gandra

Hi,

It is possible to apply this mod to all the topics in all boards except two of them (who is suposed to be in public domain and guest could see and read) ?

Thanks ;)
Carlos Gandra
Mundo dos Animais

Sheepy

#31
Yes, read topic permission can be set by board. Check permission -> permission by board. You've to first enable advanced permission (and perhaps permission for post-count based group) in permission -> settings.

Sheepy

#32
To Aleko: I installed it on a clean installation of 1.1 RC2 (with official security patch) and there're no problem accessing unread post.  Actually the mod does not change Security.php (as displayed in Package Manager).

To thinhvanhieu: I'm afraid this mod is strictly 1.1 only.  I first develop it on my own 1.0 forum, but that's before I make it a mod, so the mod itself supports only 1.1 - I thought 1.0 was close to the end of its life cycle.  I got 50+ mods installed, so you're not the only one having the upgrade problem...

Sheepy

List of files that get changed:

1.     Execute Modification     ./Sources/Display.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/Profile.php    Test successful
4.    Execute Modification    ./Sources/Recent.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

And then it will insert (install) / delete (uninstall) permission for reading (special) topics for every user group and for every board.

Caltan

I have an interesting challenge, and I can't quite figure out how to make your mod work the way I need it to.  I have forums where I would like all regular members to be able to post, but only members in one specific membergroup can read the topics (and its subsequent replies).  The problem I have is this: when used with a regular member in no member groups aside from regular_members, this works like a champ (I commented out the IS_TOPIC_STARTER line to fix that problem of reading replies to one's own posts).  However, any time a member in ANY other member group ASIDE from regular members tried to read the posts and replies, they can, whether they're in the one group that has signified read permissions for that forum or not.  I assume that this is based on the isAllowedTo('read_normal_topic') not looking to differentiate between membergroups, but I can't seem to find it.  Can you help steer me in the right direction?  Thanks.

ArkServer

I read your post but i still can't figure out how i can disable certain boards for entering topics. They can view the topiclist but cannot enter the topic itself.

Caltan

That's exactly what I want, viewing the topic list but not entering the topic itself.  If you select the permission by board (local permissions) and then uncheck 'can read normal topic,' then this works -- unless the member has a group, ANY group.  I only want members of one specific group to be able to read it, and it doesn't differentiate between the Can_Read_This_Topic group and Can_Read_Some_Other_Topic_All_Together group. 

What I need is for people with the Topic1 permssions to be able to read only all posts in Topic1, and everyone else to just view the lists (and be able to post).  And people with Topic2 permissions can view Topic2, et cetera.  Right now, if you have EITHER Topic1 OR Topic2 permssions, you can read both Topic1 AND Topic2.  That seems like a bug to me, and I'm not sure how to fix it.

p3rf3ctg3ntl3m4n

I have a problem when install ReadTopicPermission mod on my server
it ask ftp server

i've filled with my ftp server I but cannot be at all



Please, what can i do again ?

regards

metallica48423

#38
This works very nicely and is almost exactly what I want, but is it possible to *only* show topics which the member has permission to view/post in, including sticky topics?  Since I have the permission globally enabled everywhere else to read stickies and posts i'm assuming it would be just a simple modification or adding of isallowedto(blah) etc etc. where it displays the posts.

Say member X is logged in....

there are some posts in the board by the following members

C
X
Y
X
X
C
L
M
J

I want, to user x, for the board to only show:

X
X
X

or for user C,

C
C

Is this possible?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Carlos Gandra

Quote from: Sheepy on June 25, 2006, 03:01:23 AM
Yes, read topic permission can be set by board. Check permission -> permission by board. You've to first enable advanced permission (and perhaps permission for post-count based group) in permission -> settings.

Thank you :D
Carlos Gandra
Mundo dos Animais

Advertisement: