vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Soft-deleted thread ...title displayed only to admins? (https://vborg.vbsupport.ru/showthread.php?t=228375)

kurti 11-19-2009 02:17 PM

Soft-deleted thread ...title displayed only to admins?
 
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:

Code:

        .
        .
             
<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 [DATE]1258656075[/DATE] at [TIME]1258656075[/TIME] ---------------

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


Code:

                        $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 :)


All times are GMT. The time now is 11:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01060 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete