Advertisement:

Author Topic: View Topic Permissions  (Read 18231 times)

Offline Slug1

  • Semi-Newbie
  • *
  • Posts: 79
  • Gender: Male
  • v2.0 Gold
    • A Minister of God Ministry
Re: View Topic Permissions
« Reply #20 on: August 11, 2011, 05:26:02 PM »
Anyone at all get this to work properly in v2.0?
Slug1--out

~My blessings are as many as the miles I marched all these years~

Offline Grosraisin

  • Jr. Member
  • **
  • Posts: 164
  • SMF 2.0.2
    • Prez-Me ALL Forum
Re: View Topic Permissions
« Reply #21 on: September 13, 2011, 05:10:28 PM »
Hi,
I will put you in the attachment function in SMF 2.0 mods.

Too bad it lacks certainne option.

Thank you to the author of the mods malgas that his support is finished.

Edite: Suppression du mod :/
« Last Edit: November 10, 2011, 07:59:54 AM by Grosraisin »
SMF / Le Partage et l'Entraide
SMF / Sharing and Caring

Mes modifications de Mods / Templates


Offline ahruncev

  • Newbie
  • *
  • Posts: 1
Re: View Topic Permissions
« Reply #22 on: October 24, 2011, 07:55:00 PM »
Hi,
I will put you in the attachment function in SMF 2.0 mods.

Too bad it lacks certainne option.

Thank you to the author of the mods malgas that his support is finished.

Thanks for the Attachment. I have installed the mod which worked okay. When using this mod under the permissions there is the 2 spaces to tick the boxes for the mod but there is no text associated with those boxes. I assumed they were for the Mod.

Anyone else had this issue, or is there a fix for this?

Offline Grosraisin

  • Jr. Member
  • **
  • Posts: 164
  • SMF 2.0.2
    • Prez-Me ALL Forum
Re: View Topic Permissions
« Reply #23 on: November 04, 2011, 11:46:47 AM »
Sorry for the inconvenience there had the French language to implement the mod is for her that you do voyer with the comment.

Here is the correct version.

Edite: Suppression du mod :/
« Last Edit: November 10, 2011, 07:56:16 AM by Grosraisin »
SMF / Le Partage et l'Entraide
SMF / Sharing and Caring

Mes modifications de Mods / Templates


Offline drguild

  • Semi-Newbie
  • *
  • Posts: 38
Re: View Topic Permissions
« Reply #24 on: November 12, 2011, 04:53:49 AM »
Great mod we are using it on a forum for admin/mod chats to players on our game server.

One guy asked if we can only show there posts in the forum and not list ones from other players fo we can have more privacy with the threads.

I dunno if this can be done by anyone.

We also found a bug.

Quote
Found a bug.

When viewing all the posts of a particular user, you can see their posts that have been made inside the Staff Chat forum.
« Last Edit: November 12, 2011, 05:30:41 AM by drguild »

rousseauxy

  • Guest
Re: View Topic Permissions
« Reply #25 on: December 15, 2011, 11:42:42 AM »
I'm also trying to achieve that, think I found the where, now I just need to adapt the how, not sure if hadeflames or any1 else can assyst with this?

I think it's just a matter of adjusting the query that grabs the appropriate topic information (in MessageIndex.php)

Offline domilolo

  • Newbie
  • *
  • Posts: 1
Re: View Topic Permissions
« Reply #26 on: August 29, 2013, 07:04:20 PM »
Tested on smf 2.0.5 and work perfect  ;)
only a small difference : in Printpage.php
find
Code: [Select]
// Split the topics up so we can print them.
$request = $smcFunc['db_query']('', '
SELECT subject, poster_time, body, IFNULL(mem.real_name, poster_name) AS poster_name
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_topic = {int:current_topic}' . ($modSettings['postmod_active'] && !allowedTo('approve_posts') ? '
AND (m.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR m.id_member = {int:current_member}') . ')' : '') . '
ORDER BY m.id_msg',
array(
'current_topic' => $topic,
'is_approved' => 1,
'current_member' => $user_info['id'],
)
);

remplace by :
Code: [Select]
// Split the topics up so we can print them.
$request = $smcFunc['db_query']('', '
SELECT b.id_board, m2.id_member AS id_first_member, m.subject, m.poster_time, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name
FROM {db_prefix}messages AS m
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)
INNER JOIN {db_prefix}messages AS m2 ON (m2.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_topic = {int:current_topic}' . ($modSettings['postmod_active'] && !allowedTo('approve_posts') ? '
AND (m.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR m.id_member = {int:current_member}') . ')' : '') . '
ORDER BY m.id_msg',
array(
'current_topic' => $topic,
'is_approved' => 1,
'current_member' => $user_info['id'],
)
);

Offline Lilariel

  • Semi-Newbie
  • *
  • Posts: 33
Re: View Topic Permissions
« Reply #27 on: December 12, 2014, 07:34:00 PM »
Can confirm what domilolo posted, that fix works!

I have updated and attached a .zip with a working version of this mod by implementing his fix, tested and confirmed to be working in 2.0.9 and I have yet to encounter any breaking bugs. Only problem is that while you cannot open topics where you are not allowed to, the topics will still display in the boards list. Not ideal, but it's better than nothing.

You will need to emulate the installation for 2.0 RC3, and it should install quite nicely - at least it worked without a hitch for me!

Offline Lilariel

  • Semi-Newbie
  • *
  • Posts: 33
Re: View Topic Permissions
« Reply #28 on: December 31, 2014, 08:35:03 AM »
Nevermind, don't use that, found a dealbreaker. Works almost perfectly, but breaks whenever you try to go to page 2 on any forum section. Probably a relatively easy fix, but I cba trying to hack away at it.

Offline Reywind

  • Newbie
  • *
  • Posts: 1
Re: View Topic Permissions
« Reply #29 on: April 12, 2015, 09:51:44 AM »
Does anyone know of a mod like this that works for v2.0.9? I would LOVE to have this feature, and I've been searching for over an hour trying to find one that works with 2.0.9 and haven't been very successful.

My forum is for an online game guild website, and I have a board where potential members can post an application, as a new topic in the board. But I want to set this board so that if someone posts a new topic, only guild members and the original poster can see it - guests and registered users cannot.

Offline hadesflames

  • SMF Hero
  • ******
  • Posts: 2,773
  • Gender: Male
  • C++ Coder
Re: View Topic Permissions
« Reply #30 on: January 03, 2016, 05:08:40 AM »
Does anyone know of a mod like this that works for v2.0.9? I would LOVE to have this feature, and I've been searching for over an hour trying to find one that works with 2.0.9 and haven't been very successful.

My forum is for an online game guild website, and I have a board where potential members can post an application, as a new topic in the board. But I want to set this board so that if someone posts a new topic, only guild members and the original poster can see it - guests and registered users cannot.

This mod isn't really necessary. That's why I archived it years ago. You can emulate this functionality with 2.0 out of the box, no mods necessary. Just define a custom permission profile for the board you want people to post applications to. In the permission profile, set it so that no one can post topic without requiring approval, unless they're in the guild members membergroup. Set the guild members membergroup to be able to approve posts in that board. Now, every topic/post posted in that board will require to be approved before it gets posted, and only the topic starter and guild members will be able to see that topic/posts. Just make sure no one ever approves a post. There you go.