Verfasst: 17.12.2002 14:06
Hä? Ja wie denn jetzt?? Dazu gibt es doch die Anleitung!!!
Code: Alles auswählen
##############################################################
## Mod Name: admin_link_in_userprofile_v1_0_2.txt
## Mod Title: Admin Link in User Profile
## Mod Version: 1.0.2
## for phpBB Version: 2.0.1
## Author: Matthias C. Hormann <matthias@hormann-online.net>
## Description: This mod places user management and user permissions
## links in the user's profile view.
## The links can only be seen if an admin views the user's profile.
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 3 (4)
## includes/usercp_viewprofile.php
##
## The following need to be modified for every TEMPLATE you are using:
## templates/subSilver/profile_view_body.tpl
##
## The following need to be modified for every LANGUAGE you are supporting:
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
##
## Included Files: (n/a)
##############################################################
##############################################################
## For Security Purposes, This MOD Cannot Be Posted Or Added At Any Non-Official phpBB Site
##############################################################
##############################################################
## Author Note:
## ------------
##
## o This mod is EasyMod v0.4alpha compatible.
## o Best viewed when your editor's tab size is set to 4.
## o Based on an idea by Matthijs van de Water <matthijs@vandewater.tk>
## and some follow-ups in the phpbb2-users.de forum
## (www.phpbb2-users.de).
##
##
## Change Log:
## -----------
##
## o v1.0.2
## - Initial release to the public.
## - Includes English as well as German language mod.
## - Minor cosmetic changes.
## o v1.0.0
## - Initial release for internal testing.
##
##############################################################
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php <- diese Datei sollst du öffnen
#
#-----[ FIND ]------------------------------------------
#
//
// Generate page <- das sollst du suchen
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Admin Link in User Profile v1.0.2
//
if($userdata['user_level'] == ADMIN)
{
$adminlink_label = $lang['AdminLink_Label'] . ': ';
$adminlink_manage = "<a href=\"" . append_sid("admin/admin_users.$phpEx?mode=edit&u=" . $profiledata['user_id']) . "\">" . $lang['AdminLink_Manage'] . "</a> ";
$adminlink_permissions = "<a href=\"" . append_sid("admin/admin_ug_auth.$phpEx?mode=user&u=" . $profiledata['user_id']) . "\">" . $lang['AdminLink_Permissions'] . "</a> ";
}
else
{
$adminlink_label = '';
$adminlink_manage = '';
$adminlink_permissions = '';
}
//
// MOD: -END-
//
vor der oben gesuchten Stelle sollst du das hinzufügen
usw....
#
#-----[ FIND ]------------------------------------------