vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Disable Automatically parse links in text (https://vborg.vbsupport.ru/showthread.php?t=61979)

Sonic625 02-27-2004 03:09 PM

Disable Automatically parse links in text
 
I am looking for the files that need to be modified to disable the auto parse urls for everyone.
Thanks,
S

NTLDR 02-27-2004 03:19 PM

You need to edit the newthread and newreply templates.

Andreas 02-27-2004 03:24 PM

In functions_newpost.php FIND
PHP Code:

function convert_url_to_bbcode($messagetext)
// the auto parser - adds [url] tags around neccessary things 

BELOW that ADD
PHP Code:

return $messagetext

This will disable autoparsing of URLs everywhere.

@NTLDR
This would not stop ppl from using autoparsing, if would just hide the controls (or uncheck it).
And what about private messages? Editing posts?

Sonic625 02-27-2004 03:24 PM

Quote:

Originally Posted by NTLDR
You need to edit the newthread and newreply templates.

ok thanks, I found that just a second ago from the vB2 threads :
https://vborg.vbsupport.ru/showthrea...ght=parse+URLS
But it is coded differently so far I havent been able to find out what the code needs to be to select unchecked.
Thanks,
S

Sonic625 02-27-2004 03:29 PM

Just figured it out:
In the newreply.php find:
Code:

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

and remove it.

In editpost.php find:
Code:

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

and remove it

In newthread.php find:
Code:

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

and remove it


Thanks,
S

SloppyGoat 03-24-2004 05:47 PM

I'm looking to do something similar, but I only want one specific forum not to autoparse. Can this be done somehow?

Byron 06-08-2004 07:34 PM

would be nice if we have an option in admin for this.

EricaJoy 06-23-2005 05:00 PM

really huge bump...has anybody ever gotten a forum based solution for this? would
if forumid=y

then disable (maybe comment out?)
Code:

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

work?

please go easy on the above, i stopped trying to code anything after my 2nd object oriented programming class.

SloppyGoat 06-23-2005 07:30 PM

Quote:

Originally Posted by princessfrozen
really huge bump...

You ain't kidding! I can't even use the new version until this is resolved. I'm still using 2.3.0 until this can be done. I don't even have a test board installed at the moment. Please let me know if you get it figured out. I would love to upgrade to the new version. This is biggest thing rendering 3.x unusable for me. :angry:

Marco van Herwaarden 06-24-2005 03:31 AM

This is a very old thread, and i am not sure if this will work on 3.0.7.

But i suggest you start a new thread telling us exactly what you want to achieve, and we can think of a solution.

@sloppygoat, disabling url parsing should not be a real problem if that is what you need.


All times are GMT. The time now is 06:24 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.01191 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)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