vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Get rid of aut. parse url's (https://vborg.vbsupport.ru/showthread.php?t=34596)

extreme_old 01-29-2002 12:56 PM

Can anybody tell me how to get rid of the aut. parse url's.

I don't want ppl to be able to post directly link on my board, like using these tags: and also get rid of this option:

Automatically parse URLs: automatically adds and around internet addresses.

How do I do this, please help me?

Extreme

Admin 01-29-2002 01:14 PM

First, in your functions.php file replace this:
Code:

function checkurl($url, $hyperlink="") {
  $righturl = $url;
  if(!preg_match("![a-z]://!si", $url)) {
    $righturl = "http://$righturl";
  }
  // remove threat of users including javascript in url
  /*$righturl = preg_replace("/javascript:/si", "java script:", $righturl);
  $righturl = preg_replace("/about:/si", "about :", $righturl);*/
  $hyperlink = iif(trim($hyperlink)=="" or $hyperlink==$url, iif(strlen($url)>55,substr($url,0,35)."...".substr($url,-15),$url) ,$hyperlink);
  return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";
}

with only this:
Code:

function checkurl($url, $hyperlink="") {
  return $url;
}

that should disable the url tag.

Now just go into the newreply and newthread templates and remove that line you pasted. :)

extreme_old 01-29-2002 01:26 PM

Worked just fine. How do I then get rid of the box "http://" in the buttons?

Admin 01-29-2002 01:34 PM

Remove this from the vbcode_buttons template:
Code:

                <input type="button" class="bginput" value="http://" title="Insert Hyperlink" onclick="namedlink(this.form,'URL')" onmouseover="stat('url')"
                >

You are welcome.

extreme_old 01-29-2002 01:39 PM

And from the pm's?

Admin 01-29-2002 02:20 PM

What about them?


All times are GMT. The time now is 07:14 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.01033 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete