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-20-2002 05:01 PM

I think this is what it should be without the else.

Code:

if (!isset($parseurl) and ($threadinfo['forumid']!=22])) {
$parseurlchecked='CHECKED';
}


Dean C 12-20-2002 05:03 PM

Hehe i must have had the brainwave at the same time as you :)

- miSt

Boofo 12-20-2002 05:04 PM

Quote:

Originally posted by Mist
PHP Code:

if [color=red]([/color](!isset($parseurl)) and ($threadinfo['forumid']!=22]))  {
$parseurlchecked="CHECKED";


That shouldn't give you a parse error and boofo i don't have an extra bracket do i? You missed out the one on the left which I highlighted

- miSt [/B]
You still have too many. First count all the brackets thast face left and then count all the brackets that face right. They should be the same amount. You have the right amount this time but I don't think you need to have 2 of them at the start. I could be all wrong on this. :)

Boofo 12-20-2002 05:06 PM

Quote:

Originally posted by Mist
Hehe i must have had the brainwave at the same time as you :)

- miSt

They say great minds think alike. ;)

Dean C 12-20-2002 06:16 PM

oooopseeee..

PHP Code:

if ((!isset($parseurl) and ($threadinfo['forumid']!=22]))  {
$parseurlchecked="CHECKED";


Im blind to that extra bracket!

Yes great minds do think alike :p

- miSt

SloppyGoat 12-20-2002 08:21 PM

Ok,I'll try the last one then. Although I don't know php at all, I can't see how this one works, when I could kind of understand the first ones. :confused:

I'll let ya know what happens. ;)

Boofo 12-20-2002 09:11 PM

Quote:

Originally posted by Mist
oooopseeee..

Code:

if LL!issetL$parseurlR and L$threadinfo['forumid']!=22]RR  {
$parseurlchecked="CHECKED";
}

Im blind to that extra bracket!

Yes great minds do think alike :p

- miSt

Ok, I will put an L where you have left brackets and an R where you have right brackets. You have 4 left brackets and 3 right brackets. Do you see what I mean?

It should be like this:
Code:

if L!issetL$parseurlR and L$threadinfo['forumid']!=22]RR  {
$parseurlchecked="CHECKED";
}


NTLDR 12-20-2002 09:20 PM

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 '';
        }
  } 


Boofo 12-20-2002 09:23 PM

It takes a Master to put all of us Grasshoppers in our place. Good job, sir. :)

Dean C 12-20-2002 09:36 PM

hehe thanks NTDLR ;)

But why doesn't my code work ?

- mist


All times are GMT. The time now is 10: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.01093 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_code_printable
  • (3)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