Seite 2 von 2

Re: ~closed~ - Mod

Verfasst: 17.05.2010 14:20
von BNa
Da war ein { zuviel. Nun stimmts.
Öffne

posting.php

Finde

Code: Alles auswählen

			if ($post_data['topic_status'] == ITEM_LOCKED && !$topic_lock && $perm_lock_unlock)
Davor füge ein

Code: Alles auswählen

		if((strpos(utf8_normalize_nfc(request_var('message', '', true)), '~closed~') !== false) && $auth->acl_get('m_lock', $forum_id))
		{
		if ($post_data['topic_status'] !== ITEM_UNLOCKED)
		   {
		$change_topic_status = ITEM_LOCKED;
		   }
		}
~closed~ kann natürlich ersetzt werden.