vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Change default value of "Automatically parse links in text" checkbox (https://vborg.vbsupport.ru/showthread.php?t=62254)

Jakeman 03-07-2004 06:05 PM

Change default value of "Automatically parse links in text" checkbox
 
Re: http://www.vbulletin.com/forum/showthread.php?t=97092

Quote:

How do I change default value for Automatically parse links in text in all places (newpost/reply/pm) ?
newthread.php. Find this code and replace HTML_CHECKED with '' (two single quotes):

PHP Code:

    // auto-parse URL
    
if (!isset($checked['parseurl']))
    {
        
$checked['parseurl'] = HTML_CHECKED;
    } 

Note: in RC4 (currently the latest version) the above code is bugged and looks like this:

PHP Code:

    if (!$checked['parseurl'])
    {
        
$checked['parseurl'] = HTML_CHECKED;
    } 

This will be fixed in the next version. In the meantime you should change the code to look like the first code block, then make the changes.

newreply.php. Find this code and replace HTML_CHECKED with '' (two single quotes):

PHP Code:

    // auto-parse URL
    
if (!isset($checked['parseurl']))
    {
        
$checked['parseurl'] = HTML_CHECKED;
    } 

private.php. Find this code. Change 'parseurl' => true, to 'parseurl' => false,:

PHP Code:

        construct_checkboxes(array(
            
'savecopy' => true,
            
'parseurl' => true,
            
'signature' => iif($bbuserinfo['signature'] !== ''true)
        )); 


Mr Blunt 03-26-2004 07:31 AM

This same edit should work for editpost.php as well??
I tried it and it appears to be working for me at the moment.
Yes?? No??

Also I figured this might be a good thread to link to for those who read this thread.
SloppyGoat says that according to the vB team, the WYSIWYG will always parse, so it'll have to be a hack, apparently. So if anyones reading this cause of the WYSIWYG acting weird with parses, now you know.

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


All times are GMT. The time now is 10:07 AM.

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.01306 seconds
  • Memory Usage 1,721KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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