vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Disable Autoparsing in the forumID of choice (https://vborg.vbsupport.ru/showthread.php?t=131246)

SloppyGoat 11-10-2006 10:00 PM

Disable Autoparsing in the forumID of choice
 
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. BRILLIANT!!!! :cool:
Code:

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);

I'm not the coder, so I can't support this. He did give me permission to share it, though.

SloppyGoat 11-11-2006 01:44 AM

Maybe someone can figure out a way to disable in the WYSIWYG editor too? I assume it would have to be something that stripped the url tags from the posts after you click submit?

Wild-Wing 11-19-2006 07:35 PM

i may sound like a red neck but what the hell is autoparsing


All times are GMT. The time now is 04:43 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.01056 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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