Log in

View Full Version : Soft-deleted thread ...title displayed only to admins?


kurti
11-19-2009, 02:17 PM
Hi,
when a thread gets "soft-deleted"
i would like to keep title of the thread stay visible for all user groups.

at the moment the normal users only see the name of the thread starter
and the delete-reason-message. ...but not the original thread title anymore.

the admins see it though. i've checked the user group settings
but could not find any setting for this.

anyone have an idea?
(im on vB 3.7)

thanks :)

kh99
11-19-2009, 03:31 PM
I think you'd have to edit the "postbit_deleted" template and insert the parts you want to display (which you can probably find in the "postbit" template). For instance:

.
.

<if condition="$show['managepost']"><div class="smallfont" style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]">$vbphrase[manage]</a></div></if>
<if condition="$show['profile']"><a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><else />$post[musername]</if>
<if condition="$post['title']">($post[title])</if>
</td>
</tr>
<tr>
<td class="alt1">

.
.



I added the part in red, which adds the title after the user name.

kurti
11-19-2009, 04:25 PM
ok, thanks very much. ill try this.

kh99
11-19-2009, 04:28 PM
I'm sorry - I just realized that your comment says "thread" and not "post" - the above shows the title for deleted posts. (I guess that explains why I wasn't able to see deleted post titles like you described, even as an admin).

--------------- Added 1258656075 at 1258656075 ---------------

...but that just makes it easier. In the "threadbit_deleted" template, delete these parts (the parts in red):


$thread[typeprefix]
$thread[prefix_rich]
<if condition="$show['threadtitle']"><em>$thread[threadtitle]</em></if>
</div>

<div class="smallfont">


Sorry about that. :)

kurti
11-25-2009, 02:18 PM
ah, great. it works. thanks again :)