vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Disable Automatically parse links in text (https://vborg.vbsupport.ru/showthread.php?t=61979)

SloppyGoat 06-24-2005 03:41 AM

I did that a long time ago. Disabling can be done, but has anyone been able to disable it in only one forum?

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

Apparently, from what I was told, it was going to be impossible to disable it in the WYSIWYG editor. :ermm:

JJH35 07-23-2005 03:26 AM

works like a charm thanks

SloppyGoat 11-02-2006 12:56 AM

Bumpety Bump BUMP!!!

SloppyGoat 11-06-2006 10:38 AM

A good friend of mine solved this problem. As long as you're not using the WYSIWYG editor. This will disable autoparsing in the forum of your choice. Just change the forum id to whichever you like.

editpost.php

line 224...
replace: $edit['parseurl'] = true;

with: $edit['parseurl'] = ($foruminfo['forumid'] != 19)

line 245...
replace: $edit['parseurl'] =& $vbulletin->GPC['parseurl'];

with: $edit['parseurl'] = ($vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19);

line 268...
replace: $dataman->set_info('parseurl', ($foruminfo['allowbbcode'] AND $edit['parseurl']));

with: $dataman->set_info('parseurl', ($foruminfo['allowbbcode'] AND $edit['parseurl'] AND $foruminfo['forumid'] != 19));

newreply.php

line 340...
replace: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']);

with: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19);

newthread.php

line 154...
replace: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']);

with: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19);

SloppyGoat 11-11-2006 01:37 AM

Nobody is as excited about this as I am?! I mean, this works great! I'd release it as a hack, if it were mine. But it's his code, and he doesn't even run a vB forum. ;)

yui333 12-06-2006 10:36 AM

Quote:

Originally Posted by SloppyGoat (Post 1114557)
Nobody is as excited about this as I am?! I mean, this works great! I'd release it as a hack, if it were mine. But it's his code, and he doesn't even run a vB forum. ;)

Thanks man! This helps a lot :)

Quote:

Originally Posted by Sonic625 (Post 480501)
Just figured it out:
In the newreply.php find:
Code:

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

and remove it.

In editpost.php find:
Code:

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

and remove it

In newthread.php find:
Code:

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

and remove it


Thanks,
S

Thank you..

Ok, code have changed in 3.6 in editpost.php and newthread.php

Here is what you have to do..

In editpost.php find:

Quote:

$checked['parseurl'] = 'checked="checked"';
and delete it.

in newthread.php find:

Quote:

if (!isset($checked['parseurl']))
{
$checked['parseurl'] = 'checked="checked"';
}
And delete it..

The newreply.php code did not change, so just do like you did before.

but how can I disable it in quick reply? :( it works with all except that :(

Hendrizius 07-12-2007 12:18 AM

Quote:

Originally Posted by yui333 (Post 1133109)
Thanks man! This helps a lot :)


Thank you..

Ok, code have changed in 3.6 in editpost.php and newthread.php

Here is what you have to do..

In editpost.php find:


and delete it.

in newthread.php find:


And delete it..

The newreply.php code did not change, so just do like you did before.

but how can I disable it in quick reply? :( it works with all except that :(

Same problem.

troybtj 07-16-2008 04:58 PM

I just disabled it globally in 3.6.7 via class_bbcode_alt.php this is against the basic concepts that the 3.x series tried to fix, but it works.

This fixes both quick reply, wysiwyg, and a standard reply.
This is just URLs in class_bbcode_alt.php
Find:
PHP Code:

 function handle_bbcode_url($text$link)


Add immediately after opening brace:
PHP Code:

// Added to stop autolinking by troy
return $text


This is just images in class_bbcode_alt.php

Find:
PHP Code:

function handle_bbcode_img($bbcode$do_imgcode$has_img_code false)


Add:
PHP Code:

//added to stop autolinking by troy
return $bbcode

Immediately after the opening brace for the image function.

You could put conditionals in for forums, but getting that information would be a bit/lot more difficult compared to changing it in templates. Make sure and add the comment line with something you can search for (like your name), so you can remove it on upgrade.

Is there an easier way to do it in 3.6.7 ?

irantk 06-16-2011 03:25 PM

I disabled all of item but can't disable in quick edit post. when edit quick post and save this function is enable
please help me

BirdOPrey5 06-16-2011 03:54 PM

This thread is 7 years old and multiple things were suggested...

1) What are you trying to do?

2) What did you do already?

3) What version of vBulletin are you using?


All times are GMT. The time now is 07:57 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.01121 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete