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-05-2002 03:13 AM

Like this???
PHP Code:

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

That doesn't seem to work either. I tried it with and without the single quote around forumid, too. :disappointed:

The error is in that first line somewhere. That's line 464, anyway.

Dean C 12-06-2002 03:37 PM

Try this:

PHP Code:

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


SloppyGoat 12-06-2002 04:36 PM

Ah, maybe too many parenthesis? I'll try it. :o

NTLDR 12-06-2002 04:48 PM

That won't work as the is a ) missing.

This is what it should look like:

PHP Code:

if (!isset($parseurl) and ($threadinfo[forumid]!=X])) { 

Assuming $threadinfo[forumid] is the correct variable.

Dean C 12-06-2002 05:36 PM

But why is there an extra bracket NTDLR on the end of the line?

I'm still learning php so please feel free to explain it to me :D

- miSt

NTLDR 12-06-2002 05:50 PM

To match up with the one at the start ;)

Quote:

if (!isset($parseurl) and ($threadinfo[forumid]!=X])) {
The colours shows where the brackets match up :)

SloppyGoat 12-07-2002 05:05 AM

I get the same error. This is what I used....

PHP Code:

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

Damnit! This isn't turning out to be an easy thing to do, I guess. :p

Dean C 12-07-2002 12:05 PM

Yes NTDLR but look at your post you didn't have the correct number of brackets :) Lol i hope im right there

Try this:

PHP Code:

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

Regards

- miSt

SloppyGoat 12-07-2002 05:18 PM

Ok, I'll try this. :D I'll let ya know. ;)

Dean C 12-07-2002 06:54 PM

Lol please do :)

- miSt


All times are GMT. The time now is 07:59 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.01162 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_quote_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