Ik heb overal lopen zoeken maar ik heb nog geen mod gevonden om links een maximale lengte te geven. Ik heb zelf ook al gekeken of ik het zelf kon doen maar ik kwam er niet uit.
De reden is dat lange links de layout vern**ken.
Weet iemand of er een mod is?
BVD
links korter maken
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
-
- Berichten: 55
- Lid geworden op: 04 dec 2004, 16:06
Geen mod, gewoon 1 regeltje code:
Code: Selecteer alles
MOD Link_Link
Author: Merlin Sythove
Replace links in the form of <a .... >(http|www)....</a> that are longer than 50
characters with the word "Link" - the actual link will still be present in the
href section of th <a> tag.
### bbcode.php FIND
// Remove our padding..
$ret = substr($ret, 1);
## BEFORE ADD
//MOD Link_Link Replace all links longer than 50 characters with the word "link"
//See http://www.desilva.biz/php/xtracturl.html
// the {50,} is where the length is set
$ret = preg_replace("#>((http|https|ftp):\/\/|www)[a-z0-9\-\._]+\/?[a-z0-9_\.\-\?\+\/\~\=\&\%\#\;\,]{50,}[a-z0-9\/]{1}</a>#si",">Link</a>", $ret);