Seite 1 von 3

Wort durch Link ersetzen

Verfasst: 06.06.2012 06:42
von dieter99
Hallo,
kann man die Wortzensur-Funktion dazu nutzen, um ein Wort durch einen Link zu ersetzen? Oder gibt es dafür einen MOD?

Re: Wort durch Link ersetzen

Verfasst: 06.06.2012 11:28
von BNa
dieter99 hat geschrieben:kann man die Wortzensur-Funktion dazu nutzen, um ein Wort durch einen Link zu ersetzen?
Normalerweise nicht.
dieter99 hat geschrieben:Oder gibt es dafür einen MOD?
http://www.4seven.de/forum/6test/viewto ... ?f=6&t=171

Re: Wort durch Link ersetzen

Verfasst: 02.08.2012 23:56
von dieter99
BNa hat geschrieben:
dieter99 hat geschrieben:kann man die Wortzensur-Funktion dazu nutzen, um ein Wort durch einen Link zu ersetzen?
Normalerweise nicht.
dieter99 hat geschrieben:Oder gibt es dafür einen MOD?
http://www.4seven.de/forum/6test/viewto ... ?f=6&t=171
Der Link funktioniert leider nicht (mehr). Kennt jemand einen MOD, mit dem man Wörter durch einen Link ersetzen kann?

Re: Wort durch Link ersetzen

Verfasst: 03.08.2012 11:08
von HJW
Hallo,

du kannst die Wortzensur benutzen. Du musst den Link aber direkt in der Datenbank (phpbb_words) eingeben.

Die Ersetzung in diesem Format:

<a href="./xxx.php">xxx</a>

bzw

<a href="URL">xxx</a>

Re: Wort durch Link ersetzen

Verfasst: 03.08.2012 22:25
von BNa
dieter99 hat geschrieben: http://www.4seven.de/forum/6test/viewto ... t=171#p361

Der Link funktioniert leider nicht..
Der funktioniert, ist aber Memberbereich (user: tester / pw: tester)

Re: Wort durch Link ersetzen

Verfasst: 06.08.2012 21:53
von Shorty1968
Hallo BNa
Ich habe mir den Snippet mal eingebaut und bekomme:

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 822: Undefined index: replace
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_content.php on line 823: Undefined index: match
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 823: preg_replace(): Empty regular expression
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5241: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3971)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5243: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3971)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5244: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3971)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5245: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3971)
*EDIT*
Der Debug ist nach einer eingabe in die Wortzensur weg und Funktioniert,wäre aber besser wenn er nicht ers kommen würde. :wink:

Re: Wort durch Link ersetzen

Verfasst: 06.08.2012 22:53
von BNa
Ohne Wortzensur gehts nicht, logo und der Fehler wird natürlich demnächst abgefangen, auch logo. Danke fürs berichten. Ohne Feedback stellt man das ja nicht fest, weil sowas ja wegen eines OP Wunsches erstellt wurde und wenn sich niemand beschwert, wirds wohl gehen, So ist das alles im Leben.

Re: Wort durch Link ersetzen

Verfasst: 06.08.2012 22:55
von Shorty1968
Schon ok sollte nur zur info sein,wenn den jemand einbaut und den Fehler bekommt.

Re: Wort durch Link ersetzen

Verfasst: 06.08.2012 23:14
von BNa
Der Code wurde korrigiert. Danke nochmal für das Feedback.

Re: Wort durch Link ersetzen

Verfasst: 06.08.2012 23:18
von Shorty1968
Nichts zu danken immer wider gerne Neuen Code getestet Fehler weg super danke.