[vhffs-dev] [689] Some improvements in avatar support (well, nobody is going to use this feature...)

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 689
Author:   gradator
Date:     2007-07-08 02:32:11 +0000 (Sun, 08 Jul 2007)

Log Message:
-----------
Some improvements in avatar support (well, nobody is going to use this feature...)

Modified Paths:
--------------
    trunk/vhffs-backend/conf/vhffs.conf.dist.in
    trunk/vhffs-backend/conf/vhffs.conf.in
    trunk/vhffs-panel/object/upavatar.pl


Modified: trunk/vhffs-backend/conf/vhffs.conf.dist.in
===================================================================
--- trunk/vhffs-backend/conf/vhffs.conf.dist.in	2007-07-08 02:04:30 UTC (rev 688)
+++ trunk/vhffs-backend/conf/vhffs.conf.dist.in	2007-07-08 02:32:11 UTC (rev 689)
@@ -94,7 +94,7 @@
 		#Use the public section of VHFFS
 		use_public		=	yes
 
-		#Use avatar or not ? If yes, you must create a /data/avatars and change owner/permissions
+		#Use avatar or not ? If yes, you must create a /data/avatar and change owner/permissions
 		#so that the webserver can write into this directory
 		use_avatar		= yes
 		users			=	yes

Modified: trunk/vhffs-backend/conf/vhffs.conf.in
===================================================================
--- trunk/vhffs-backend/conf/vhffs.conf.in	2007-07-08 02:04:30 UTC (rev 688)
+++ trunk/vhffs-backend/conf/vhffs.conf.in	2007-07-08 02:32:11 UTC (rev 689)
@@ -94,7 +94,7 @@
 		#Use the public section of VHFFS
 		use_public		=	yes
 
-		#Use avatar or not ? If yes, you must create a /data/avatars and change owner/permissions
+		#Use avatar or not ? If yes, you must create a /data/avatar and change owner/permissions
 		#so that the webserver can write into this directory
 		use_avatar		= yes
 		users			=	yes

Modified: trunk/vhffs-panel/object/upavatar.pl
===================================================================
--- trunk/vhffs-panel/object/upavatar.pl	2007-07-08 02:04:30 UTC (rev 688)
+++ trunk/vhffs-panel/object/upavatar.pl	2007-07-08 02:32:11 UTC (rev 689)
@@ -111,11 +111,11 @@
 
 	if(  ! defined ( $filename =~ /\.png$/ ) )
 	{
-		$message .= gettext( "Filetype not supported" );
+		$message .= gettext( "Filetype not supported, only png is supported" );
 	}
-	elsif( $fsize > 50000 )
+	elsif( $fsize > 20000 )
 	{
-		$message .= gettext( "File to big. Max size if 5000 bytes for an avatar" );
+		$message .= gettext( "Uploaded file is too big. The maximum size is 20 Kbytes." );
 	}
 	else
 	{
@@ -123,11 +123,11 @@
 		( $type ) = ( $filename =~ ( /\.([a-zA-Z]+$)/ ) );
 		if( ( $return =  Vhffs::Panel::Avatar::store_avatar( $vhffs , $object , $tmpfile , $type ) ) > 0 )
 		{
-			$message = gettext( "Successfull create or replace avatar" );
+			$message = gettext( "Successfully created or updated avatar" );
 		}
 		else
 		{
-			$message = gettext( "Error when upload avatar for this object" );
+			$message = gettext( "Error when uploading avatar for this object" );
 		}
 	}
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/