Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Feldon on March 09, 2007, 10:04:07 PM

Title: View Any Topic permission
Post by: Feldon on March 09, 2007, 10:04:07 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=687)

The View Any Topic Permission Mod adds an additional permission that can be applied to any board.  When enabled, the board operates as normal.  When disabled, the user is unable to view any topics within the board except topics they started, or topics that have been set as Sticky.

Topics are hidden when viewing the board, 'Members Last Posts', 'Recent Posts', board 'Statistics', "Unread posts since last visist", when using the 'Search' page and when viewing the RSS feed.  Topics are blocked if a member attempts to directly access them.

Generally, the intent is that 'Regular Members' would be only able to view their own posts.  However, at the same time, any administrators, moderators, or any other select group can be granted access to view all posts within the board.  This enables the board to act as a 'Personal Support Helpdesk' page, where a regular user can post a question, and a priviledged member can respond.  It could also be useful in a recruitment forum, where new users can post and moderators can respond, while restricting new users from seeing other new user posts.

The topic/post counts by board have been altered.  However, total topic/post counts will still be displayed in the Statistics page.  As such, it is recommend that post counting be disabled for any board affected by the permission.
Title: Mod Useage
Post by: Feldon on March 10, 2007, 12:09:58 PM
Mod Useage

Go to Admin->Permissions.  Click Settings.  Ensure the "Enable advanced by-board permissions" is checked.
Go to Admin->Permissions.  Click Permissions by Board.  Select the "Local" option next to the board of your choice.  Select the board name.  Hit the Modify button for the user group whose permissions you want to alter.  Underneath the Topics category there should be a new permission called "View Any Topic".

When enabled (the default setting), the board will act as normal.  That is, the user group can 'view any topic'.
When disabled, users in that group will only be able to see topics in that board that they started (i.e. their own topics), or topics that have been stickied.


As an example.  I have a forum that contains two boards, General and Personal Support.  The General board acts as normal, while the Personal Support board utilizes the permission.  Regular Members have the View Any Topic permission disabled within the Personal Support board.  Moderators, Administrators, and the "Problem Solvers" user group have the permission enabled in all boards.  This ensures that Regular Members can only see their own topics within the Personal Support board, while the other user groups can see and respond to all topics.

Hope that helps!
Title: Re: View Any Topic permission
Post by: char39 on March 11, 2007, 09:49:15 AM
I wonder if this is what I have been looking for.  This is a post I made yesterday http://www.simplemachines.org/community/index.php?topic=156983.msg1001270#msg1001270  can you please tell me if this is what you have?

Thank you
Title: Re: View Any Topic permission
Post by: Ryuoh on March 11, 2007, 08:55:02 PM
This mod is just about perfect it is just what i needed but there is a hole in it. The rss feed from your smf site will still contain the post even if the posts in that certain board are not readable.
Title: Re: View Any Topic permission
Post by: Feldon on March 12, 2007, 05:41:33 PM
Quote from: Tory on March 11, 2007, 09:49:15 AM
I wonder if this is what I have been looking for.  This is a post I made yesterday http://www.simplemachines.org/community/index.php?topic=156983.msg1001270#msg1001270  can you please tell me if this is what you have?

Thank you

What you want is this... http://custom.simplemachines.org/mods/index.php?mod=236
It has not yet been updated for 1.1.2.  It lets users see the board, but not go inside to see the posts.
Title: Re: View Any Topic permission
Post by: Feldon on March 12, 2007, 06:50:52 PM
Version 1.5 is released to fix the RSS feed bug.  Thanks for catching that.  There are just SOOO many spots where posts are made visible.

EDIT:  As a reminder, the uninstall script of the old version will remove the permission.  Hence, when you install the new version you will need to re-assign the permission to the various user groups/boards.
Title: Re: View Any Topic permission
Post by: joh87swe on March 26, 2007, 06:53:51 PM
I want so that guests can view a forum and its topics but when the guest click on a topic to enter into it on a that board, he can't see it and is asked to login or register.
Can this mod be something for me?
Title: Re: View Any Topic permission
Post by: Feldon on March 27, 2007, 05:11:12 PM
Quote from: joh87swe on March 26, 2007, 06:53:51 PM
I want so that guests can view a forum and its topics but when the guest click on a topic to enter into it on a that board, he can't see it and is asked to login or register.
Can this mod be something for me?

My mod wouldn't let the guests see any topics but their own.

What I think you want is the Read Topic Permission mod.
http://custom.simplemachines.org/mods/index.php?mod=231

The Hide Board mod would allow guest to see that a board exists, but not actually enter it.
http://custom.simplemachines.org/mods/index.php?mod=236
Title: Re: View Any Topic permission
Post by: webs86 on April 04, 2007, 04:24:00 PM
Hi... I have a problem to install this mod. The package manager send me a parse error in the modifications (you can view the detail on attach screenshot).

I have test it on smf 1.1.1 and 1.1.2.

bye bye
Title: Re: View Any Topic permission
Post by: Feldon on April 04, 2007, 04:59:21 PM
Unfortunately, there were changes to the code between 1.1.1 and 1.1.2 that required changes to my mod; hence, my mod only works for SMF 1.1.2.

Make sure you have a clean install of SMF 1.1.2.  Then try my mod again.
Title: Re: View Any Topic permission
Post by: webs86 on April 04, 2007, 05:04:22 PM
My installation in new and I havn't jet added any forum then the default. My problem is during the installation. Now I probe an manual installation.

Bye bye
Title: Re: View Any Topic permission
Post by: brogers on April 09, 2007, 07:04:47 PM
This mod seems to be what I want in order to set up a private help board in my forum.

I installed the mod (version 1.5) without any errors.  However, underneath the Topics category in Permissions there is a new checked check box with a blank description.  I.e.  the "View Any Topic" description does not display.  Any ideas?

I am using SMF version 1.1.2
Title: Re: View Any Topic permission
Post by: Ryuoh on April 10, 2007, 06:42:12 AM
check the Modifications.english.php in the templates/default/language folder sometimes this package will add the code for languages after the ?> closing php statement just change it so ?> is at the very end
Title: Re: View Any Topic permission
Post by: Feldon on April 10, 2007, 05:11:27 PM
Quote from: Ryuoh on April 10, 2007, 06:42:12 AM
check the Modifications.english.php in the templates/default/language folder sometimes this package will add the code for languages after the ?> closing php statement just change it so ?> is at the very end.

Good find Ryuoh.  It looks like the <search position="end"> install command is a little buggy.  And by buggy I mean that it has caused similar problems for other mod-makers as well.  In addition to not always installing correctly, it also doesn't uninstall properly.  The result is if you've uninstalled my mod, the //View Any Topic lines in your Modifications.english.php file will still be there.

I've replaced it with an equivalent <search position="replace"> command and re-released as version 1.6.
Title: Re: View Any Topic permission
Post by: Ryuoh on April 10, 2007, 05:29:49 PM
i was wondering if this protected against using Request notification on new topics. Though its not really that important because i disable that for people that are not able to view topics anyway
Title: Re: View Any Topic permission
Post by: brogers on April 10, 2007, 06:39:09 PM
Thanks Ryuoh and Feldon.  I have located the Modifications.english.php in the Themes/default/language folder.  However I'm not sure what needs to be changed.  The contents of the file is:

<?php
// Version: 1.1; Modifications

// View Own Topic Permission mod
$txt['permissionname_view_any_topic'] = 'View any topic';
$txt['permissionhelp_view_any_topic'] = 'Allow users to view any topic.  Users can always see their own topics or topics set as sticky.';

?>

What am I missing?  Also, I was not able to locate version 1.6 of this mod.
Title: Re: View Any Topic permission
Post by: Feldon on April 10, 2007, 06:44:38 PM
Quote from: Ryuoh on April 10, 2007, 05:29:49 PM
i was wondering if this protected against using Request notification on new topics. Though its not really that important because i disable that for people that are not able to view topics anyway

Hehe, you keep finding problems! Good work.  :P

My mod does not protect against Topic/Board Notifications nor Announcements.  I looked to see if I could work around them but these are a little too complicated.  I think its simpler for me to recommend that you ensure these features are disabled for boards affected by the permission.
Title: Re: View Any Topic permission
Post by: Feldon on April 10, 2007, 06:51:20 PM
Quote from: brogers on April 10, 2007, 06:39:09 PM
Thanks Ryuoh and Feldon.  I have located the Modifications.english.php in the Themes/default/language folder.  However I'm not sure what needs to be changed.  The contents of the file is:

<?php
// Version: 1.1; Modifications

// View Own Topic Permission mod
$txt['permissionname_view_any_topic'] = 'View any topic';
$txt['permissionhelp_view_any_topic'] = 'Allow users to view any topic.  Users can always see their own topics or topics set as sticky.';

?>

What am I missing?  Also, I was not able to locate version 1.6 of this mod.

All downloads of my mod are now located here: http://custom.simplemachines.org/mods/index.php?mod=687  Version 1.6 is definitely there now if it wasn't before.

That being said, your Modifications.english.php file looks fine.  Is your board in another language besides English?  If it is, its possible there's a Modifications.<language>.php file that needs to be updated.  To be honest, I'm not really sure how it works with other languages.

If your board is an English board then I'm sorry, but I don't know the answer.  Anyone else have suggestions?


Title: Re: View Any Topic permission
Post by: brogers on April 11, 2007, 10:54:44 AM
Quote from: Feldon on April 10, 2007, 06:51:20 PM

. . . Is your board in another language besides English?&nbsp; If it is, its possible there's a Modifications.<language>.php file that needs to be updated.&nbsp; To be honest, I'm not really sure how it works with other languages.

If your board is an English board then I'm sorry, but I don't know the answer.&nbsp; Anyone else have suggestions?




Yes, my board is in English.

And, thanks for the location of the 1.6 update.

Post Update:

I applied the 1.6 version of the mod and the behavior is the same as with version 1.5 (no description given for the new permissions check box).
Title: Re: View Any Topic permission
Post by: Feldon on May 09, 2007, 05:45:37 PM
Sorry, I didn't notice your update until today.

What version of SMF are you running?  The mod is only compatible with 1.1.2.  There were changes between some of the more recent versions that affected my mod.

Otherwise, I'm not sure what the problem is.
Title: Re: View Any Topic permission
Post by: RoarinRow on May 17, 2007, 07:50:47 PM
Very cool, thank you.   8)
Title: Re: View Any Topic permission
Post by: egobuster on July 03, 2007, 12:59:19 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 Any Topic permission
Post by: PoLlama on July 05, 2007, 08:38:26 PM
Could you add a feature in to allow people to view topics they cannot see, if they have the exact URL?

Like a new permission
"Allow user to view topics as long as they have URL".

I want to add a pastebin to my forum, in terms of forums, a board where all topics except stickies are hidden, but can be accessed through the exact URL only. This is useful for stuff like temporary downloads, and private discussions. It seems no one knows about pastebins on SMF, but i've seen a few vBulletin forums with them.

Another idea...
"Allow user to view topics created by buddies".

If you do happen to implement one of these ideas thanks.
Title: Re: View Any Topic permission
Post by: Feldon on July 07, 2007, 07:55:13 PM
Just fyi, my mod's mostly a one time thing.  I'll be maintaining it through SMF version changes, but I don't plan to add any new features.

Regarding the pastebin, how would you make your friends aware of its availability?  Would sending a PM to multiple people with the code or whatever in it not be the same thing?  You're already going to have to send them the link privately somehow.
Title: Re: View Any Topic permission
Post by: Paracelsus on July 08, 2007, 09:59:58 AM
I think I've detected a bug:

After install, it gave me the error below... this happens when somenone tries to look at other members messages in the profile, as long as that member has more than 1000 messages:

Column 'ID_MSG' in where clause is ambiguous
Ficheiro: /home/forumscp/public_html/Sources/Profile.php
Linha: 1463

After some research we believe to have detected the problem in the following code:
// Guess the range of messages to be shown.
if ($msgCount > 1000)
{
$margin = floor(($max_msg_member - $min_msg_member) * (($start + $modSettings['defaultMaxMessages']) / $msgCount) + .1 * ($max_msg_member - $min_msg_member));
$range_limit = $reverse ? 'ID_MSG < ' . ($min_msg_member + $margin) : 'ID_MSG > ' . ($max_msg_member - $margin);
}

$context['page_title'] = $txt[458] . ' ' . $user_profile[$memID]['realName'];

// View Any Topic Permission
$request = db_query("
SELECT b.ID_BOARD
FROM {$db_prefix}boards AS b", __FILE__, __LINE__);
$normal_boards = array(-1);
while ($row = mysql_fetch_assoc($request)) {
if (allowedTo('view_any_topic', $row['ID_BOARD']))
$normal_boards[] = $row['ID_BOARD'];
}
mysql_free_result($request);

// Find this user's posts.  The left join on categories somehow makes this faster, weird as it looks.
$looped = false;
while (true)
{
$request = db_query("
SELECT
b.ID_BOARD, b.name AS bname, c.ID_CAT, c.name AS cname, m.ID_TOPIC, m.ID_MSG,
t.ID_MEMBER_STARTED, t.ID_FIRST_MSG, t.ID_LAST_MSG, m.body, m.smileysEnabled,
m.subject, m.posterTime
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT), {$db_prefix}messages AS mf
WHERE m.ID_MEMBER = $memID
AND m.ID_TOPIC = t.ID_TOPIC
AND t.ID_BOARD = b.ID_BOARD
AND mf.ID_MSG = t.ID_FIRST_MSG
AND ( b.ID_BOARD IN (" . implode(', ', $normal_boards) . ") OR t.isSticky = 1 OR mf.ID_MEMBER = $ID_MEMBER )" . (empty($range_limit) ? '' : "
AND $range_limit") . "
AND $user_info[query_see_board]
ORDER BY m.ID_MSG " . ($reverse ? 'ASC' : 'DESC') . "
LIMIT $start, $maxIndex", __FILE__, __LINE__);

// Make sure we quit this loop.
if (mysql_num_rows($request) === $maxIndex || $looped)
break;
$looped = true;
$range_limit = '';
}


So we've added m.ID_MSG to both ID_MSG expressions (near the beginning of the above code) and the problem got solved while maintaining the ability of regular users not being able to see no-permission messages in others profiles $range_limit = $reverse ? 'm.ID_MSG < ' . ($min_msg_member + $margin) : 'm.ID_MSG > ' . ($max_msg_member - $margin);
Title: Re: View Any Topic permission
Post by: Feldon on July 12, 2007, 05:50:05 PM
Another good find!

I agree with your solution and have implemented it.

An updated package, version 1.7, is now available from the mod download page.

http://custom.simplemachines.org/mods/index.php?mod=687
Title: Re: View Any Topic permission
Post by: ButtonBash on September 23, 2007, 05:49:39 PM
With v1.7, I'm getting many 'fails' when getting ready to install.

Using SMF 1.1.3, which this mod is stated to work with.

Seemed to be causing quite a stir with the installer. I'm looking forward to a solution, as this mod would be incredibly handy to use.
Title: Re: View Any Topic permission
Post by: Feldon on September 23, 2007, 10:51:38 PM
Quote from: ButtonBash on September 23, 2007, 05:49:39 PM
With v1.7, I'm getting many 'fails' when getting ready to install.

Using SMF 1.1.3, which this mod is stated to work with.

Seemed to be causing quite a stir with the installer. I'm looking forward to a solution, as this mod would be incredibly handy to use.

I'm sorry to see that.  This mod should install just fine with a fresh install of SMF.  If you are running other mods, we may be affecting some of the same blocks of code.

I would try uninstalling the other mods, installing my mod, and then installing the other mods again.  If this doesn't work, you can try manually installing my mod (or one of the other overlapping mods).  With mine, you need to unzip the package and follow the instructions in the ViewAnyTopicPermission.xml file.  You will likely find that the code blocks you are instructed to 'replace' will have been altered by another mod, so be careful.  Keep a back-up of the original files so that you can upload them again if anything gets screwed up.
Title: Re: View Any Topic permission
Post by: Feldon on September 23, 2007, 10:52:48 PM
I made a small change to the mod so that the version number appears correctly on the Packages page.  I updated the mod download page.  There were no 'real' changes.

UPDATE: SMF 1.1.4 was released today.  The mod continues to appear to work correctly.
Title: Re: View Any Topic permission
Post by: Paracelsus on September 26, 2007, 04:03:39 AM
Hi Feldon...

I've just noticed that the "Recent Posts" window actually shows the posts made in a board where this MOD is applied, ie., only Staff has "View Any Topic" permission and the board is without Post/Topic Count, Notifications and Announcements. It shows the message name and who wrote, although it's not possible for a guest to actually go into the topic and read it.

I would like to hide them in the list and from what I've read it should be possible... Since it happens to me both in default and custom themes, I've even checked the code changed in Stats.php and it matches perfectly the one in the original package... there's one more MOD on Subs file, the Enhancement Statistics MOD, but I don't know if it's some sort of lack of compatibility between them.

Can you address this question and see if something is wrong?
Title: Re: View Any Topic permission
Post by: Feldon on September 26, 2007, 05:13:39 PM
Quote from: Paracelsus on September 26, 2007, 04:03:39 AM
Hi Feldon...

I've just noticed that the "Recent Posts" window actually shows the posts made in a board where this MOD is applied, ie., only Staff has "View Any Topic" permission and the board is without Post/Topic Count, Notifications and Announcements. It shows the message name and who wrote, although it's not possible for a guest to actually go into the topic and read it.

I would like to hide them in the list and from what I've read it should be possible... Since it happens to me both in default and custom themes, I've even checked the code changed in Stats.php and it matches perfectly the one in the original package... there's one more MOD on Subs file, the Enhancement Statistics MOD, but I don't know if it's some sort of lack of compatibility between them.

Can you address this question and see if something is wrong?

I'm sorry you are having trouble.

To begin, I'd like to make sure we are discussing the same screen.  If you go to the home page of your forum, most themes have a "Forum Stats" section at the bottom.  In that section is a link to "View the most recent posts on the forum."  That opens the Recent Posts screen.

In my case, I'm currently running SMF version 1.1.4 with TinyPortal 0.9.8 and no other mods.  The recent posts appear to be correctly hidden when I'm logged in as a regular member.

The fact that your Stats.php file appears to be unchanged from the original SMF file, suggests that the mod isn't properly installed.  The Stats.php file should be altered by the mod.  I would try uninstalling and then reinstalling my mod.  If this doesn't work, you can try manually installing my mod.  To manually install, simply unzip the package and follow the instructions in the ViewAnyTopicPermission.xml file.

If necessary, can you point me to the Enhancement Statisticis Mod?  There appear to be a couple mods with a similar name.


As an aside, I think the next time I release a new version, I am going to try to reduce the amount of code I reference in the installer.  This should make it less likely that another mod interferes.
Title: Re: View Any Topic permission
Post by: Paracelsus on September 27, 2007, 02:46:21 AM
It is likely we are NOT discussing the same thing... ;D ... let's see:

In the Info Center, BEFORE the Forum Stats, you have this topic list, which is called "Recent Posts", a list to which you can define how many topics will appear there in the admin theme config (1, 2, 10 or 0 if you don't want any to appear). In that list I can see as a guest the subject and author messages posted in no-access boards well configured with the View Any Topic disabled.

I actually checked all files that are subject to change after I posted here and there's no doubt that the everything is as supposed - all the new code is inserted correctly. I supposed it would be something in Stats.php but it can be in Recent.php or somewhere else.
Title: Re: View Any Topic permission
Post by: Paracelsus on September 27, 2007, 03:22:14 AM
I found the piece of code in BoardIndex.template.php... maybe this function isn't addressed in the MOD (although I actually think it should):

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt[685], '
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">';

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
Title: Re: View Any Topic permission
Post by: Feldon on September 27, 2007, 05:27:39 PM
Oh! Doh...  I will fix it.  Should have something by the end of the weekend for sure.

Another good find!

My forum had that set to 0 posts so I never saw it.
Title: Re: View Any Topic permission
Post by: Feldon on September 28, 2007, 02:55:15 PM
Version 1.8 has been made available from the mod's download page: http://custom.simplemachines.org/mods/index.php?mod=687

The changes are:
- [BUGFIX] I previously missed the recent posts explicitly listed in the Info Center.  This has been corrected.
- [BUGFIX] The Top 10 Replies and Top 10 Views sections of the Stats page was simply hiding posts in the top 10 that were in a board with the permission disabled, meaning that the member might see fewer than 10 replies/views.  It now finds the top 10 replies/views not in the board with the permission disabled.
- Modified the ViewAnyTopicPermission.xml file to look for smaller chunks of code.  Hopefully this will lead to fewer incompatabilities with other mods.

If I've broken anything, or if you find anything else, please let me know!
Title: Re: View Any Topic permission
Post by: Paracelsus on September 28, 2007, 06:05:31 PM
It's working fine now!  ;D
Thanks!!!

clap clap clap
Title: Re: View Any Topic permission
Post by: Paracelsus on September 28, 2007, 06:18:01 PM
Actually, there's something missing  ;D ;D

When in Child-Board, it's possible for a member with limited access to it (view any permission enabled) to see the last message title, date and author for any message (even  others messages) from the "mother"-board.
Title: Re: View Any Topic permission
Post by: Feldon on September 28, 2007, 07:59:33 PM
Version 1.9 is now available from the mod's download page: http://custom.simplemachines.org/mods/index.php?mod=687

The changes are:
- [BUGFIX] I previously missed the child board's last post information while viewing the parent board.  This has been corrected.

Thank you Paracelsus for finding this.

Again, if I've broken anything, or if you find any other problems, just let me know.

As an aside, there really is a remarkable amount of code duplication throughout SMF.  There seems to be an ever-increasing number of places it is looking for board/topic information.  From what I can tell, the reason is because depending on the function (recent posts, last posts, normal board viewing, notifications, etc) a slightly different database query is required.  This makes my job hard, because if I miss any little function (which I apparently have 4 times now), my mod will be incomplete.  I hope we have now caught everything, but I wouldn't bet on it.
Title: Re: View Any Topic permission
Post by: Paracelsus on September 29, 2007, 08:43:52 AM
Working fine so far... ;)
Title: Re: View Any Topic permission
Post by: Paracelsus on September 29, 2007, 11:24:29 AM
Here I am again... LOL

When in profile, looking at the users messages gives me this error:

QuoteNot unique table/alias: 'mf'
Ficheiro: /home/forumscp/public_html/Sources/Profile.php
Linha: 1469

Nota: Parece que a sua base de dados precisa de ser actualizada. Os ficheiros estão na versão SMF 1.1.4, enquanto a sua base de dados está na versão1.1.2. Recomenda-se que seja executada a actualização para a última versão.

The last part is in portuguese and means that the SMF files are in version 1.1.4 while the database is in version 1.1.2.

The code in Profile which matches the line is the following (line 1469 is the last one in the bottom):
// View Any Topic Permission
$request = db_query("
SELECT b.ID_BOARD
FROM {$db_prefix}boards AS b", __FILE__, __LINE__);
$normal_boards = array(-1);
while ($row = mysql_fetch_assoc($request)) {
if (allowedTo('view_any_topic', $row['ID_BOARD']))
$normal_boards[] = $row['ID_BOARD'];
}
mysql_free_result($request);

// Find this user's posts.  The left join on categories somehow makes this faster, weird as it looks.
$looped = false;
while (true)
{
$request = db_query("
SELECT
b.ID_BOARD, b.name AS bname, c.ID_CAT, c.name AS cname, m.ID_TOPIC, m.ID_MSG,
t.ID_MEMBER_STARTED, t.ID_FIRST_MSG, t.ID_LAST_MSG, m.body, m.smileysEnabled,
m.subject, m.posterTime
FROM ({$db_prefix}messages AS m, {$db_prefix}messages AS mf, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT), {$db_prefix}messages AS mf
WHERE m.ID_MEMBER = $memID
AND m.ID_TOPIC = t.ID_TOPIC
AND t.ID_BOARD = b.ID_BOARD
AND mf.ID_MSG = t.ID_FIRST_MSG
AND ( b.ID_BOARD IN (" . implode(', ', $normal_boards) . ") OR t.isSticky = 1 OR mf.ID_MEMBER = $ID_MEMBER )
AND t.ID_BOARD = b.ID_BOARD" . (empty($range_limit) ? '' : "
AND $range_limit") . "
AND $user_info[query_see_board]
ORDER BY m.ID_MSG " . ($reverse ? 'ASC' : 'DESC') . "
LIMIT $start, $maxIndex", __FILE__, __LINE__);
Title: Re: View Any Topic permission
Post by: Paracelsus on September 29, 2007, 02:23:09 PM
It can be due to manual modifications that I did instead of uninstalling and installign it again (because I have other mods there)...

... perhaps it would be asier if you can put the specific changes from one version to another, let's say from 1.7 to 1.9
Title: Re: View Any Topic permission
Post by: Feldon on September 29, 2007, 02:54:58 PM
Well at least that's an easy fix...

FROM ({$db_prefix}messages AS m, {$db_prefix}messages AS mf, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT), {$db_prefix}messages AS mf


should be

FROM ({$db_prefix}messages AS m, {$db_prefix}messages AS mf, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)


In the earlier version I had put the "{$db_prefix}messages AS mf" at the end of the second line.  In the new version I put it in the middle of the first line.
Title: Re: View Any Topic permission
Post by: Paracelsus on September 29, 2007, 02:59:22 PM
 ;) thanks, great work!... I think now everything is ok... (i shouldn't say this, because it seems to give bad luck ;D)

Title: Re: View Any Topic permission
Post by: Sakae on November 26, 2007, 06:25:58 PM
Does your mod allows users to read topics created by admins? If not, is it possible to modify your mod (that's some paradox lol) to do that?

My objective is create a topic in a specific board so users can post into it. Still, they can only see admin's and theirs message, not all messages.

Would it be possible to do that with this mod?
Title: Re: View Any Topic permission
Post by: Feldon on November 27, 2007, 06:00:00 PM
I don't think this mod does quite what you want.  Perhaps if an admin starts a post, a user responds, and then the admin deletes his message?  Not very elegant, but it might work.

Otherwise, a post can be made visible to all by stickying it, or the admin would have to wait for a user to start a topic, then it will be private.
Title: Re: View Any Topic permission
Post by: Sketter on December 02, 2007, 03:22:28 PM
Suggestion.

What about adding posting restriction to your mod.

Something i used with phpbb2.

Be able to start a topic, but no one can respond other then mods/admins.

This feature is in phpbb2 and it is a "forum permission"

(If this is done already can some1 point me to the right direction? )

Sketter
Title: Re: View Any Topic permission
Post by: Feldon on December 02, 2007, 04:36:14 PM
Quote from: Sketter on December 02, 2007, 03:22:28 PM
Suggestion.

What about adding posting restriction to your mod.

Something i used with phpbb2.

Be able to start a topic, but no one can respond other then mods/admins.

This feature is in phpbb2 and it is a "forum permission"

(If this is done already can some1 point me to the right direction? )

Sketter

That's what this mod does.  Users with the "View Any Topic" permission disabled for the forum can only see topics they start (or stickied topics), while administrators and users with the "View Any Topic" permission enabled for the forum can see and respond to all topics.
Title: Re: View Any Topic permission
Post by: Sketter on December 04, 2007, 12:04:54 AM
Does it also allow everyone to see and read every topic?  Even ones they didn't start?

This would help me because on our forums we want to allow any public inquiry to be viewed by the public, but response only by staff.
Title: Re: View Any Topic permission
Post by: Paracelsus on December 04, 2007, 04:43:52 AM
Quote from: Sketter on December 04, 2007, 12:04:54 AM
Does it also allow everyone to see and read every topic?  Even ones they didn't start?

This would help me because on our forums we want to allow any public inquiry to be viewed by the public, but response only by staff.

If you want everybody to see the topics in a certain board you just have to disable this feature for all groups and then, if you don't want them to reply (just the staff), you can disbale the permission to answer topis in that board... of course, there's no way to do it per topic, just per-board.
Title: Re: View Any Topic permission
Post by: Feldon on December 04, 2007, 05:14:24 PM
Quote from: Paracelsus on December 04, 2007, 04:43:52 AM
Quote from: Sketter on December 04, 2007, 12:04:54 AM
Does it also allow everyone to see and read every topic?  Even ones they didn't start?

This would help me because on our forums we want to allow any public inquiry to be viewed by the public, but response only by staff.

If you want everybody to see the topics in a certain board you just have to disable this feature for all groups and then, if you don't want them to reply (just the staff), you can disbale the permission to answer topis in that board... of course, there's no way to do it per topic, just per-board.

You don't need my mod for that.  I believe in the advanced board permissions you will find one for replying.  So you can disable replying to a specific board for regular members (or a specific user group), but leave it enabled for mods/admins/specific groups.

My mod actually hides the posts, which is clearly not what you want.
Title: Re: View Any Topic permission
Post by: Sketter on December 06, 2007, 08:20:47 PM
Quote from: Paracelsus on December 04, 2007, 04:43:52 AM

If you want everybody to see the topics in a certain board you just have to disable this feature for all groups and then, if you don't want them to reply (just the staff), you can disbale the permission to answer topis in that board... of course, there's no way to do it per topic, just per-board.

When you mean per-board do you mean the whole forum system?  or the board within each category?

Quote from: Feldon on December 04, 2007, 05:14:24 PM


You don't need my mod for that.  I believe in the advanced board permissions you will find one for replying.  So you can disable replying to a specific board for regular members (or a specific user group), but leave it enabled for mods/admins/specific groups.

My mod actually hides the posts, which is clearly not what you want.

I do not see this advanced board permission, i would love to, but i don't.  Other then "Permission by board", but even that doesn't allow me to restrict people from replying.....perhaps I'm just not looking in the right place?
Title: Re: View Any Topic permission
Post by: Feldon on December 10, 2007, 05:11:21 PM
SMF tends to refer to the entire software as the Forums and each individual category as a board or sub-board.

I was a little vague when I mentioned advanced board permissions.  That's my term, not SMF's... to access the so-called advanced permissions login to your forums, click Admin, click Permissions (under the Members menu), click Permissions by Board, click the Switch to Local option next to the board for which you want to enable advanced (or Local) permissions, and click the Board name. 

You'll now be presented with user group permissions specific to that board.  Click modify for a user group, such as Regular Members.  You will see a number of more advanced permissions options are available.  One such option is under the Topics section and is called Post Replies to Topic.  I think you can figure it out from here.

Good luck!
Title: Re: View Any Topic permission
Post by: Green Death on January 23, 2008, 11:01:00 AM
Is anyone updating this mod for 2.0?
Title: Re: View Any Topic permission
Post by: lood on February 01, 2008, 05:45:55 AM
The zip file is corrupt
Title: Re: View Any Topic permission
Post by: Aleksi "Lex" Kilpinen on February 01, 2008, 05:56:13 AM
Quote from: lood on February 01, 2008, 05:45:55 AM
The zip file is corrupt
Noticed the same just now.
Title: Re: View Any Topic permission
Post by: Feldon on February 01, 2008, 05:52:43 PM
Quote from: LexArma on February 01, 2008, 05:56:13 AM<br />
Quote from: lood on February 01, 2008, 05:45:55 AM<br />The zip file is corrupt<br />
<br />Noticed the same just now. <br />

Should be corrected now.  I suspect this happened after the SMF website problems a couple weeks ago.


Quote from: Green Death on January 23, 2008, 11:01:00 AM<br />Is anyone updating this mod for 2.0?<br />

Quite frankly I was hoping that the new permissions system for SMF 2.0 would negate the need for this mod.  Since I'm not a Charter member I don't have access to the beta to find out.
Title: Re: View Any Topic permission
Post by: spaZzZilla on March 21, 2008, 02:33:48 PM
Quote from: Feldon on February 01, 2008, 05:52:43 PM
Quite frankly I was hoping that the new permissions system for SMF 2.0 would negate the need for this mod.  Since I'm not a Charter member I don't have access to the beta to find out.

I don't think 2.0 has this permission.  I'd still like the upgrade :)  It's a great mod.
Title: Re: View Any Topic permission
Post by: Green Death on March 21, 2008, 03:25:13 PM
For me it's the only thing that is stopping me from using 2.0. Does anyone want to upgrade this for 2.0?
Title: Re: View Any Topic permission
Post by: spaZzZilla on March 21, 2008, 08:05:56 PM
Yeah me too.... This is one of the few crucial things I need for my forum... We could start PMing Feldon until he updates it ;) jk.  If I have time this weekend I'll look through the mod and 2.0 in more depth to see what the upgrade would entail....but no promises, at all, for anything.
Title: Re: View Any Topic permission
Post by: MagicG on March 25, 2008, 04:50:13 PM
I have added French translation in this mod.


La traduction française de View Any Topic permission est en fichier joint.
Title: Re: View Any Topic permission
Post by: shadow82x on April 22, 2008, 04:42:17 PM
I would too like to see this updated for SMF2.0.
Title: Re: View Any Topic permission
Post by: spiegelj on May 08, 2008, 02:53:11 AM
this mod is great im using it on 1.1.5 it works fine
Title: Re: View Any Topic permission
Post by: wayneh on July 17, 2008, 12:34:22 PM
I've installed v1.9 on SMF v1.1.5 (a fresh installation - no other mods) and I can't see the 'view any topic' option anywhere.

I followed the install directions (yes, 'enable advanced..." is checked)
and get nothing.

Any suggestions?

EDIT: I've reinstalled the package, and now I get the checkbox, but no text label.
So the row where "View Any Topic" is, has no text, just the check box.....
Title: Re: View Any Topic permission
Post by: olabaz on July 29, 2008, 01:53:16 PM
K how do I get this working because when I upload it through admin I get modification parse errors.  So what do I do?
USING SMF 1.1.5
Title: Re: View Any Topic permission
Post by: Feldon on July 29, 2008, 05:40:39 PM
FYI, I am no longer supporting this mod.  The last version I verified was 1.1.4.  I asked Oldiesman to take on development for SMF 2.0.  Assuming he does, however, he will start his own project page with a different name for the mod.

Thanks for your interest in my mod!
Title: Re: View Any Topic permission
Post by: Astarta on August 04, 2008, 03:47:21 PM
I understand that this mod is no longer supported, but anyway, probably my post could be useful to someone who'll maintain it in future and moreover I was sent here from " SMF 1.x Support" board :)

Seems that the mod has the issue with SMF 1.1.5. After installing this mod I started to get the following message in error log:
(URL)  http://rat.ru/forum/index.php?board=10.360;sort=subject
Database error: Unknown column 'memf.ID_MEMBER' in 'where clause'
file: /srv/www/rat/www/htdocs/forum/Sources/MessageIndex.php
line: 492

see: http://www.simplemachines.org/community/index.php?topic=253395

My forum has also the below modifications installed:
1.     Member Notepad      1.0
2.     VisualWarning      1.31
3.     Reason For Editing Mod      1.14
4.     Merge Double Posts      1.0.6
5.     Ignore Boards      2.0.1
6.     Sticky First Post (extends sticky topic)
7.      Member Color Link      1.8.7
8.    Signature Settings Mod      1.0
9.     View Any Topic Permission Mod      1.9
10.   Topic Solved      1.22
Title: Re: View Any Topic permission
Post by: aspenique on September 01, 2008, 03:44:03 AM
Does anyone know of an updated, similarly-functioning mod?  I've been poking around but no luck so far.  :)
Title: Re: View Any Topic permission
Post by: Paracelsus on September 01, 2008, 03:46:25 AM
Quote from: aspenique on September 01, 2008, 03:44:03 AM
Does anyone know of an updated, similarly-functioning mod?  I've been poking around but no luck so far.  :)

This one works quite well as it is in 1.1.5.
Title: Re: View Any Topic permission
Post by: aspenique on September 01, 2008, 03:56:37 AM
Apologies, I didn't specify - was wondering if there were something ready for 2.0.  :)
Title: Re: View Any Topic permission
Post by: Rumbaar on November 18, 2008, 06:16:57 AM
There appears to be a bug/issue with MessageIndex.php changes.  As it stands when you try to sort by subject in the 2nd and more pages have a error.
Unknown table 'memf' in where clause
File: /Sources/MessageIndex.php
Line: 506


So changes:
AND ml.ID_MSG = t.ID_LAST_MSG" : (in_array($context['sort_by'], array('starter', 'subject')) ? "
AND ( " . (allowedTo('view_any_topic')?1:0) . " > 0 OR memf.ID_MEMBER = $ID_MEMBER OR t.isSticky = 1 )

To:
AND ml.ID_MSG = t.ID_LAST_MSG" : (in_array($context['sort_by'], array('starter', 'subject')) ? "
AND ( " . (allowedTo('view_any_topic')?1:0) . " > 0 OR mf.ID_MEMBER = $ID_MEMBER OR t.isSticky = 1 )


Also change:
AND ml.ID_MSG = t.ID_LAST_MSG
AND ( " . (allowedTo('view_any_topic')?1:0) . " > 0 OR memf.ID_MEMBER = $ID_MEMBER OR t.isSticky = 1 )
AND mf.ID_MSG = t.ID_FIRST_MSG

To:
AND ml.ID_MSG = t.ID_LAST_MSG
AND ( " . (allowedTo('view_any_topic')?1:0) . " > 0 OR mf.ID_MEMBER = $ID_MEMBER OR t.isSticky = 1 )
AND mf.ID_MSG = t.ID_FIRST_MSG
Title: Re: View Any Topic permission
Post by: Paracelsus on November 18, 2008, 07:00:12 AM
Thanks Rumbaar!

I had already noticed that bug but never reported it. It works much better now. ;)
Title: Re: View Any Topic permission
Post by: OzExcalibur on July 05, 2009, 07:25:45 AM
Has anyone had any success doing a manual install of this mod on a 2.0 RC1-1 forum?

Is there anything similar that will work on 2.0 RC1-1?
Title: Re: View Any Topic permission
Post by: nathan42100 on July 13, 2009, 09:52:42 PM
I would like to know also!
Title: Re: View Any Topic permission
Post by: Paracelsus on July 14, 2009, 05:19:08 AM
I don't think there's anything similar in SMF 2.0, which is a pity.

We currently use it in a board for support questions where each topic can only be seen by its author and the forum staff, allowing discussion about user's personal / private issues with admins and moderators.
Title: Re: View Any Topic permission
Post by: nathan42100 on July 14, 2009, 11:12:01 AM
It looks like with some careful modification someone can port this to 2.0. I'll take a more indepth look tonight
Title: Re: View Any Topic permission
Post by: nathan42100 on July 14, 2009, 08:04:33 PM
Its way too much for me to do, sorry. Plus I'm no expert on SMF mod coding or database coding so it most likely would kill the forum if I tried

http://custom.simplemachines.org/mods/index.php?mod=228
^Thats probably going to be as close as you can get
Title: Re: View Any Topic permission
Post by: digit on August 05, 2009, 07:50:20 PM
Well, I got half way through a MANUAL  :P  install of this mod, when I ran into a problem.

The mod says this....

In Recent.php.....
<search position="replace"><![CDATA[ FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
]]></search>
<add><![CDATA[ FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS mf)
]]></add>
</operation>


the problem is, in my 1.1.10 version of Recent.php,

I have this.....

FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)

Honestly, I don't know if that ", {$db_prefix}messages AS ms)" is from another mod or what...

How can I continue with this manual install?

I would LOVE to have this functionality!

Thanks in advance.




Title: Re: View Any Topic permission
Post by: Paracelsus on August 06, 2009, 06:07:19 AM
Quote from: digit on August 05, 2009, 07:50:20 PM
Well, I got half way through a MANUAL  :P  install of this mod, when I ran into a problem.

The mod says this....

In Recent.php.....
<search position="replace"><![CDATA[ FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
]]></search>
<add><![CDATA[ FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS mf)
]]></add>
</operation>


the problem is, in my 1.1.10 version of Recent.php,

I have this.....

FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)

Honestly, I don't know if that ", {$db_prefix}messages AS ms)" is from another mod or what...

How can I continue with this manual install?

I would LOVE to have this functionality!

Thanks in advance.






What i know is that a few months ago I had to hardcode and disable 'Recent Posts' because it wasn't filtering posts according to membergroup permissions, so it turned out that any guest could see the most recent posts, even those written in private areas. :(

I never knew what the problem was, I supposed it was due to a MOD and it's likely to be this one in the string you mentioned above. Let's see if some coder can come up with a fix. ;)
Title: Re: View Any Topic permission
Post by: Bruno36 on September 18, 2009, 10:07:18 AM
Hello!

A version for SMF 2.0 RC1.2 is provided?
Title: Re: View Any Topic permission
Post by: dakpluto on September 22, 2009, 09:38:16 PM
Seriously, this needs a 2.0 version.  Why this wasn't a permission option in 2.0 to start with I'll never know :\  They included the reply to own thread only which is nice, but doesn't help when they can still view others in a forum.
Title: Re: View Any Topic permission
Post by: Spoogs on October 12, 2009, 03:25:38 PM
also using 2.0 RC1.2 and would love to have this feature available. I wanted to create some boards that users can have 1on1 interaction with group mods or admins as necessary. I have been going crazy trying many different setting to try and accomplish this, but the result was too many membergroups and child boards, very messy to say the least.
Title: Re: View Any Topic permission
Post by: Ryuoh on December 25, 2009, 08:50:34 PM
I love this mod and would love to see it available for 2.0
Title: Re: View Any Topic permission
Post by: Paracelsus on December 26, 2009, 12:40:51 PM
I think this MOD: View Topic Permissions (http://custom.simplemachines.org/mods/index.php?mod=794) does the same thing and it will probably be easier to convince the author to make a 2.0 version (since he is a member of the Staff ;D)
Title: Re: View Any Topic permission
Post by: howl.nsp on February 27, 2010, 10:52:36 AM
I attach a xml with spanish_es spanish_es-utf8 translations by searching the end of file instead of ?>, to avoid conflict between mods unistall and also the fix of Truzone, when visiting a page with Subject ordering on forums.
Title: Re: View Any Topic permission
Post by: howl.nsp on February 28, 2010, 02:50:56 PM
A better one, it only skips tha languages files if the are not found instead of resulting in an error.
Title: Re: View Any Topic permission
Post by: Col on March 18, 2010, 01:48:23 PM
Hi,

Can anyone help me integrate View Any Topic with Last Topics of Person? I've identified where the two mods clash, and posted the code involved in this post: http://www.simplemachines.org/community/index.php?topic=277651.msg2544111#msg2544111 (http://www.simplemachines.org/community/index.php?topic=277651.msg2544111#msg2544111)

If you can help, please post in the linked thread.

Thank you.
Title: Re: View Any Topic permission
Post by: Hakker on March 19, 2010, 10:19:17 AM
I love to see just a working version of it. For both1.x and 2.x
Title: Re: View Any Topic permission
Post by: Col on March 19, 2010, 07:51:04 PM
What's the problem with the installation of this mod to 1.1? If you detail the issue, I may be able to help.
Title: Re: View Any Topic permission
Post by: Hakker on March 21, 2010, 11:03:44 AM
well It simply won't install on a 1.1.11 board. I just get a Modification parse error at ViewAnyTopicPermission.xml and it won't even go to the next file and a huge warning stating not to continue. Installing it anyway just doesn't do anything.
Title: Re: View Any Topic permission
Post by: Col on March 21, 2010, 11:51:09 AM
Hi Hakker,

I've just tested this Mod on SMF1.1.11 and there are no install errors reported. From the error you have reported, I wonder if you have a corrupt Any Topic zip file. Download another copy from here, delete the old version on your forum, and upload your new copy. Additionally, you are uploading the zip file, aren't you? Do not try to upload the unzipped files.
Title: Re: View Any Topic permission
Post by: Hakker on March 21, 2010, 01:31:34 PM
Yes I use the zip file and it did work under former editions for me however tried it again and again and still the same issue. Yes everything is writable and the test shows no problem however upon execution I get the parse error.

ugh the smf installer seems to set the wrong temporary permissions here :(
Title: Re: View Any Topic permission
Post by: Paracelsus on January 11, 2011, 04:27:56 AM
Just to say to people that use this topic that I've had serious performance issues caused by this MOD. In small boards they are probably insignificant, but I happen to manage a big board with more than 1 000 000 posts and at least 200 users online almost all the time. Some of the query's this MOD changes/introduces are very very slow and cause locking issues (even if all your tables are InnoDB, with the exception of smf_messages) thus consuming every memory resource available on the server, "crashing" mysql quite frequently.

I was forced to uninstall the MOD and put in its place this one (which works in 1.1.12): View Topic Permissions (http://custom.simplemachines.org/mods/index.php?mod=794). It does the same and had no issues with it so far.
Title: Re: View Any Topic permission
Post by: impreza on January 11, 2011, 06:43:19 AM
great mod, thanks for making it
Title: Re: View Any Topic permission
Post by: drguild on April 17, 2011, 09:00:39 AM
Hoping to have something like this also as were on 2.0 RC5.

I run with another guy a minecraft server where I also do the most of the web management stuff and it would be nice to have a forum for game bans where players that have been banned can chat to the admins/mods about why they have been banned in private in there own topic.

As the current mod is only for v1 and the settings in v2 don't list anything that could do it.
Title: Re: View Any Topic permission
Post by: Spoogs on April 17, 2011, 10:29:01 AM
Try SimpleDesk (http://custom.simplemachines.org/mods/index.php?mod=2491), it adds a ticket system to your forum and you can set the privacy such that users can see only their tickets and staff can see all tickets.

You will need to use version emulate to install on RC5 go  to - Admin>>Packages...scroll down, click Advanced, change RC5 to RC3 and install the mod.
After install if you have any questions feel free to visit the SimpleDesk (http://simpledesk.net/community) site.
Title: Re: View Any Topic permission
Post by: Feldon on August 13, 2013, 08:18:23 PM
Hi folks.  I'm the author of this mod.  In case it wasn't obvious, I wanted to let folks know that I am no longer a user of SMF, and consequently am not planning on updating this mod for SMF 2.0 or any future versions.  I highly encourage you to find another mod, if one exists.  If one doesn't exist, you are welcome to lobby SMF to have this feature added to future versions, or to write your own mod.  (FYI: You are welcome to use my mod as a starting point, but given the significant changes in the way permissions are managed in SMF 2 vs. 1, I expect you will need to start from scratch.)

To answer a couple questions/issues raised below:
a. This mod was a bit of a hack for a small forum site, and may well have a performance impact on larger sites.
b. This mod replaces some specific lines related to topic permissions.  It likely won't work correctly if combined with another topic permissions mod.

Thanks for using my mod.  I enjoyed writing it, and I'm glad some other people were able to make use of it.
Title: Re: View Any Topic permission
Post by: Clara Listensprechen on March 13, 2014, 01:27:37 PM
Quote from: Feldon on August 13, 2013, 08:18:23 PM
Hi folks.  I'm the author of this mod.  In case it wasn't obvious, I wanted to let folks know that I am no longer a user of SMF, and consequently am not planning on updating this mod for SMF 2.0 or any future versions.  I highly encourage you to find another mod, if one exists.  If one doesn't exist, you are welcome to lobby SMF to have this feature added to future versions, or to write your own mod.  (FYI: You are welcome to use my mod as a starting point, but given the significant changes in the way permissions are managed in SMF 2 vs. 1, I expect you will need to start from scratch.)

To answer a couple questions/issues raised below:
a. This mod was a bit of a hack for a small forum site, and may well have a performance impact on larger sites.
b. This mod replaces some specific lines related to topic permissions.  It likely won't work correctly if combined with another topic permissions mod.

Thanks for using my mod.  I enjoyed writing it, and I'm glad some other people were able to make use of it.
Interesting to encounter another SMF ex.  You have all my sympathies.
Title: Re: View Any Topic permission
Post by: Feldon on March 13, 2014, 07:57:06 PM
I don't really have any problem with SMF.  I am simply no longer building websites that need a forum.
Title: Re: View Any Topic permission
Post by: moner on June 22, 2016, 01:50:50 PM
I would too like to see this updated for SMF2.0.