vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Uncheck Auto Parse by default (https://vborg.vbsupport.ru/showthread.php?t=46244)

SloppyGoat 11-30-2002 05:35 PM

Uncheck Auto Parse by default
 
Is there a way to have Auto Parse URL's unchecked by default, or disabled altogether, in a particular forum? Keep in mind, I don't want this to be global.

Dean C 11-30-2002 08:22 PM

You can do it by default yes.... with no hacking :D (I can help you with that if you like)

But in a particular forum would require hacking :)

- miSt

SloppyGoat 12-01-2002 09:18 PM

Any idea how to do it? I only want it disabled, or unchecked by default, in one forum.

Dean C 12-03-2002 03:29 PM

In one forum would require hacking..

Let me look into it :D...

Dean C 12-03-2002 03:34 PM

Ok here it is

Not tested but should work :D

In newreply.php

replace this:

PHP Code:

  if (!isset($parseurl)) {
    
$parseurlchecked="CHECKED";
  } 

with this:

PHP Code:

if (!isset($parseurl)) and ($forum[forumid]!=x]) {
$parseurlchecked="CHECKED";
} else {
$parseurlchecked=""

Repeat these steps in newthread.php too :D

Remember to replace x to the forumid of the forum you want the parseurl box to be not checked in :D

Let me know if it works

Regards

- miSt

SloppyGoat 12-03-2002 03:49 PM

Thanks! I'll give it a try when I get home. I'll let ya know how it works. Mucho gracias! :classic:

SloppyGoat 12-04-2002 03:21 AM

Hmmmmmm....that doesn't seem to work, unless I did something wrong. The forum ID is just the name of the forum, right?

Parse error: parse error in newreply.php on line 464

How do you learn php coding anyway? It makes no sense to me. :confused: :lick:

Dean C 12-04-2002 04:03 PM

Yes thats my poor PHP coding..

I'm sure one of our local geniuses will help fix that code i posted :)

- miSt

SloppyGoat 12-04-2002 09:10 PM

Oh! I think I see what you mean now. The forum ID is at the end of the url to that forum? I'll try that instead... :confused:

Nope, that didn't work either. DOH! :nervous:

Help!!!! :disappointed:

NTLDR 12-04-2002 09:48 PM

Try using $threadinfo['forumid'] and not $forum[forumid]


All times are GMT. The time now is 05:58 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.01115 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_php_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