Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SlammedDime on May 12, 2007, 10:22:39 PM

Title: View Topic Permissions
Post by: SlammedDime on May 12, 2007, 10:22:39 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=794)

This mod allows you to specify permissions for boards and usergroups on which topics a user can view.  They can view all, their own, or none.

Version Changes
1.1.0a - Admin wasn't able to search or view unread topics since last visit.
1.1.0 - Updated to prevent viewing of topics through profile search, or forum search, as well as unread topics.
1.0.1 - Updated to use text strings rather than hard coded strings
1.0.0 - Initial Version
Title: Re: View Topic Permissions
Post by: teamyakuza on May 13, 2007, 03:22:47 AM
5.     Execute Modification     ./Sources/MessageIndex.php     Test failed

i hv this error
Title: Re: View Topic Permissions
Post by: SlammedDime on May 13, 2007, 05:08:49 AM
Quote from: teamyakuza on May 13, 2007, 03:22:47 AM
5.     Execute Modification     ./Sources/MessageIndex.php     Test failed

i hv this error
Then you must already have another mod that messes with that particular piece of code.  The question is which though, since there are two changes made in MessageIndex... you'll most likely have to manually install the mod.



On a side note, I've discovered that I forgot to change code in the 'unread posts' screen, as well as the search function.  A user will be able to see these threads, but if they try to access them, they will be denied anyway.  I'll make the changes as soon as my new computer is finished being built.  In the mean time, I don't believe there are any other major bugs or issues.
Title: Re: View Topic Permissions
Post by: shadow82x on May 16, 2007, 03:48:43 PM
Seems cool I will try it! I have been looking for something like this
Title: Re: View Topic Permissions
Post by: shadow82x on May 16, 2007, 03:50:15 PM
Execute Modification     ./Sources/MessageIndex.php     Test failed
Title: Re: View Topic Permissions
Post by: babjusi on May 16, 2007, 03:53:32 PM
Whereas I got this error message, can u tell me please what I can do in order to fix it, cause I want to install this mod in my forum, thank u


Install Actions
Installations actions for "View Topic Permissions":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
2. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test successful
4. Execute Modification ./Sources/Display.php Test successful
5. Execute Modification ./Sources/MessageIndex.php Test failed

Title: Re: View Topic Permissions
Post by: SlammedDime on May 16, 2007, 07:32:38 PM
What other mods do both of you have installed?  Can you guys post copies of your MessageIndex.php files inside 'code' tags.

This does install on a vanilla 1.1.2 install, so there must be something else installed that is conflicting.  You guys could manually install this, but I wanna see what other mods are conflicting.
Title: Re: View Topic Permissions
Post by: babjusi on May 16, 2007, 07:37:06 PM
Quote from: Matt @ ARTcom on May 16, 2007, 07:32:38 PM
What other mods do both of you have installed?  Can you guys post copies of your MessageIndex.php files inside 'code' tags.

This does install on a vanilla 1.1.2 install, so there must be something else installed that is conflicting.  You guys could manually install this, but I wanna see what other mods are conflicting.

I have my forum heavily modded, like 36 of them. Which mod could conglicting with your mod? Thank you
Title: Re: View Topic Permissions
Post by: SlammedDime on May 16, 2007, 07:50:13 PM
It would be too much of a time consuming process to go through each mod and see what modifies what to determine the conflict, but if you can post a copy of your messageindex.php file inside code tags  [.code] and [./code] (without the period), then I can take a look at it.
Title: Re: View Topic Permissions
Post by: SlammedDime on May 16, 2007, 09:21:05 PM
Ok, try downloading the mod again.  I changed the install file a bit in how it searches for the things that need to be added.  No code was changed or anything, just the search strings.  If it still doesn't work, shout back at me.
Title: Re: View Topic Permissions
Post by: babjusi on May 16, 2007, 09:36:33 PM
Quote from: Matt @ ARTcom on May 16, 2007, 09:21:05 PM
Ok, try downloading the mod again.  I changed the install file a bit in how it searches for the things that need to be added.  No code was changed or anything, just the search strings.  If it still doesn't work, shout back at me.

Thank you. I will try it again, but tomorrow cause I ain''t logged in in my forum right now. I will let you know how things will go.
Title: Re: View Topic Permissions
Post by: babjusi on May 17, 2007, 03:07:08 PM
Quote from: Matt @ ARTcom on May 16, 2007, 09:21:05 PM
Ok, try downloading the mod again.  I changed the install file a bit in how it searches for the things that need to be added.  No code was changed or anything, just the search strings.  If it still doesn't work, shout back at me.

Now it installed fine, without a single error. Thank you
Title: Re: View Topic Permissions
Post by: SlammedDime on May 17, 2007, 06:36:01 PM
Cool beans!
Title: Re: View Topic Permissions
Post by: shadow82x on May 17, 2007, 07:46:02 PM
So will this work with my error?
Title: Re: View Topic Permissions
Post by: SlammedDime on May 17, 2007, 08:54:35 PM
Only one way to find out....
Title: Re: View Topic Permissions
Post by: shadow82x on May 17, 2007, 09:35:35 PM
So how do you set the permissions?
Title: Re: View Topic Permissions
Post by: SlammedDime on May 17, 2007, 11:02:30 PM
Just like any other permission in your SMF Admin panel.  You can do it via usergroups, or you can do board specific permissions.
Title: Re: View Topic Permissions
Post by: SlammedDime on May 23, 2007, 09:57:54 PM
Ok, I've updated this to version 1.1.0... The changes are outlined in the first post.  You will need to uninstall and remove the previous version before installing this.  If you have custom themes, you'll need to manually apply those changes to the themes (I tried doing this so themes weren't involved, but it wasn't possible to do easily).
Title: Re: View Topic Permissions
Post by: shadow82x on May 24, 2007, 04:22:47 PM
Thanks :)
Title: Re: View Topic Permissions
Post by: pvisser on May 27, 2007, 06:25:18 AM
Oke. THe mod works perfect. But one thing. Administrator can't Search. You can't set premissions. for the Administrators. group. Please advice how to set premision for Administrator to View all in Premissions.

Greeting Patrick From Holland.. :)
Title: Re: View Topic Permissions
Post by: babjusi on May 27, 2007, 06:34:38 AM
The administrator has all the permissions, it is set by default
Title: Re: View Topic Permissions
Post by: pvisser on May 27, 2007, 06:39:43 AM
Thanks for the fast Reply babjusi. Sorry. View all boards yes but when try to do a search. You try to do a search. please.  :) Hope to heare soon.
Title: Re: View Topic Permissions
Post by: pvisser on May 27, 2007, 07:27:49 AM
Oke here the part. I Think because after install you have to enable view premissions for all groups, the is the wrong part. You can't enable it for the Administrator group so i think there is where it went wrong. As an Administrator you can view all topics. but when i do a search as an administrator, i see nothing. Only like this

Found 12345..6 and now topics.

Do you have an solution or tip?..
Title: Re: View Topic Permissions
Post by: babjusi on May 27, 2007, 09:59:28 AM
Hmm, I had never noticed that before pvisser. Let us hope that the mod creator will read your post and can tell us more about it, cause I don''t have any solution or tip about this
Title: Re: View Topic Permissions
Post by: pvisser on May 27, 2007, 10:06:24 AM
Lets hope that yes. I Did an rollback and uninstalled the mod. I go and search for an Ticket System mod. Oke Thanks for al the help my friend..
Title: Re: View Topic Permissions
Post by: SlammedDime on May 27, 2007, 01:34:37 PM
I'll take a look at this...

Ok, I know the problem.  I'll fix this and update the mod.
Title: Re: View Topic Permissions
Post by: SlammedDime on May 27, 2007, 02:05:19 PM
Ok, I've updated the mod.
Title: Re: View Topic Permissions
Post by: egobuster on July 03, 2007, 12:59:32 PM
Hi guys, I am hope you can help.

Essentially my forum has to have a member profiles where each members can make individual posts with restrictions as to who can access, view and reply to these posts.

The concept similar to myspace, but so there is an open forum for members as well.

One solution is to create threads that would have an option to be only visible and accecceble by the selected members. it would be a bonus if I could put a each member in charge of their own thread and they choose as to who can see that thread and access it.

Alternativelly, which is a bit of a headache, I can set up threads through admin board, but then add permission for each of the member.

I do not want to create groups, just need each member to be able to moderate, view and have access to selected threads.


Any suggestions.

Thanks you.


[email protected]
Title: Re: View Topic Permissions
Post by: kamili34 on July 04, 2007, 01:34:51 PM
Thanks mod works  :) :P
Title: Re: View Topic Permissions
Post by: ekfaysal on August 29, 2007, 05:30:46 AM
Hi
i have disable guest to view forum from permissions.
Now when guests enters on post pages, it shows You are not alowed to enter in this forum.
Now i want it to edit and write something like You must register yourself before entering forum
Please help
Title: Re: View Topic Permissions
Post by: searchgr on September 22, 2007, 07:11:40 AM
Is there any way the threads to be visible but not accessible?
Title: Re: View Topic Permissions
Post by: Neorics on October 11, 2007, 07:13:16 AM
can i have like a screenshot of how this mod function? i dont get it... or can someone explain it please

can this mod do this?
http://www.simplemachines.org/community/index.php?topic=199189.0

i basically want to make a specific board be like a view your own thread only but viewable by admin + assigned membergroup

Title: Re: View Topic Permissions
Post by: SlammedDime on October 12, 2007, 12:46:49 AM
Thats exactly how this mod could work.  You assign permissions just as you would for posting replys or creating new topics in a board.  Just as you can set a membergroup to not be able to create new topics, you can set them to only view thier own topics, or all topics (in the case of an admin or moderator).
Title: Re: View Topic Permissions
Post by: Neorics on October 12, 2007, 06:09:15 AM
but it's board specific right? i mean if i dont let the gmods view or reply to other topic in this board they can still have their powers on the other boards right?
Title: Re: View Topic Permissions
Post by: SlammedDime on October 12, 2007, 11:47:45 AM
This can be board specific, OR user group specific, OR both.  Its completely based on the permissions system of SMF.
Title: Re: View Topic Permissions
Post by: Neorics on October 13, 2007, 02:55:04 AM
ok thanks, so i have to set the permission system of the boards to local to set it up right?
Title: Re: View Topic Permissions
Post by: SlammedDime on October 13, 2007, 04:18:44 PM
Yes.
Title: Re: View Topic Permissions
Post by: Neorics on October 14, 2007, 02:20:54 AM
aight thanks, you're my hero hehehe +rep to joo!!!
Title: Re: View Topic Permissions
Post by: Nefeli on November 02, 2007, 01:18:27 PM
Can I install it at smf 1.1.4 without changes?
Title: Re: View Topic Permissions
Post by: SlammedDime on November 02, 2007, 01:31:43 PM
You should be able to.
Title: Re: View Topic Permissions
Post by: Nefeli on November 02, 2007, 01:33:06 PM
Quote from: SlammedDime on November 02, 2007, 01:31:43 PM
You should be able to.
Thanks!!
Title: Re: View Topic Permissions
Post by: nuke_c on December 17, 2007, 05:17:58 PM
This Mod appears to be able to do exactly what I wish, so I installed it, but I am not actually finding where you turn it off and on for each board.
I looked under Modify for the Boards. 

I am sure I am just missing something silly.

Thanks
Title: Re: View Topic Permissions
Post by: SlammedDime on December 18, 2007, 03:50:55 AM
You need to enable advanced board permissions, then you can go to the 'Permissions' section in your admin panel and change any particular board to local permissions and edit as needed.
Title: Re: View Topic Permissions
Post by: goldenboy48 on January 03, 2008, 01:02:21 AM
I have the "view topic permissions" permission mod installed.

If you go to this topic:

http://ecric.net/index.php?topic=623.0

You're displayed with the message - "Please login or register"

Can I display a login form there?
Title: Re: View Topic Permissions
Post by: Grendor on February 08, 2008, 03:08:07 PM
Hello I am looking for a working View topic mod that works with beta 2.1

I need to be able to assign it so some boards people are only able to see their topic they started and their replys to their topics. I must be able to also assign members that can see all post in the same boards and reply to all topics...

Is there a working mod for beta2.1?

If not can someone fix one of the 2 mods that our out for 1.1.4 so they work with beta2.1?

Thanks
Grendor
Title: Re: View Topic Permissions
Post by: SlammedDime on February 09, 2008, 11:53:11 AM
I don't have time at the moment to update it for SMF 2.0, but you're more than welcome to give it a shot if you like.
Title: Re: View Topic Permissions
Post by: Grendor on February 09, 2008, 09:42:29 PM
Thanks if i new anything about php and how html ect wored i might try it but i have 5% experiance just changing code when told too...

But Thanks for the reply..
Grendor
Title: Re: View Topic Permissions
Post by: Grendor on February 11, 2008, 01:29:12 AM
Any one whos a brain and good with smf and beta2.1 that can edit the mod to work?

It would be greatly appreciated...

Thanks
Grendor

EDIT: Please with sugar on top...
Title: Re: View Topic Permissions
Post by: fmofmpls on January 30, 2009, 08:50:07 AM
I'm not sure if this mod does this or not, but what I'm looking for is a mod that will deny read permissions to guests (not members) upon trying to view a particular topic within a board. I'm also running 1.1.7.

Any help is greatly appreciated!   :)
Title: Re: View Topic Permissions
Post by: SlammedDime on January 30, 2009, 07:17:43 PM
No, this mod will not do that.  You may want to look at the View Only Boards mod.
Title: Re: View Topic Permissions
Post by: Bruno36 on September 18, 2009, 10:04:11 AM
Hello!

A version for SMF 2.0 RC1.2 is provided?
Title: Re: View Topic Permissions
Post by: azwebs on September 18, 2009, 08:37:19 PM
I have the mod installed on SMF 1.1.10 and its working really well. . . stops people viewing topics they didn't post. . .

However, I have it setup to protect a child board, and when you view the parent, the last post and author shows up on the far right. . . any way to hide this?

Thanks a lot :)

PS: I might try and do a version for SMF 2.0, depending on whether GCSE's permit or not. I'll post back if I do manage to get around to it. . . I could use the experience ;)
Title: Re: View Topic Permissions
Post by: SlammedDime on September 18, 2009, 08:53:09 PM
I have a version for 2.0 ready, I'm just waiting for RC2 to be released as that's what it was coded on.

As for the last post portion, because of SMF's architecture between board permissions and the way that information is retrieved, it is nearly impossible to circumvent it.
Title: Re: View Topic Permissions
Post by: Bruno36 on September 19, 2009, 02:13:15 AM
SlammedDime thank you very much for the adaptation of this super mod
Title: Re: View Topic Permissions
Post by: azwebs on September 21, 2009, 05:51:27 PM
Ah ok, thanks. I didn't know if there was a way to do this or not, but at least people can't see what got posted ;)
Title: Re: View Topic Permissions
Post by: anewhobby on November 12, 2009, 12:42:32 PM
installed fine.. but how do u use it?
Title: Re: View Topic Permissions
Post by: baijianpeng on December 12, 2009, 06:29:12 PM
Quote from: SlammedDime on September 18, 2009, 08:53:09 PM
I have a version for 2.0 ready, I'm just waiting for RC2 to be released as that's what it was coded on.

Hi, SlammedDime , SMF2 RC2 had been released.

Could you please publish the download link of your Mods for SMF2?

I want to solve this feature request (http://www.simplemachines.org/community/index.php?topic=227010.msg2402134#msg2402134), will this Mods solve that?

Thanks.
Title: Re: View Topic Permissions
Post by: Spoogs on December 22, 2009, 04:03:03 PM
*attempts to grab SlammedDime's attention before daddy duties kick in again :P *
Title: Re: View Topic Permissions
Post by: ChaosEnergy on December 27, 2009, 12:27:34 PM
Quote from: SlammedDime on September 18, 2009, 08:53:09 PM
I have a version for 2.0 ready, I'm just waiting for RC2 to be released as that's what it was coded on.
and i m just waiting for your download link, hahaha
Title: Re: View Topic Permissions
Post by: TravisM661 on January 23, 2010, 11:17:57 PM
RC2 Version? Please?
Title: Re: View Topic Permissions
Post by: Dream of Omnimaga on February 12, 2010, 02:29:26 AM
On SMF 1.1.11, I set a certain board on my forum so only members above 5 posts can view topics, but it seems for postcount based member groups, global forum permissions for them overrides local board permissions for that same group... because members that are in the lower postcount groups can still see posts in that subforum fine.
Title: Re: View Topic Permissions
Post by: Storm3y on March 21, 2010, 08:02:12 PM
Does this mod work for version 2.0 RC2?
Title: Re: View Topic Permissions
Post by: Arantor on March 21, 2010, 08:05:53 PM
Quote from: Storm3y on March 21, 2010, 08:02:12 PM
Does this mod work for version 2.0 RC2?

Nope.
QuoteCompatible With: 1.1.2, 1.1.3

In any case, looks to me as though RSS feeds don't honour this...