Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Disable Default Redirect in Move and Merge Threads Details »»
Disable Default Redirect in Move and Merge Threads
Version: 1.00, by djbaxter djbaxter is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.4 Rating:
Released: 07-16-2010 Last Update: Never Installs: 25
Template Edits
 
No support by the author.

The default behavior for moving or merging threads is to leave a non-expiring redirect in the original thread.

I find this annoying, since it clutters up the thread listings. Most of the time I either want no redirect or at most an expiring redirect.

This mod changes the default to NO REDIRECT (you can still manually select redirect or expiring redirect fo any threads where you want it).

1. MOVE
In Thread Administration Templates > template threadadmin_movethread

Find:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="enableredirect" 

id="redirect" value="1" class="dep_ctrl" tabindex="1" checked="checked" /> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">

                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li


Change two instances of checked="checked". Replace with:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="enableredirect" 

id="redirect" value="1" class="dep_ctrl" tabindex="1" /> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">

                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li


Similarly, in Thread Administration Templates > template threadadmin_movethreads

Find:

PHP Code:
                    <li><label><input type="checkbox" name="enableredirect" id="redirect" 

value="1" class="dep_ctrl" tabindex="1" check="checked" /> {vb:rawphrase yes}</label></li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li
Change two instances of checked="checked". Replace with:

PHP Code:
                    <li><label><input type="checkbox" name="enableredirect" id="redirect" 

value="1" class="dep_ctrl" tabindex="1" /> {vb:rawphrase yes}</label></li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input 

type
="radio" name="redirect" value="perm" id="rb_redirect_perm" tabindex="1" /> {vb:rawphrase 

leave_permanent_redirect
}</label>
                            </
li

2. MERGE

In Thread Administration Templates > template threadadmin_mergethreads

Find:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="redir" id="redirect" value="1" class="dep_ctrl" tabindex="1" checked="checked"/> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" checked="checked" tabindex="1" /> {vb:rawphrase leave_permanent_redirect}</label>
                            </
li
Change to:

PHP Code:
                    <li>
                        <
label><input type="checkbox" name="redir" id="redirect" value="1" class="dep_ctrl" tabindex="1" /> {vb:rawphrase yes}</label>
                    </
li>
                    <
li id="redirect_deps" class="floatcontainer deps">
                        <
ul class="group checkradio">
                            <
li>
                                <
label for="rb_redirect_perm"><input type="radio" name="redirect" value="perm" id="rb_redirect_perm" tabindex="1" /> {vb:rawphrase leave_permanent_redirect}</label>
                            </
li

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
elsa23

Comments
  #12  
Old 01-20-2012, 09:12 AM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this is what I was looking for since long.
Reply With Quote
  #13  
Old 12-21-2013, 10:38 AM
adpar adpar is offline
 
Join Date: Jun 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello, does anyone know if this works also on 3.8 ????

thanks in advance!

we have a similar problem since we have an ad section where parents sell childrens toys, and have the right to move their thread to the inactive section,
but unfortunately forget to change the default setting and leave permanent redirects (about 30 per day) which are hard to remove from our mods..!!
Reply With Quote
  #14  
Old 12-22-2013, 03:39 AM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adpar View Post
hello, does anyone know if this works also on 3.8 ????

thanks in advance!

we have a similar problem since we have an ad section where parents sell childrens toys, and have the right to move their thread to the inactive section,
but unfortunately forget to change the default setting and leave permanent redirects (about 30 per day) which are hard to remove from our mods..!!
That sounds like a tedious manual operation. Have you checked out this mod:
https://vborg.vbsupport.ru/showthread.php?t=275314

Not sure if it'll be exactly what you need, but it could help.
Reply With Quote
  #15  
Old 12-22-2013, 06:56 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adpar View Post
hello, does anyone know if this works also on 3.8 ????

thanks in advance!

we have a similar problem since we have an ad section where parents sell childrens toys, and have the right to move their thread to the inactive section,
but unfortunately forget to change the default setting and leave permanent redirects (about 30 per day) which are hard to remove from our mods..!!
This should probably work in vB 3.8x: Move threads with leave no redirect as default or Expired redirect as default - you may need the suggested modification at https://vborg.vbsupport.ru/showpost....1&postcount=12 in that thread.

Quote:
Originally Posted by bzcomputers View Post
That sounds like a tedious manual operation.
Really? It's a couple of quick template edits. If you find that tedious or complicated, you're going to be limited in the extent to which you can customize your forum(s).

Quote:
Originally Posted by bzcomputers View Post
Have you checked out this mod:
https://vborg.vbsupport.ru/showthread.php?t=275314

Not sure if it'll be exactly what you need, but it could help.
Really not the same thing at all.
Reply With Quote
  #16  
Old 12-22-2013, 11:07 PM
adpar adpar is offline
 
Join Date: Jun 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot to both of you!
yes indeed the bzcomputers hint is not what we need,
since not all threads are to be deleted on a certain period of time.
its interesting to know though that this option is also available.

just checked out the
Move threads with "leave no redirect" as default or Expired redirect as default
its exactly what we need !!

million thanksss!!!!!!!!!!!
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 06:20 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.05279 seconds
  • Memory Usage 2,336KB
  • Queries Executed 21 (?)
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
  • (6)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete