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)

Dean C 12-18-2002 07:00 PM

Yes filburt... not everyone loves the phpinclude template as much as you hehe ;)

Boofo 12-19-2002 09:30 PM

Mist, where's the bee? I like the bee much better. ;)

SloppyGoat 12-20-2002 04:18 AM

Quote:

Originally posted by Boofo
Try this:

Code:

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


Nope, same parse error in line 464. :cry: Could I be using the wrong forumid or something? This is what it says at the end of the url in the main directory of that particular forum, so I assumed that's the id I should use? (forumdisplay.php?s=&forumid=22) Of course, the reply id changes depending on which thread you're replying to.....and I've been testing this on the newreply.php each time.
[edit]
I also tested it in newthread.php, just out of curiosity, and I get the same error there too. (different line number, of course)

Boofo 12-20-2002 04:23 AM

Try this. I forgot the bracket.

Code:

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


SloppyGoat 12-20-2002 04:30 AM

Nope. Damn! Man, this isn't turning out to be the easiest hack, but I just know it's something pretty simple like what you guys are suggesting. I'm sure we're on the right track, anyway.

Boofo 12-20-2002 04:31 AM

Ok, give me the place you are trying to insert it at and I will try it here.

Dean C 12-20-2002 08:28 AM

Make sure you are replacing the right code snippet again and try this:

PHP Code:

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


Boofo forgot the bracket again... i have no idea why your getting these errors..

- miSt

Boofo 12-20-2002 03:45 PM

Mist, you have 1 too many brackets now. You need a right bracket for every left one. You have 4 left brackets and 3 right ones. :)

SloppyGoat 12-20-2002 04:23 PM

Quote:

Originally posted by Boofo
Ok, give me the place you are trying to insert it at and I will try it here.
replace: (starts on line 464 in my newreply.php)

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

with:

All the suggested code so far....except the one above, which I'll try when I get home tonight. :lick:

Dean C 12-20-2002 04:56 PM

Ahhh i think i might have it this time!

Replace this:

PHP Code:

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


with this:

PHP Code:

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


I dont think an else is possible (possible brainwave hehe) :)

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


All times are GMT. The time now is 11:13 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.01677 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (2)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