The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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>";
}
Code:
function checkurl($url, $hyperlink="") {
return $url;
}
Now just go into the newreply and newthread templates and remove that line you pasted.
|
|
#3
|
|||
|
|||
|
Worked just fine. How do I then get rid of the box "http://" in the buttons?
|
|
#4
|
||||
|
||||
|
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')"
>
|
|
#5
|
|||
|
|||
|
And from the pm's?
|
|
#6
|
||||
|
||||
|
What about them?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|