vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Vbulletin 3.8.9 Move Threads to Recycle Bin ? (https://vborg.vbsupport.ru/showthread.php?t=328176)

ufuk61 08-08-2020 05:33 PM

Vbulletin 3.8.9 Move Threads to Recycle Bin ?
 
<a href="https://vborg.vbsupport.ru/showthread.php?t=106774" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=106774</a>

We need a plug-in that brings the items we delete to the recycle bin.Similar to the plugin above.

z3r0 08-09-2020 06:04 AM

I added a button above the thread to do this.


Placed under $poll in showthread, change destforumid value to the id of the forum you want to send the thread to.
Code:

<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7)">
<div>
<div style="float:left;">
<form method="post" action="inlinemod.php?do=domovethread&amp;threadids=$thread[threadid]">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="destforumid" value="18">
<input type="hidden" name="threadids" value="$thread[threadid]">
<input type="hidden" name="do" value="domovethreads">
<input type="hidden" name="redirect" value="none" id="rb_redirect_none" checked="checked" />
<input type="submit" value="Bin">
</form>
</div>
</if>


ufuk61 08-09-2020 06:55 PM

Quote:

Originally Posted by z3r0 (Post 2603703)
I added a button above the thread to do this.


Placed under $poll in showthread, change destforumid value to the id of the forum you want to send the thread to.
Code:

<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7)">
<div>
<div style="float:left;">
<form method="post" action="inlinemod.php?do=domovethread&amp;threadids=$thread[threadid]">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="destforumid" value="18">
<input type="hidden" name="threadids" value="$thread[threadid]">
<input type="hidden" name="do" value="domovethreads">
<input type="hidden" name="redirect" value="none" id="rb_redirect_none" checked="checked" />
<input type="submit" value="Bin">
</form>
</div>
</if>


https://i.resimyukle.xyz/Vxedd7.png

how can we do as in the picture.

Code:

<input type="radio" name="do" value="submit">Recycle Bin
It didn't work that way

Seven Skins 08-10-2020 04:11 PM

1 Attachment(s)
Add the code below just below the $poll in showthread.
No need to add any radio buttons etc..
Button should be visible where post reply button is.

.

ufuk61 08-10-2020 04:25 PM

Quote:

Originally Posted by Seven Skins (Post 2603714)
Add the code below just below the $poll in showthread.
No need to add any radio buttons etc..
Button should be visible where post reply button is.


.

It doesn't look so beautiful visually.
That's why I want to do this.

z3r0 08-11-2020 04:18 AM

You would need to write a plugin for the do action of the radio button, you may be able to scavenge some code to do that from the vb4 version.

If you don't like my button visually you can always move it somewhere else on the page and add some styling.


All times are GMT. The time now is 06:51 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.01122 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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