Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2008, 06:21 AM
GavM GavM is offline
 
Join Date: Jul 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default One click move thread?

Hi there,

On the forum I manage, we have what we call a 'Breached Content' forum. Instead of deleting inappropriate content, it is moved there. This helps reduce forum clutter caused by 'deleted' messages.

Anyway, I was wondering whether it'd be possible to either create a button, or add an option to the thread tools menu, to move a thread straight to 'Breached Content'?

This, combined with the postbit banning mod, could reduce the time before advertising messages get removed, and could reduce the impact of what I call a 'goatse attack'.

I'm sure this wouldn't be a complicated mod to do, so could anybody out there help?

Thanks in advance,

Gav
Reply With Quote
  #2  
Old 03-13-2012, 09:28 AM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is quite a old thread. Anyway, I found a work around at https://www.vbulletin.com/forum/show...One-click-move
Reply With Quote
  #3  
Old 03-13-2012, 10:53 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've also posted the code for this here before, so a search would probably come across the code.
Reply With Quote
  #4  
Old 03-14-2012, 03:10 AM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please post a link.

Thanks in advance.
Reply With Quote
  #5  
Old 03-16-2012, 01:19 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I remember Lynne helped me with this back in the day...

https://vborg.vbsupport.ru/showthread.php?t=210513]

They still work. :up:
Reply With Quote
2 благодарности(ей) от:
AlokSharma, Lynne
  #6  
Old 03-16-2012, 01:27 PM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Buddy,

Thanks a lot.
Reply With Quote
  #7  
Old 03-19-2012, 03:01 AM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately, that code did not work. So I had to modify it as below:

HTML Code:
<vb:if condition="$bbuserinfo['usergroupid'] == 6">
    <vb:if condition="$threadinfo['forumid'] == '19'">
        <form action="postings.php?do=domovethread&amp;t={vb:raw thread.threadid}" method="post" name="resolved" style="display:inline;">
            <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 thread.threadid}" />
            <input type="hidden" name="do" value="domovethread" />
            <input type="hidden" name="title" value="{vb:raw thread.threadtitle}" />
            <input type="hidden" name="redirect" value="none" />
            <input type="hidden" name="redirecttitle" value="{vb:raw thread.threadtitle}" />
            <input type="hidden" name="destforumid" value="31" />
            <input type="submit" class="button" value="Resolved" />
        </form>
    <vb:elseif condition="$threadinfo['forumid'] == '32'" />
        <form action="postings.php?do=domovethread&amp;t={vb:raw thread.threadid}" method="post" name="resolved" style="display:inline;">
            <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 thread.threadid}" />
            <input type="hidden" name="do" value="domovethread" />
            <input type="hidden" name="title" value="{vb:raw thread.threadtitle}" />
            <input type="hidden" name="redirect" value="none" />
            <input type="hidden" name="redirecttitle" value="{vb:raw thread.threadtitle}" />
            <input type="hidden" name="destforumid" value="28" />
            <input type="submit" class="button" value="Resolved" />
        </form>    
    </vb:if>
</vb:if>
But the problem is that the following condition is not executing at all:

HTML Code:
<vb:if condition="$threadinfo['forumid'] == '19'">
Any help will be highly appreciated.

P.S. I tried the above condition with & without the apostrophe.
Reply With Quote
  #8  
Old 03-19-2012, 03:06 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it's a number you should never use quotes when testing ==

so

PHP Code:
<vb:if condition="$threadinfo['forumid'] == 19"
And yes that was VB3 code so it looks like you updated it to VB4 correctly.

Then it depends what template you are using the code in. I believe $threadinfo was for showthread... what template are you putting the code in?
Reply With Quote
  #9  
Old 03-19-2012, 03:22 AM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, that condition is not working even without the quotes, so that's why I used the quotes. Anyway, I will remove the quotes.

I am putting that condition in the threadbit template. Since there are two main forums each with open & close sub-forums, I am using a condition so that the thread is moved to its respective sub-forum.
Reply With Quote
  #10  
Old 03-19-2012, 12:07 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in the threadbit template then for what the "thread" variable is called. It may be just $thread. I see in your code you use {vb:raw thread.xxx} so that would mean the variable is $thread not $threadinfo... (threadinfo would be {vb:raw threadinfo.xxx})
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06259 seconds
  • Memory Usage 2,274KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete