[ABD] Avatar auto resize (0.0.4b)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Hello Emma32,

Please verify that you've successfully uploaded dv_functions_image.php (maybe the upload was corrupted and the file was not totally uploaded).

If it still doesn't work, please ask me again!

Thank you.

User avatar
Emma32
Registered User
Posts: 6
Joined: Sun Oct 26, 2008 1:21 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by Emma32 »

Hi doviet, thank you ,

I upload the file dv_functions_image.php again, and the problem is identical.

I checked the files to be published in the manual, everything is ok. The SQL is also ok.

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Hi Emma32,

I'm sorry for my english.. but your reply is not very clear for me :oops:
So, is the problem solved or the MOD still doesn't work?

Thank you!

User avatar
Emma32
Registered User
Posts: 6
Joined: Sun Oct 26, 2008 1:21 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by Emma32 »

Hi,

Me too, I'm sorry for my english.. I'm french :)

My problem is not resolved. it's the same

Thank you!

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

I'm vietnamese ^^

Il vaut mieux qu'on se parle en français alors :P

C'est bizarre, apparemment il n'y a pas d'erreur dans le fichier dv_functions_image.php (parce qu'il y a plusieurs personnes qui l'ont utilisé).

Et puis il n'y a rien de spécial à la ligne 27, c'est juste la déclaration de la classe Image.
Quant à l'erreur

Code: Select all

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
il s'agit normalement d'une accolade manquée, et dans le cas où l'accolade "}" est manquée dans ce fichier, il est fortement probable que le fichier n'était pas bien envoyé sur le serveur.

Peux-tu vérifier la taille du fichier? combien de place prend-il sur le serveur?

User avatar
Emma32
Registered User
Posts: 6
Joined: Sun Oct 26, 2008 1:21 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by Emma32 »

Ha oui c'est mieux en français :mrgreen:

Le fichier dv_functions_image.php sur le serveur a un poids de : 7655

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Dans ces lignes:

Code: Select all

class Image
{
	private $check_ext;
	private $max_width, $max_height, $max_filesize;
	
	private $img;
	private $infos;
	
	private $q, $lo_q;
remplace "private" par "var". Peut-être que ce sera mieux...

Tu es sur PHP4 alors?

User avatar
Emma32
Registered User
Posts: 6
Joined: Sun Oct 26, 2008 1:21 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by Emma32 »

doviet wrote:Dans ces lignes:

Code: Select all

class Image
{
	private $check_ext;
	private $max_width, $max_height, $max_filesize;
	
	private $img;
	private $infos;
	
	private $q, $lo_q;
remplace "private" par "var". Peut-être que ce sera mieux...
Parfait ! C'était bien ça. Ca fonctionne : :) . Tu m'impressionne !

Merci énormément :P

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Je t'en prie :D Heureusement que ça a marché, parce que sinon je ne saurais plus quoi faire, et j'aurai honte :P

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25658
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [Beta] Avatar auto resize (0.0.4b)

Post by Paul »

@Emma32, doviet: Please speak only english here at phpBB.com, as this board is a english only board. Thanks.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Ok, we are sorry, thank you Paul ;)
So, some people got an error in the class declaration (because they are using PHP4 server), the solution to fix it is simple: replace "private" with "var".
I'll change it for the next version.

Thank you all!

DJ Skitzo
Registered User
Posts: 596
Joined: Sun Aug 12, 2007 7:25 pm

Re: [Beta] Avatar auto resize (0.0.4b)

Post by DJ Skitzo »

Are you currently working to make this mod compatible with gif images? I have it installed at the moment but my members are requesting it to be upgraded as their animations do not work.

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Hi DJ Skitzo,

It already works for static GIFs, but not yet for animated GIFs, because ImageMagick is currently not very popular (I don't have it on my computer yet), and GD doesn't support to append animated GIFs.

I'll make it asap, when I have time to install and try ImageMagick...

I'm sorry for the inconvenience.

Thank you.

DJ Skitzo
Registered User
Posts: 596
Joined: Sun Aug 12, 2007 7:25 pm

Re: [Beta] Avatar auto resize (0.0.4b)

Post by DJ Skitzo »

Are you sure GD doesn't support animated gif's? The reason I ask this is because when I had phpBB2 installed on this same server, I did not have Image Magick installed, however the mod which I installed to resize avatars did actually resize animated gifs.

doviet
Registered User
Posts: 52
Joined: Sun Apr 27, 2008 4:17 am

Re: [Beta] Avatar auto resize (0.0.4b)

Post by doviet »

Yes you're right, GD can be used to resize animated GIFs, but very complicated.
However, I think to continue the development asap, because this feature is really interesting for many people and for me too.
I'll try to do all the stuff with GD.

Thank you!

Locked

Return to “[3.0.x] Abandoned MODs”