Smilees in Themen-/Forentitel

In diesem moderierten Forum werden Code-Schnipsel, die zu klein sind, um richtige Mods zu sein, abgelegt.
Bei Fragen oder Problemen benutze bitte das Forum phpBB 2.0: Mod Support.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Smilees in Themen-/Forentitel

Beitrag von Acid »

Beschreibung: Mit dieser kleinen Codeänderung kann man in dem Thementitel bzw. als Admin in dem Forentitel/der Forenbeschreibung phpBB-interne Smilees über die Smilee-Kürzel anzeigen lassen.
phpBB Version: 2.0.x

Code: Alles auswählen

#
#--------- [ DATEI ÖFFNEN ] -----------------------------
#
# /viewtopic.php (wenn notwendig)
#
#--------- [ FINDE ] -----------------------------
#
          'TOPIC_TITLE' => $topic_title,

#
#--------- [ MIT FOLGENDEM ERSETZEN ] -------------------------
#
          'TOPIC_TITLE' => smilies_pass($topic_title),


#
#--------- [ DATEI ÖFFNEN ] -----------------------------
#
# /viewforum.php
#
#--------- [ FINDE ] -----------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#--------- [ DARUNTER EINFÜGEN ] -------------------------
#
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
#
#--------- [ FINDE ] -----------------------------
#
			'TOPIC_TITLE' => $topic_title,
#
#--------- [ MIT FOLGENDEM ERSETZEN ] -------------------------
#
			'TOPIC_TITLE' => smilies_pass($topic_title),


#
#--------- [ DATEI ÖFFNEN ] -----------------------------
#
# /index.php
#
#--------- [ FINDE ] -----------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#--------- [ DARUNTER EINFÜGEN ] -------------------------
#
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
#
#--------- [ FINDE ] -----------------------------
#
								'FORUM_NAME' => $forum_data[$j]['forum_name'],
								'FORUM_DESC' => $forum_data[$j]['forum_desc'],
#
#--------- [ MIT FOLGENDEM ERSETZEN ] -------------------------
#
								'FORUM_NAME' => smilies_pass($forum_data[$j]['forum_name']),
								'FORUM_DESC' => smilies_pass($forum_data[$j]['forum_desc']),


# 
#--------- [ DATEI ÖFFNEN ] -----------------------------
#
# /admin/admin_forums.php
#
#--------- [ FINDE ] -----------------------------
#
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
#
#--------- [ DARUNTER EINFÜGEN ] -------------------------
#
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
#
#--------- [ FINDE ] -----------------------------
#
					'FORUM_NAME' => $forum_rows[$j]['forum_name'],
					'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
#
#--------- [ MIT FOLGENDEM ERSETZEN ] -------------------------
#
					'FORUM_NAME' => smilies_pass($forum_rows[$j]['forum_name']),
					'FORUM_DESC' => smilies_pass($forum_rows[$j]['forum_desc']),


#
#--------- [ DATEI ÖFFNEN ] -----------------------------
#
# /includes/bbcode.php
#
#--------- [ FINDE ] -----------------------------
#
			$repl[] = '<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['emoticon'] . '" border="0" />';
#
#--------- [ MIT FOLGENDEM ERSETZEN ] -------------------------
#
			$admin_smilees = ( defined('IN_ADMIN') ) ? '../' : '';
			$repl[] = '<img src="'. $admin_smilees . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['emoticon'] . '" border="0" />';
Keywords: smilie+smilee+themen+foren+titel
Antworten

Zurück zu „phpBB 2.0: Snippets“