Announcement

Collapse
No announcement yet.

Create group that allows users to reply to closed threads?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Well, it's a round-about way of getting people to read but not post. Yet, one individual, for the sake of that thread ony, will have the ability to update the thread (either by editing the original post, or adding additional posts to the thread). Unlike the other forums and threads, this specific thread is explicitly try to avoid comments via posts...

    Setting permissions to only allow this one individual to post, but leaving the thread with a "reply" button will only result in a dozen emails a day from people who fail to read the posts instructions "DO NOT POST"... I just want to avoid confusion by visibly marking CLOSED. If someone clicks on reply and gets "sorry you don't have permission", I'll have hell to pay...

    Comment


    • #17
      I'm a little late, and shooting from the hip here, but maybe I can help. This could probably be accomplished with a combination of usergroup permissions and template conditional hacks. It would be a tangled mess, but I think you could do it.

      You'd probably have to set your usergroup permissions for that forum as suggested above, set so every user can post his own thread and reply to his own thread, but post in other threads. It appears you want this to be done in only one forum, so it would be relatively simple to do this to the Registered Users usergroup, thus applying it to everyone.

      You could then use a template conditional to check and see if the forum being displayed is the correct forum:
      HTML Code:
      <if condition="($forumid == 2)">
      <else />
      </if>
      this would wrap around your reply button code, like so:
      HTML Code:
       <if condition="($forumid == 2)">
      	
      <else />
      
      	<if condition="$show['largereplybutton']">
      		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
      	<else />
      		<td class="smallfont">&nbsp;</td>
      	</if>
      	
      </if>
      This is where it gets tough. You have two choices. One, you can try figuring out a way to detect the user ID of the original poster, and then use that to create another IF statement to display the reply button to only him, using code something like this...
      HTML Code:
       <if condition="($forumid == 2)">
      	
      	pseudocode:
      	<if USERID == ORIGIONAL POSTER>
      		<if condition="$show['largereplybutton']">
      			<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
      		<else />
      			<td class="smallfont">&nbsp;</td>
      		</if>
      	<else />
      		Sod off you blighter!
      	</if>
      	
      <else />
      
      	<if condition="$show['largereplybutton']">
      		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
      	<else />
      		<td class="smallfont">&nbsp;</td>
      	</if>
      	
      </if>
      . I'm not sure whether this can be done from within the SHOWTHREAD template. It might be. You might need some PHP code to drop in there too, I don't know.

      Or you could go with option 2, which would be to do something like...
      HTML Code:
       <if condition="($forumid == 2)">
      	If you are the Author of this article, you may post additional information by clicking <a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID">here</a>. Other users will be denied.
      <else />
      
      	<if condition="$show['largereplybutton']">
      		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
      	<else />
      		<td class="smallfont">&nbsp;</td>
      	</if>
      	
      </if>
      Option 2 is what I'd go for, personally, since I have very little pity upon people who don't read rules. If they email you, ignore it. Stupid people who don't read sticky topics don't last long on message boards anyway.

      Option 1 is a far more elegant and professional-looking solution, if that's what you really want. It's probably doable, I just don't know for sure.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X