The Arcive of vBulletin Modifications Site. |
|
[url] tag messed up..... Details »»
|
|||||||||||||||||||||||||
Ok, my [url] tag is screwed up. Whenever someone uses it, the link ends up being something like this:
file:///C|/WINDOWS/Desktop/%5C%22http://www.vggmn.com%5C%22 I even remade the tags and it still doesn't work. Any ideas? (If I post links with HTML it works, so it MUST be the tag!) Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
you'll have to edit a php file to fix that problem
|
|
#3
|
||||
|
||||
|
I kind of figured that, but which file? and how?
|
|
#4
|
||||
|
||||
|
it should be the file functions.php
find function bbcodeparse2, thats where the bbcode(like the [url]-tag is parsed. replace your messed code with the code of the original functions.php |
|
#5
|
||||
|
||||
|
Damnit.....
"function bbcodeparse2" only appears once, and that isn't the problem (if it is, then the original functions.php file that I have has the same problem), and just searching for "bbcodeparse2" doesn't help either..... EDIT: Ok, I know what you mean, but it STILL didn't fix the problem....... DAMN!!! |
|
#6
|
|||
|
|||
|
Any ideas? It isn't just when people use the [url] tag. it also occures when people just type in a normal link. But if they use html the link is fine.
|
|
#7
|
||||
|
||||
|
in admin/functions.php, search for:
PHP Code:
PHP Code:
|
|
#8
|
||||
|
||||
|
well, here is the whole fuction thingy with that in it:
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=file:///C|/WINDOWS/Desktop/%5C%22$righturl%5C%22 target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";
}
|
|
#9
|
||||
|
||||
|
I see your problem, see that one part
PHP Code:
PHP Code:
|
|
#10
|
||||
|
||||
|
How in the hell.........
Thanks for the responce, can't stand not seeing it, lol. /me wonders how the f*ck that got messed up like that. Now that I think about it, it was probably one of those damned hackers. Damn they piss me off. |
![]() |
|
|