Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Avatar Dydis.
Parašė Ginciuss· 2008 Lie. 14 18:07:58
#1
Norėjau sužinoti kaip ir kokį reikia redaguoti failiuką, kad galimėtų užsidėti didesnį nei 30kb avatarą. :) Gal kas žino ir galėtų padėt? ;)
Parašė Kwyn· 2008 Lie. 14 18:07:17
#2
Atidarai
edit_profile.php failą, susirandi eilutę:
<span class='small2'>".sprintf($locale['u022'], parsebytesize(30720), 100, 100)."</span>
ir pakeisk tuos (30720), čia ir yra tie 30kb. ;)
Redagavo Kwyn· 2008 Lie. 14 18:07:35
Parašė bad_user· 2008 Lie. 14 18:07:00
#3
Dar reikia keisti adminkėje tai ir user_profile_include.
Parašė Ginciuss· 2008 Lie. 14 18:07:23
#4
O kiek panašiai butu kokie 200kb? ;]
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
##
############################################################
Parašė Ginciuss· 2008 Lie. 14 18:07:18
#6
Maks. failo dydis: 195.31Kb
Taip parasyta bet vistiek neuzddeda :|
Redagavo Ginciuss· 2008 Lie. 14 18:07:16
Parašė Kwyn· 2008 Lie. 14 18:07:24
#7
Gincius123 parašė:
O kiek panašiai butu kokie 200kb? ;]
1024 x 200 = paskaičiuok. ;)
Parašė bad_user· 2008 Lie. 14 18:07:35
#8
Daviau visą modą. Tvarkykis.
Parašė Ginciuss· 2008 Lie. 14 20:07:32
#9
SoNG Viska susitvarkiau. Aciu :)