Seite 1 von 1

THOR Style - Modifizierung

Verfasst: 27.08.2007 15:06
von Sesaya
---

Verfasst: 27.08.2007 17:26
von porfavor
Es gibt bereits einen Mod, bei dem man auswählen kann, auf welcher Seite das angezeigt werden soll.

Code: Alles auswählen

##########################################################################################
##                        Profile on Left or Right Mod v 1.0.0                          ##
##                                                                                      ##
##     For use with phpBB3 RC4 (RC5 dev) or later.                                      ##
##     This Mod is part of the IntegraMod Portal (Stargate Portal with all the Mods.    ##
##     Post your FINDEings, bugs etc., in appropriate mod Forum...                       ##
##                                                                                      ##
##     Copyright: phpbbireland 2005-2007 (Michael O'Toole) www.phpbbireland.com         ## 
##     Last Updated: 16 August 2007 04:54                                               ##
##########################################################################################
#                                                                                        #
#      Please backup all code relating to this installation....                          #
#      Also note, edits in this process do not delete any of the core code...            #
#                                                                                        #
##########################################################################################
#                                       UPDATES                                          #
#                                      ---------                                         #
#  Updates: 1:                                                                           #
#  Updates: 2:                                                                           #
#  Updates: 3:                                                                           #
#                                      ---------                                         #
#                                                                                        #
##########################################################################################

##########################################################################################
#                                                                                        #
#  Dieser MOD ermöglicht Membern,                                                        #
#  ihr Profil links oder rechts neben dem Beitrag anzuzeigen,                            #
#  einstellbar im Persönlichen Bereich                                                   #
#                                                                                        #
##########################################################################################

##########################################################################################
#                                                                                        #
#       SQL Required to add this mod... None                                             #
#                                                                                        #
##########################################################################################

(Notiere: Falls du das Stargate Portal installiert hast, könnten diese Dateien bereits existieren.)

Kopiere Dateien: 

  icon_user_online_left.gif to: styles/prosilver/imageset/en/icon_user_online_left.gif

##########################################################################################
#                              Profile on Left or Right                                  #  
##########################################################################################


Files to edit:

includes/ucp/upc_prefs.php
language/en/ucp.php
styles/prosilver/template/ucp_prefs_personal.html
styles/prosilver/template/viewtopics_body.html


#
#-----[ ÖFFNE ]------------------------------------------
#

includes/ucp/ucp_prefs.php

# 
#-----[ FINDE ]------------------------------------------ 
# 

					'allowpm'		=> request_var('allowpm', (bool) $user->data['user_allow_pm']),

# 
#-----[ DANACH HINZUFÜGEN ]------------------------------------------ 
# 

					'profile_position'	=> request_var('profile_position', $user->data['profile_position']),

# 
#-----[ FINDE ]------------------------------------------ 
# 

							'user_style'			=> $data['style'],

# 
#-----[ DANACH HINZUFÜGEN ]------------------------------------------ 
# 

							'profile_position'		=> $data['profile_position'],

# 
#-----[ FINDE ]------------------------------------------ 
# 

					'S_SELECT_NOTIFY'		=> ($config['jab_enable'] && $user->data['user_jabber'] && @extension_loaded('xml')) ? true : false)
				);
				
# 
#-----[ DANACH HINZUFÜGEN ]------------------------------------------ 
# 

				$template->assign_vars(array(
					'S_PROFILE_POSITION'	=> $data['profile_position'])					
				);


#
#-----[ ÖFFNE ]------------------------------------------
#

languages/en/ucp.php

# 
#-----[ FINDE ]------------------------------------------ 
# 

	'NO_NONMEMBER'	=> 'Keine nicht-Mitglieder Gruppe',

# 
#-----[ DANACH HINZUFÜGEN ]------------------------------------------ 
# 

	'PROFILE_POSITION'	=> 'Falls verfügbar, wähle die bevorzugte Profil Ausrichtung',
	'LEFT'				=> 'Links',
	'RIGHT'				=> 'Rechts',




#
#-----[ ÖFFNE ]------------------------------------------
#

styles/prosilver/template/ucp_prefs_personal.html

# 
#-----[ FINDE ]------------------------------------------ 
# 

	<!-- IF S_STYLE_OPTIONS -->
		<dl>
			<dt><label for="style">{L_BOARD_STYLE}:</label></dt>
			<dd><select name="style" id="style">{S_STYLE_OPTIONS}</select></dd>
		</dl>
	<!-- ENDIF -->

# 
#-----[ DANACH HINZUFÜGEN ]------------------------------------------ 
# 

	<!-- Michael's Mod to allow profile position on left or right of viewtopics phpbbireland.com -->
	<dl>
		<dt><label for="profile_position">{L_PROFILE_POSITION}:</label></dt>
		<dd>
		<label for="profile_position0"><input type="radio" name="profile_position" id="profile_position0" value="L"<!-- IF S_PROFILE_POSITION == 'L' --> checked="checked"<!-- ENDIF --> /> {L_LEFT}</label> 
		<label for="profile_position1"><input type="radio" name="profile_position" id="profile_position1" value="R"<!-- IF S_PROFILE_POSITION == 'R' --> checked="checked"<!-- ENDIF --> /> {L_RIGHT}</label>
		</dd>  
	</dl>

EOM
Vielleicht hilfts dir das ein wenig. Ist aber auch für Prosilver. Desweiteren gibt es noch ein Tutorial:

http://www.easytutorials.org/prosilver_ ... _side.html

Die Grafik kann ich dir evtl. schicken, falls du den Mod installierst.