Pagina 1 van 1
Hide links voor gasten vraag
Geplaatst: 24 feb 2008, 13:08
door Aquarezz
- Modificatie & Versie: Hide links voor gasten - 2.0.21
Directe link naar de modificatie: http://www.phpbbhacks.com/download/4543
Adres van je forum: http://
phpBB versie: 2.0.23
Heb je onlangs een andere modificatie of stijl geïnstalleerd?
Vanalles
Wat is het probleem?
Geen, lees tekst hieronder.
Euhm, dit is de installatie mod:
Hide links mod
Nu, als ik op m'n forum kijk, staan alle links tussen code tags.
Dit omdat hyperlinking 'verboden' is.
En zodat ook de sites niet kunnen teweten komen vanwaar het afkomstig is.
Nu installeerde ik die mod om zo meer leden te krijgen.
Maar, als ik gast ben, zie ik wel nog alle links.
Als ik mijn links NIET codeer zie ik idd:
Only registered users can see links on this board!
Get registred or enter the forums!
Maar, wat moet ik precies veranderen, zodat links tussen
Re: Hide links voor gasten vraag
Geplaatst: 26 feb 2008, 12:46
door Aquarezz
Iemand?
Ik denk dat het hem hier in zit:
Code: Selecteer alles
if ( $url_replacer )
{
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", $url_replacer, $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", $url_replacer, $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", $url_replacer, $ret);
}
else
{
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
}
Weet dit niet zeker, maar kzal het es testen
Moest iemand kunnen bevestigen

Het duurt nu toch nog 4 uur voor ik het zal proberen

Re: Hide links voor gasten vraag
Geplaatst: 28 feb 2008, 20:57
door svenn
het makkelijkste is dat je gewoon de design aanpast van :
Code: Selecteer alles
<!-- BEGIN login_request --></span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}<br />{GET_REGISTERED}{ENTER_FORUM}</td>
</tr>
</table><span class="postbody"><!-- END login_request -->
<!-- BEGIN post_count_request --> </span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}</td>
</tr>
</table><span class="postbody"><!-- END post_count_request -->
het eerste deel dus :
Code: Selecteer alles
<!-- BEGIN login_request --></span><table width="40%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="quote">{L_WARNING}<br />{GET_REGISTERED}{ENTER_FORUM}</td>
</tr>
</table><span class="postbody"><!-- END login_request -->
aanpassen naar de design van 'code' , succes!
Re: Hide links voor gasten vraag
Geplaatst: 29 feb 2008, 10:45
door Aquarezz
Hoe bedoel je?
Sorry, ik snap het niet echt

Re: Hide links voor gasten vraag
Geplaatst: 01 mar 2008, 11:34
door svenn
je error word aangeroepen in een "quote" stijl;
dat moet in "code" stijl, ik weet echter niet hoe je code tags eruitzien.
Re: Hide links voor gasten vraag
Geplaatst: 01 mar 2008, 15:30
door Aquarezz
is standaard... als je dat bedoelt

Maar bedankt
