Hide links voor gasten vraag

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Aquarezz
Berichten: 195
Lid geworden op: 14 nov 2007, 13:48

Hide links voor gasten vraag

Bericht door Aquarezz » 24 feb 2008, 13:08

  • 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

Code: Selecteer alles

 tags ook die boodschap krijgen?

Bedankt op voorhand!

Aquarezz
Berichten: 195
Lid geworden op: 14 nov 2007, 13:48

Re: Hide links voor gasten vraag

Bericht door Aquarezz » 26 feb 2008, 12:46

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 :P

svenn
Berichten: 5001
Lid geworden op: 14 jul 2004, 13:00
Locatie: Kortrijk
Contacteer:

Re: Hide links voor gasten vraag

Bericht door svenn » 28 feb 2008, 20:57

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!

Aquarezz
Berichten: 195
Lid geworden op: 14 nov 2007, 13:48

Re: Hide links voor gasten vraag

Bericht door Aquarezz » 29 feb 2008, 10:45

Hoe bedoel je?

Sorry, ik snap het niet echt :P

svenn
Berichten: 5001
Lid geworden op: 14 jul 2004, 13:00
Locatie: Kortrijk
Contacteer:

Re: Hide links voor gasten vraag

Bericht door svenn » 01 mar 2008, 11:34

je error word aangeroepen in een "quote" stijl;

Code: Selecteer alles

class="quote"
dat moet in "code" stijl, ik weet echter niet hoe je code tags eruitzien.

Aquarezz
Berichten: 195
Lid geworden op: 14 nov 2007, 13:48

Re: Hide links voor gasten vraag

Bericht door Aquarezz » 01 mar 2008, 15:30

is standaard... als je dat bedoelt ;)
Maar bedankt :)

Gesloten