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)

Boofo 12-21-2002 08:26 PM

We can "ADD" templates in vBulletin now? Damn!

SloppyGoat 12-26-2002 03:53 AM

Yep, right in the CP too. ;)

Velocd 12-26-2002 04:03 AM

Heh, what a funny thread. It's funny to see how long it took you guys to notice that one particular bracket, which I spotted erroneous from the first page ;)

Code:

($threadinfo['forumid']!=22]))
:p

SloppyGoat 12-26-2002 01:08 PM

Well! Where were YOU? LOL :D

SloppyGoat 04-11-2003 01:57 AM

In case you don't feel like reading this entire thread, I'll sum it up for you. This is a hack to exclude autoparsing url's in a single forum....not globally.

Ok, a new interesting, but horrible issue has developed with this hack. My quickreply box ignores this code.
PHP Code:

if (!isset($parseurl)) {
      if (
$foruminfo[forumid]!=22) {
            
$parseurlchecked="CHECKED";
        } else {
            
$parseurlchecked '';
        }
  } 


I assume it's because of this line in the replybox template:
Code:

<input type="hidden" name="parseurl" value="yes">
[edit] Nope, actually, I just tried setting it to no, and it still parsed.
[edit2] But if I remove that line, it stops parsing globally. Hmmmm

Does anyone know how I can edit this to exclude just one of my forums, but not all? Can someone help stop the madness, please? :confused:

notorious 05-13-2003 12:20 PM

i have looked at this code and instead of just one forum how would i use it so it was gobal and so that all the auto parse codes was unchecked

SloppyGoat 05-13-2003 08:34 PM

I could be wrong, but try replacing this

Code:

$parseurlchecked="CHECKED";
with this

Code:

$parseurlchecked = '';
(That is two single quotes - not one double. Not sure if it matters.)

Or, this is a way that it could be done globally without hacking. Although, I haven't tried it.

'newthread' and 'newreply' templates (I'd guess the edit template too)

Edit the following code in those templates. (Should be pretty self explanitory)

Code:

<input type="checkbox" name="parseurl"
value="yes" $parseurlchecked> <b>Automatically parse URLs:</b>
automatically adds http://and around internet addresses.


Boofo 05-13-2003 09:13 PM

Wouldn't it be?

PHP Code:

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


SloppyGoat 05-13-2003 09:28 PM

No, I don't think so. There is no "else" in the original lines. ;)

Code:

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


notorious 05-17-2003 11:16 AM

this is the way my php is set up

i did as SloppyGoat said

and changed this

Code:

<br><input type="checkbox" name="email" value="yes" $emailchecked >
<b>Email Notification

to this


Code:

<br><input type="checkbox" name="email" value="yes" $email>
<b>Email Notification


thx for your help


All times are GMT. The time now is 02:26 PM.

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.01069 seconds
  • Memory Usage 1,740KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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