vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Turn off autoparsing (vB3) (https://vborg.vbsupport.ru/showthread.php?t=59701)

SloppyGoat 01-05-2004 01:26 AM

Turn off autoparsing (vB3)
 
I'd like autoparsing or url hyperlinks to be off by default (or completely disabled), but only in a certain forum. It can't be global. This was accomplished in vB2.x, but now I'd be simply ecstatic if someone could help figure out how to do this in vB3.0.

Thanks in advance

SloppyGoat 01-12-2004 01:48 AM

Oh yeah, BTW...here's the old code that worked in 2.x. It never did work on the quick reply though. I wish that could be fixed on the new version. Anyway, I thought this might help someone to figure this out. I hope this makes it easier.

There are two different variations that accomplish this hack...

Replace this in newthread.php and newreply.php

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



With this:

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



This also seemed to work:

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

Erwin 01-12-2004 01:58 AM

You can do this using template conditionals now in vB3 - no hack needed. :)

SloppyGoat 01-12-2004 02:14 AM

That's great! Could you point me in the right direction? I know nothing of template conditionals, I guess. :ermm: Where do I find this?

SloppyGoat 01-13-2004 10:40 PM

Basically, I want it to do this...

If forurmid=12, then parseurl=no
else, parseurl=yes

I just don't know how to do it. I'm sure it's something simple, but I don't know the code to do it. Anyone? :ermm:

SloppyGoat 01-15-2004 07:15 PM

Nobody? :(

SloppyGoat 03-23-2004 07:15 PM

Now that it's gone Gold, I really need to figure this one out. Any help will be greatly appreciated.

SloppyGoat 03-24-2004 01:15 AM

Ok, Zachery at vB just told me that WYSIWYG will always parse url's, so that will also have to be disabled in that one forum. Can this be done using conditionals, too?

SloppyGoat 03-24-2004 06:20 PM

I've been reading about this, and I think I just need convert this old code into the newer code.

Old 2.X code

PHP Code:

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




New 3.0 code

PHP Code:

if (!$checked['parseurl'])
{
$checked['parseurl'] = HTML_CHECKED;


I assume I just need an if/else statement in there, as in the 2.X code, right? I'm just not sure how to do this, since the code is a bit different in the new version. Anyone care to help me out with a bit of 2.X to 3.0 translation?

kauka 03-24-2004 11:19 PM

Quote:

Originally Posted by Erwin
You can do this using template conditionals now in vB3 - no hack needed. :)

What template conditionals you talking about erwin?


All times are GMT. The time now is 07:35 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.01051 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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