Seite 1 von 1

Wortzensur mit link

Verfasst: 14.11.2009 11:33
von SteiniKeule
Hallo

ich bin auf der suche nach einer möglichkeit ein wort durch einen Link zu ersetzen. z.b. wenn jemand Haus schreibt sollte das so ersetzt werden dass im beitrag dann ein Link steht das auf www.irgendwas.de/haus verweist.
gibt es sowas irgendwo oder hat jemand sowas in planung?

danke

Re: Wortzensur mit link

Verfasst: 14.11.2009 11:41
von Chalong

Re: Wortzensur mit link

Verfasst: 14.11.2009 12:01
von SteiniKeule
ja genau. Aber irgerndwie stimmt die anleitung nicht.

Open: common.php
Find
Tip: This may be a partial find and not the whole line.

CODE: SELECT ALL

Code: Alles auswählen

	$config = $cache->obtain_config();
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

CODE: SELECT ALL

Code: Alles auswählen

// th23 start - autolinks
if ($config['th23_autolinks'])
{
	require($phpbb_root_path . 'includes/th23_autolinks.' . $phpEx);
}
// th23 end - autolinks
es gibt den Codeteil nicht in der php datei.


Open: posting.php
Find
Tip: This may be a partial find and not the whole line.

CODE: SELECT ALL

Code: Alles auswählen

$post_data['post_time'] = ($mode == 'edit') ? $post_data['post_time'] : $current_time;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

CODE: SELECT ALL

Code: Alles auswählen

// th23 start - autolinks
	if ($config['th23_autolinks'] && $config['th23_autolinks_posts'] && $config['th23_autolinks_preview'] && ($config['th23_autolinks_forum'] == 1 || ($config['th23_autolinks_forum'] == 2 && strpos($config['th23_autolinks_forum_ids'], '-' . $forum_id . '-') !== false) || ($config['th23_autolinks_forum'] == 3 && strpos($config['th23_autolinks_forum_ids'], '-' . $forum_id . '-') === false)))
	{
		$config['th23_autolinks_action'] = true;
	}
	// th23 end - autolinks	
hier das gleiche. ich hab jetzt mal noch nicht weiter geschaut. aber in den beiden Datein sind die Codeteile nicht vorhanden.

Re: Wortzensur mit link

Verfasst: 14.11.2009 14:00
von redbull254
Hallo erstmal,

klar gibt es die. ;-)
common.php

Code: Alles auswählen

/ Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
posting.php

Code: Alles auswählen

// Preview
if (!sizeof($error) && $preview)
{
	$post_data['post_time'] = ($mode == 'edit') ? $post_data['post_time'] : $current_time;
usw.

Ich weiß nicht, womit Du suchst. Versuche mal, nur Teile des Codes und nicht die ganze Kette zu finden.