Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Stop autoparsing in a particular forum Details »»
Stop autoparsing in a particular forum
Version: 1.00, by SloppyGoat SloppyGoat is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.0 Rating:
Released: 01-21-2009 Last Update: 01-21-2009 Installs: 5
Re-useable Code Code Changes  
No support by the author.

A friend of mine helped me figure this out some time ago, when I was still using 3.6.5. Well, it still seems to work perfectly in 3.8.0. I'm no coder, but I managed to figure out where to put these lines in the new php files. This will stop autoparsing of links in every way...even the quick reply.

This is a manual hack, since it requires changing the php files, and also requires you to change the forum ID to whichever you choose. Fortunately, it's also very easy.

In editpost.php, find:

PHP Code:
$edit['parseurl'] = true
replace with:

PHP Code:
$edit['parseurl'] = ($foruminfo['forumid'] != 10); 
In newreply.php, find:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']); 
replace with:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 10); 
In newpost.php, find:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']); 
replace with:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 10); 
____________________________________________

10 would be the forum ID which you do not want to autoparse URL's. All other forums will act completely normal. I can't support this, so if you have any questions or problems, you're on your own. Sorry, I'm no PHP coder. I just thought someone else might find this useful. Feel free to improve this hack. I'm sure, with some effort, a GUI could be made to assign whatever forum(s) you want?

Download Now

File Type: txt No Autoparse Hack.txt (767 Bytes, 49 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-22-2009, 05:54 AM
Rene Kriest Rene Kriest is offline
 
Join Date: Jun 2008
Location: Germany ./. Reality
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting topic.

You did a pretty good job fixing your problems. However there must be better solutions available. I kinda dislika hacking the .php source code without giving further options via variables.
Reply With Quote
  #3  
Old 01-22-2009, 06:03 AM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good luck with another solution. WYSIWYG makes that impossible, from what I've been told. Actually, if you use the WYSIWYG editor, it still parses URL's. I just checked. So, if you want it to parse a URL for some reason, you can always toggle.
Reply With Quote
  #4  
Old 01-22-2009, 06:07 AM
Rene Kriest Rene Kriest is offline
 
Join Date: Jun 2008
Location: Germany ./. Reality
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just curious: What was the particular reason you switched auto-parse off?
Reply With Quote
  #5  
Old 01-22-2009, 11:14 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this disable the "Automatically parse links in text" by default for certain forums? Or does it do something else?
Reply With Quote
  #6  
Old 01-22-2009, 02:35 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Just curious: What was the particular reason you switched auto-parse off?
It's a hidden forum, and I don't want any live external links in this particular forum. No live links = no referrals.

Yes, it disables autoparsing completely, for the forum ID of your choice. It is only in standard editor mode. You can still toggle to WYSIWYG and it will autoparse, since it does it as you type.

Actually, this only works in the standard editor. It does not work in WYSIWYG. I guess there truly is no way to disable that. Nobody who has access to that forum would use the WYSIWYG editor though, unless they're linking internally.
Reply With Quote
  #7  
Old 05-28-2010, 03:03 PM
OmniBuzz OmniBuzz is offline
 
Join Date: Nov 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I make it work for the whole vbulletin installation and not one forum ?
Reply With Quote
  #8  
Old 05-28-2010, 03:50 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As stated above, there really is no tech support for this hack since I am not a coder, but I would suggest just adding all forum ID's. There is a way to do this to the entire forum, somewhere. I've seen it posted here before when I was searching for my solution. Sorry I can't be of more assistance. It is what it is. If/when you find a solution, please do post it here for others.
Reply With Quote
  #9  
Old 11-17-2010, 05:24 AM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been informed that this works in version 4.x, too.
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 02:15 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.06630 seconds
  • Memory Usage 2,308KB
  • Queries Executed 23 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete