Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Avatar Dydis.

Parašė bad_user· 2008 Lie. 14 18:07:14
#5

############################################################
## MOD Title: Avatar_size
## MOD Author: adicrst (adicrst@yahoo.com)
## MOD Version: 1.0.1
## MOD Description: Changes the avatar's settings (filesize, height, width)
## Installation level: Very easy
## Installation time: 5 min
## Files to edit: includes/update_profile_include.php
##                edit_profile.php
##                administration/members.php
##                administration/updateuser.php
##
################################
## Before Adding This MOD To Your Site, You Should Back Up All Files Related To This MOD
################################
## Author Notes: This MOD is tested on  PHP-Fusion v6.01.6
##               The values i've used replacing the default ones CAN BE CHANGED with your own values ! I
##                 set it at 150x150 px and 50 kb   
################################
##MOD History: 
## 
##   2006-12-23 -> 1.0.0 
##      - Initial release of mod
##   2006-12-24 -> 1.0.1
##      -Updated the MOD, allowing the SuperAdministrator to upload avatar for other users from the admin
##         panel with the new dimensions and to see the new dimensions of the avatar from admin panel,
##         instead of the default ones
################################
##
##----[Open]------------------------------------------------

 includes/update_profile_include.php

##----[Find]------------------------------------------------
##

 $newavatar['size'] <= 30720)

##
##----[Replace with]------------------------------------------------
##

 $newavatar['size'] <= 51200)

##
##----[Find]------------------------------------------------
##

if ($size['0'] > 100 || $size['1'] > 100)

##
##----[Replace with]------------------------------------------------
##

if ($size['0'] > 150 || $size['1'] > 150)

##
##----[Open]------------------------------------------------
##

 edit_profile.php

##
##----[Find]------------------------------------------------
##

<span class='small2'>".sprintf($locale['u022'], parsebytesize(30720), 100, 100)."</span>

##
##----[Replace with]------------------------------------------------
##

<span class='small2'>".sprintf($locale['u022'], parsebytesize(51200), 150, 150)."</span>

##
##----[Open]------------------------------------------------
##
 administration/members.php
##
##----[Find]------------------------------------------------
##

 <span class='small2'>".sprintf($locale['u022'], parsebytesize(30720), 100, 100)."</span>

##
##----[Replace with]------------------------------------------------
##
 
 <span class='small2'>".sprintf($locale['u022'], parsebytesize(51200), 150, 150)."</span>

##
##----[Open]------------------------------------------------
##
 
 administration/updateuser.php

##
##----[Find]------------------------------------------------
##

 $newavatar['size'] <= 30720)

##
##----[Replace with]------------------------------------------------
##
 
 $newavatar['size'] <= 51200)

##
##----[Find]------------------------------------------------
##
 
 if ($size['0'] > 100 || $size['1'] > 100)

##
##----[Replace with]------------------------------------------------
##
 
 if ($size['0'] > 150 || $size['1'] > 150)

##
##----[Save/Close Files]------------------------------------------------
##
## EOF
##
############################################################