Mod - Verification image at registration

Started by akyhne, December 13, 2008, 01:33:01 PM

Previous topic - Next topic

JulesW

I know, I uploaded 20 avatar files to the folder to make sure there are enough images in the folder, prior to testing the mod
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Hmm, something tells me you are having problems with sessions. Do you have a link to your forum?

JulesW

http://www.bitethebullet.dk/index.php

Just found out: I only get the error written in the log when the mod is installed but disabled. When the mod is enabled there is no error, but I defaults to the squares with the numbers
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne


JulesW

It's actually my gf's site together with a danish friend. I was asked to do all the technical stuff  ::)
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Quote from: JulesW on October 02, 2009, 08:48:33 AM
I know, I uploaded 20 avatar files to the folder to make sure there are enough images in the folder, prior to testing the mod
They need to be placed in the two default folders "Actors" and "Musicians". If they are outside those folders, you need to tell the mod which folders to look in. You do that in your admin center where you adjust settings for the mod (Admin -> Registration -> Settings for SMF1).

Quote from: JulesW on October 02, 2009, 10:15:04 AM
Just found out: I only get the error written in the log when the mod is installed but disabled. When the mod is enabled there is no error, but I defaults to the squares with the numbers
Ok, I got the errors now as well. I'll correct the error and upload a new package.

JulesW

#86
QuoteThey need to be placed in the two default folders "Actors" and "Musicians".

Ah, that might be the cause. I've put them in the avatar folder.

After moving them to the actor folder, it worked!!! Although there are still one or two blank squares there. (see image)



Edit: just realised: Does the mod support all types of images like png and gif or only jpg?

edit2: Also got new errors written:
Quote2: imagecreatefromjpeg(avatars/Actors/Chewie-&amp;-Han.jpg) [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: failed to open stream: Success
File: blabla/Sources/Subs-CaptchaAvatar.php
Line: 58
and
Quote2: imagesx(): supplied argument is not a valid Image resource
File: blabla/Sources/Subs-CaptchaAvatar.php
Line: 62
The above is repeated for multiple lines like 63,65,66,71,72,74,75,76,108,109,115,116 <-- thats just the same error propagating through the code because of the error in line 58 I presume, and the error in line 58 is because it fails to open the image file I guess?
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Sounds like those jpeg images are corrupted.

JulesW

On my pc the images work, I think it has anything to do with the filename being Chewie-&-Han.jpg. Maybe the "-" or the "&" isn't handled correctly.
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

It doesn't help you can open the file in a browser or with an image viewer. But you can try renaming them to see if it helps.

JulesW

Renaming the file helped.

did get 2 other errors however:
Quote2: imagecopyresampled(): supplied argument is not a valid Image resource
File: blabla/Sources/Subs-CaptchaAvatar.php
Line: 108

Quote
2: imagedestroy(): supplied argument is not a valid Image resource
File: blabla/Sources/Subs-CaptchaAvatar.php
Line: 109

Any idea whats going on here?
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Could you zip the image files and email them to me or attach them here?

JulesW

And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne


JulesW

That explains it. How can you test whether a file is corrupted? It show perfectly fine in my browser, the gimp and file explorer.
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Sometimes you can tell by opening the file in a decent image editor such as Corel Photopaint or Adobe Photoshop, and sometimes you just can't edit them with the GD functions.

I'm going to release a new version with a few corrections soon. Your Dutch translation has some untranslated entities. Could you please walk through the file attached and translate the rest, please.

Remember to escape ' like '.... gescheiden met komma\'s';
There was only the komma\'s in your translation so far. I corrected that for you.

JulesW

Here is the rest of the translation.

Looking forward to the new version!
And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Avatar Verification 1.0 beta 2 rev. 6 released

JulesW

I installed this new version it yesterday, and thus far all is well!

No more errors in the log!

Great mod!

And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17

Akyhne

Thanks, I finally applied it as an official mod.

Advertisement: