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
  #2  
Old 07-17-2010, 01:25 AM
BlackJacket's Avatar
BlackJacket BlackJacket is offline
 
Join Date: Nov 2008
Location: 070108111114105100100
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong section. Needs to go in Template Edits.
Reply With Quote
  #3  
Old 07-17-2010, 06:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since the 'Yes" box is not checked by default, the redirect that is checked wouldn't take affect anyway until the 'Yes" box is checked, would it?
Reply With Quote
  #4  
Old 07-17-2010, 08:07 AM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're my hero!
Reply With Quote
  #5  
Old 07-17-2010, 12:18 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Since the 'Yes" box is not checked by default, the redirect that is checked wouldn't take affect anyway until the 'Yes" box is checked, would it?
The "Yes" box IS checked by default. That is the whole point.
Reply With Quote
  #6  
Old 07-17-2010, 01:31 PM
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
Location: Greece
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look on last version of Vbulletin 4.0.5. The default value on clean setup is to don't leave redirect link. Maybe there is an option on setting for that check it.
Reply With Quote
  #7  
Old 07-17-2010, 01:46 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running 4.05. vBulletin.org hasn't upgraded their options yet so the designation of 4.04 for this mod is the highest available.

I had the redirect problem in 4.03. In 4.04, it seemed to be fine. It reappeared in 4.05. Hence this mod.

If there is an option in settings to turn this off, please point me to it.
Reply With Quote
  #8  
Old 07-17-2010, 02:11 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
The "Yes" box IS checked by default. That is the whole point.
Ok, I must have missed that then. I didn't think it was when I tested it.
Reply With Quote
  #9  
Old 07-25-2011, 08:48 PM
james7zt james7zt is offline
 
Join Date: Jul 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you so much! It works out good. 5 stars!
Reply With Quote
  #10  
Old 08-05-2011, 04:27 PM
Luca_ITA's Avatar
Luca_ITA Luca_ITA is offline
 
Join Date: Jun 2011
Location: Italy
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working perfectly, many tnx!
v4.1.5pl1
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 01:10 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.04988 seconds
  • Memory Usage 2,369KB
  • Queries Executed 24 (?)
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
  • (2)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
  • (10)post_thanks_box
  • (1)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
  • (9)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_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