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 12-20-2002 09:52 PM

Quote:

Originally posted by NTLDR
This threads been buggin me loads, so here we go, proper working coded, checked, double checked and tested on localhost:

PHP Code:

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


YES!!!! It works!!! Thank you so much!!! You're a master! I'm simply ecstatic!!!! :banana:

SloppyGoat 12-20-2002 09:54 PM

Ok, one thing that puzzles me...why did my reply go up here? I replied after you posted the alternate code! :rolleyes:

NTLDR 12-20-2002 09:59 PM

Thinking about I I expect we were using and and should have been using or. In the end if I can't get it to work like I want I give up and do it the way I posted!

SloppyGoat 12-20-2002 10:01 PM

Ok, I guess I forgot to set my time zone here. DOH!

[edit] But it's still above the last post! WTH? Is the clock screwed up here? It's 10:58PM here now. :cross-eyed:

NTLDR 12-20-2002 10:02 PM

*lol* After all this we used the wrong "and" this code also works:

PHP Code:

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


SloppyGoat 12-20-2002 11:09 PM

Quote:

Originally posted by NTLDR
*lol* After all this we used the wrong "and" this code also works:

PHP Code:

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


So, all it needed was "&&" instead of "and"? :knockedout:


BTW, any idea how to do this in editpost.php too? I'm sure this is the line that needs to be changed, right?
PHP Code:

$parseurlchecked="CHECKED"

Do I just use part of that code in this case?

[edit]
Ok, I tried the same code replacement. It worked just fine! WooooHOOOO!!!!! :D

Dean C 12-21-2002 05:45 AM

geez lol you learn something every day :)

- miSt

NTLDR 12-21-2002 06:50 PM

Quote:

Originally posted by SloppyGoat
So, all it needed was "&&" instead of "and"? :knockedout:
Due to the order of precedence in PHP I guess, as thats the olny difference between "and" and "&&" and "or" and "||".

PHP has the following order of precedence (Left being highest):

PHP Code:

++ (Increment), -- (Decrement), /, *, %, +, -, <, <=, =>, >,
==, ===, !=, &&, ||, =, +=, -=, /=, *=, %=, .=,
and, xor, or 


SloppyGoat 12-21-2002 07:49 PM

It's Greek to me, but maybe I'll be forced to understand it eventually. LOL :D

Thanks again to all who've put forth the effort to help me out here. You're good people. I'm still relatively new to vB, and I really appreciate you sharing your knowledge. ;)

NTLDR 12-21-2002 08:00 PM

Glad to share the knowlage :D *remembers what it was like not to know how to add a template!*


All times are GMT. The time now is 11:48 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.01595 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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