vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Moderators Functions - Keep Attachment Checked by Default when Soft Deleting (https://vborg.vbsupport.ru/showthread.php?t=285364)

maupassant 09-04-2012 05:34 PM

Bummer. Still not working for me.

How do I post a template here ? Do I just copy and paste in the message box ?

First one (threadadmin_deleteposts) with your modification :

<div id="pagetitle">
<h1>{vb:rawphrase delete_posts}</h1>
</div>

<form action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}inlinemod.php?t={vb:raw threadid}&amp;p={vb:raw postid}&amp;postids={vb:raw postids}" method="post" name="vbform" class="vbform block">

<h2 class="blockhead">{vb:rawphrase delete_posts}</h2>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">{vb:rawphrase deleting_x_posts_from_y_threads_in_z_forums, {vb:raw postcount}, {vb:raw threadcount}, {vb:raw forumcount}}</h3>
<div class="section">
<div class="blockrow">
<label>{vb:rawphrase delete_posts}:</label>
<ul class="checkradio group dep_group rightcol">
<vb:if condition="$show['deleteposts']">
<li>
<label><input type="radio" class="dep_ctrl" name="deletetype" value="1" id="rb_del_soft" {vb:raw checked.delete} tabindex="1" /> {vb:rawphrase soft_delete_leave_deleted_message}</label>
</li>
<li id="rb_del_soft_deps" class="floatcontainer deps">
<label for="cb_keepattachments">
<input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" {vb:raw checked.delete} tabindex="1" /> {vb:rawphrase keep_attachments}
</label>
</li>
</vb:if>
<vb:if condition="$show['removeposts']">
<li>
<label for="rb_del_hard" class="floatcontainer">
<input type="radio" name="deletetype" value="2" id="rb_del_hard" {vb:raw checked.remove} tabindex="1" /> {vb:rawphrase physically_remove}
</label>
</li>
</vb:if>
</ul>
<p class="description">
{vb:rawphrase delete_types_explained}
<vb:if condition="$show['firstpost']"><br /><br />{vb:rawphrase deleting_the_first_post}</vb:if>
</p>
</div>

<vb:if condition="$show['deleteposts']">
<div class="blockrow">
<label for="deletereason">{vb:rawphrase reason_for_deletion}:</label>
<input type="text" class="primary textbox" name="deletereason" value="{vb:raw threadinfo.del_reason}" maxlength="125" tabindex="1" />
<p class="description">
{vb:rawphrase delete_reason_explained}
</p>
</div>
</vb:if>
</div>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" value="{vb:rawphrase delete_posts}" accesskey="s" tabindex="1" />
<input type="reset" class="button" value="{vb:rawphrase cancel}" accesskey="c" onclick="history.back(1)" tabindex="1" />
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="t" value="{vb:raw threadid}" />
<input type="hidden" name="p" value="{vb:raw postid}" />
<input type="hidden" name="postids" value="{vb:raw postids}" />
<input type="hidden" name="do" value="dodeleteposts" />
<input type="hidden" name="url" value="{vb:raw url}" />
</div>
</div>
</form>

Merjawy 09-05-2012 05:22 AM

When posting code in here, wrap it in php or quote tag by clicking the icon top of the editor.

Quick look shows no issue in your code... I am not using my PC atm, but will check it again later and see what the issue is.

Send me PM when you get online.

maupassant 09-14-2012 09:02 PM

O.K. Just a precision here. The mod works if I use the Moderation Tools at the bottom of a page listing posts or threads. The mod doesn't work if I open a thread and try to use "Edit Post" or "Administrative - Delete Thread".

Merjawy 09-15-2012 04:49 AM

Thanks for pointing that out. It's easy fix, I will look into it as soon as I have time and update the mod.

Merjawy 10-08-2012 05:15 AM

Sorry for the delay, I was real busy...

Here is a fix to use from within the thread (Administative)

Edit threadadmin_deletethread

Look for:
HTML Code:

<input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" tabindex="1" /> {vb:rawphrase keep_attachments}
Replace with:
HTML Code:

<input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" checked="checked" tabindex="1" /> {vb:rawphrase keep_attachments}


All times are GMT. The time now is 04:50 PM.

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.01020 seconds
  • Memory Usage 1,735KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete