Wäre echt cool von euch



Code: Alles auswählen
open:sessions.php
find:xxxxxxxx
after add:
xxxx
Code: Alles auswählen
##############################################################
## MOD Title: HP/MP/EXP (Poster Level) for PCP 2.0.x
## MOD PCP Integration Author: MrDSL < naug@thehottub.net > (MrDSL) http://www.thehottub.net
## MOD HP/MP/EXP Author: Jon Borzilleri <jon@asylumsw.com> - http://www.asylumsw.com
## MOD PCP Author: Ptirhiik < admin@rpgnet-fr.com > (Ptirhiik) http://rpgnet.clanmckeen.com/demo/
## Description: This mod adds an rpg-like level, hp, mp, and exp rating
## to a user's profile, and under their name in their posts.
## Level: a user's level is based on how many posts the user has made.
## This should be able to scale up indefinitly.
## HP: represents how active the user is. max hp is based off level,
## current hp is based on how often the user posts.
## MP: represnts how quickly the user posts. Max mp is based on level,
## each post costs mp, and mp regenerates over time.
## Exp: a percentage showing how many more posts the user has to make
## to get to the next level.
##
## MOD Version: 1.0.0
## MOD PCP Version: 2.0.x
## MOD phpBB Version: 2.1.10
##
## Installation Level: Easy
## Installation Time: 2 Minutes
## Files To Edit:
## profilcp/def/def_usermaps.php
##
## Included Files:
## images/level_mod/*.gif Files
## def_userfuncs_level.php
##
## Author Notes:
##
## This is a integration of the HP/MP/EXP MOD by Jon Borzilleri <jon@asylumsw.com> - http://www.asylumsw.com
## The code used in my function is mostly his and I only adapted it to work with the Profile Control Panel
## so a big thanks to him. It seems there may be a issue with the MP always being at MAX so if anyone knows a
## fix please email me or pm me at my forums. This adds ZERO queries..
##
##
## Change log:
## v 1.0.0 :
## - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy images/level_mod/*.* to images/level_mod/*.*
copy def_userfuncs_level.php to profilcp/def/def_userfuncs_level.php
#
#-----[ OPEN ]------------------------------------------------
#
profilcp/def/def_usermaps.php
#
#-----[ FIND ]------------------------------------------------
#
),
),
'PCP.viewprofile.base.messangers' => array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
'user_level_mod' => array(
'class' => 'generic',
'type' => 'VARCHAR',
'dsp_func' => 'pcp_output_level_mod',
'txt' => true,
'style' => '<div align="center" class="gensmall">%s</div></div></td>',
),
#
#-----[ FIND ]------------------------------------------------
# You can put this anywhere above in the left topics panel that you want.
# Doing this will add a break and place it at the bottom.
#
),
),
'PHPBB.viewtopic.left.ignore' => array(
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
'user_level_mod' => array(
'class' => 'generic',
'type' => 'VARCHAR',
'dsp_func' => 'pcp_output_level_mod',
'txt' => true,
'style' => '<br /><div align="center" class="gensmall">%s</div>',
),
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
#
# NOTE: Some of you may not like yours centered like I have mine and may like it to align left
# then just change the center above to left.
#
Code: Alles auswählen
## Author Notes:
##
## This is a integration of the HP/MP/EXP MOD by Jon Borzilleri <jon@asylumsw.com> - http://www.asylumsw.com
## The code used in my function is mostly his and I only adapted it to work with the Profile Control Panel
## so a big thanks to him.