Signature Editor/Preview Deluxe

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
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
FF27Q
Mitglied
Beiträge: 150
Registriert: 27.01.2009 16:17

Signature Editor/Preview Deluxe

Beitrag von FF27Q »

#################################################################
## Mod Title: Signature Editor/Preview Deluxe ;)
## Mod Version: 1.1
## Author: EGO2000
## Description: This mod adds a really cool Signature Editor to
## your Board, included Preview & Save & BBCodes

Hab den bei mir eingebaut. Alles sieht gut aus. Doch wenn ich meine signatur ändern will und auf einen der buttons klicke (vorschau,speichern...) ,dann wird einfach die seite neu geladen und alles ist wieder beim alten. Also ich kann meine signatur nicht ändern,nicht entfernen ... .
An einem einbau fehler kanns nicht liegen. Ich hab eben alles nochmal genau überprüft ... .
Weis jemand an was das liegt ?
Anleitung :

Code: Alles auswählen

#-----[ OPEN ]--------------------------------------------- 
# 
profile.php

#
#-----[ FIND ]---------------------------------------------
#
		include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
		exit;
	}

# 
#-----[ AFTER, ADD ]-------------------------------------- 
#
	else if ( $mode == 'signature' )
	{
		if ( !$userdata['session_logged_in'] && $mode == 'signature' )
		{
			$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
			header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=signature", true));
			exit;
		}

		include($phpbb_root_path . 'includes/usercp_signature.'.$phpEx);
		exit;
	}

# 
#-----[ OPEN ]--------------------------------------------- 
# 
language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------------------
#

//
// That's all Folks!
// -------------------------------------------------

?>

# 
#-----[ BEFORE, ADD ]-------------------------------------- 
#
//signature editor
$lang['sig_description'] = "Edit Signature (<b>Preview included</b>)";
$lang['sig_edit'] = "Edit Signature";
$lang['sig_current'] = "Current Signature";
$lang['sig_preview'] = "Preview";
$lang['sig_none'] = "No Signature available";
$lang['sig_save'] = "Save";
$lang['sig_save_message'] = "Signature saved successful ! <br /><br />Click on \"Current Signature\" to see or check it again.";

# 
#-----[ OPEN ]--------------------------------------------- 
# 
language/lang_german/lang_main.php

#
#-----[ FIND ]---------------------------------------------
#

//
// That's all Folks!
// -------------------------------------------------

?>

# 
#-----[ BEFORE, ADD ]-------------------------------------- 
#
//signature editor
$lang['sig_description'] = "Signatur bearbeiten (<b>inklusive Vorschau</b>)";
$lang['sig_edit'] = "Signatur bearbeiten";
$lang['sig_current'] = "Aktuelle Signatur";
$lang['sig_preview'] = "Vorschau";
$lang['sig_none'] = "Keine Signatur vorhanden";
$lang['sig_save'] = "Speichern";
$lang['sig_save_message'] = "Signatur erfolgreich gespeichert ! <br /><br />Klicke auf \"Aktuelle Signatur\" um sie noch einmal zu überprüfen.";

# 
#-----[ OPEN ]--------------------------------------------- 
# 
includes/usercp_register.php

#
#-----[ FIND ]---------------------------------------------
#
			$sql = "UPDATE " . USERS_TABLE . "
				SET " . $username_sql . $passwd_sql .

#
#-----[ IN LINE FIND & REMOVE ]---------------------------------------------
#
, user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid'

#
#-----[ FIND ]---------------------------------------------
#
	$template->assign_vars(array(
		'USERNAME' => $username,
		'CUR_PASSWORD' => $cur_password,
		'NEW_PASSWORD' => $new_password,
		'PASSWORD_CONFIRM' => $password_confirm,
		'EMAIL' => $email,
# 
#-----[ AFTER, ADD ]-------------------------------------- 
#
		//signature editor
		'SIG_EDIT_LINK' => append_sid("profile.$phpEx?mode=signature"),
		'SIG_DESC' => $lang['sig_description'],
		'SIG_BUTTON_DESC' => $lang['sig_edit'],
		//signature editor

# 
#-----[ OPEN ]--------------------------------------------- 
# 
themes/xxx/forums/profil_add_body.tpl

#
#-----[ FIND ]---------------------------------------------
#
	<tr> 
	  <td class="row1"><span class="gen">{L_SIGNATURE}:</span><br /><span class="gensmall">{L_SIGNATURE_EXPLAIN}<br /><br />{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"> 
		<textarea name="signature"style="width: 300px"  rows="6" cols="30" class="post">{SIGNATURE}</textarea>
	  </td>
	</tr>

# 
#-----[ REPLACE WITH ]---------------------------------------
#
	<tr> 
	  <td class="row1"><span class="gen">{SIG_DESC}:</span></span></td>
	  <td class="row2"><INPUT TYPE="button" VALUE="{SIG_BUTTON_DESC}" onclick="window.location.href='{SIG_EDIT_LINK}'"></td>
	</tr>

# 
#-----[ SAVE AND CLOSE ALL FILES ]------------------------------------------ 
#
http://www.Florian-Fromlowitz.de.gg <-- Fanpage
http://www.TimWiese-Fanpage.de.vu <-- Fanpage
http://keeperboard.ohost.de <--- Für alle Fußball & Mini Games Fans/ Registrieren&Mitmachen !
Antworten

Zurück zu „phpBB 2.0: Mod Support“