Agi
TEAM - PHP Freak

Dabei seit: 22.11.04
Beiträge: 2.628
Fähigkeiten: WBB3 Profi Forenversion: 3.1
 |
|
Suche in der acp/lib/class_parse.php nach
| php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
|
function formaturl($url, $title = '', $maxwidth = 60, $width1 = 40, $width2 = -15) {
if (!wbb_trim($title)) {
$title = rehtmlconverter($url);
if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
if ($this->cuturls == 1 && wbb_strlen($title) > $maxwidth) $title = wbb_substr($title, 0, $width1)."...".wbb_substr($title, $width2);
return "<a href=\"$url\" target=\"_blank\">".htmlconverter($this->stripSlashes($title))."</a>";
}
else {
if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
return "<a href=\"$url\" target=\"_blank\">".$title."</a>";
}
} |
|
Und ersetze gegen
| php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
|
function formaturl($url, $title = '', $maxwidth = 60, $width1 = 40, $width2 = -15) {
if (!wbb_trim($title)) {
$title = rehtmlconverter($url);
if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
if ($this->cuturls == 1 && wbb_strlen($title) > $maxwidth) $title = wbb_substr($title, 0, $width1)."...".wbb_substr($title, $width2);
return "<a href=\"$url\">".htmlconverter($this->stripSlashes($title))."</a>";
}
else {
if (!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url";
return "<a href=\"$url\">".$title."</a>";
}
} |
|
Jetzt noch diesen SQL Befehl ausführen:
| code: |
1:
|
TRUNCATE bb1_postcache; |
|
(Die 1 gegen deine Installationsnr. austauschen).
Dadurch werden auch bestehende Links nach dem neuen Schema neu eingelesen und nicht mehr extern geöffnet.
Sollte so eigentlich funktionieren.
__________________
|
|