Author Topic: Item: EggAvatar  (Read 172934 times)

Offline feeble

Re: Item: Egg your victims avatar
« Reply #75 on: October 26, 2006, 07:48:48 am »
I am having a problem with the entering of user names.

it is case sensitive i.e  if a members tries to egg tazpot it will create egged_tazpot.png  but if a members uses Tazpot it creates a different image called egged_Tazpot.png but wonn't show the first egging just the new one.

Is there a way to make the entering of a user name non-case sensitive?  :-\

actually that's a little weird. its only creating a new avatar, but its using the old one, so it really shouldn't matter.

ill still fix it as, you start getting double, depending on what ppl type to egg someone.

is it possible that the egg overlapped with the old one? or were you using two separate items?


oh, before i change it.

would you prefer the image files to use user ids instead of membernames?
so that the files would go...  egged_1.png etc

or keep names? but go with their login, usernames
« Last Edit: October 26, 2006, 07:56:18 am by feeble »

Offline feeble

Re: Item: Egg your victims avatar
« Reply #76 on: October 26, 2006, 09:10:38 am »
ok

technodragon - both images now work. it was because of the " & " parts of the file names. all fixed now so dont worry about it.
also added the variable at the top for you ;)

tazzpot - ive change it so that it will save the images under the users login name.

perplexed - egged 'should' work on external(off site), uploaded, forum avatars, custum uploaded directory avatars

few other changes, changelog is on  the first post.

ive uploaded V7, link is in the first post

Offline TechnoDragon

Re: Item: Egg your victims avatar
« Reply #77 on: October 26, 2006, 01:28:26 pm »
Wow, feeble you are awesome...one thing I have learned though is that if you ever want to find out any issues with something you make...send it out to the masses!

EDIT: Download link is not working!

EDIT EDIT:  Ok, so you changed it to a rar archive!  got it now!
« Last Edit: October 26, 2006, 01:38:06 pm by Technodragon73 »
Don't tell me to get into shape...I have a shape...It is round!


Offline feeble

Re: Item: Egg your victims avatar
« Reply #78 on: October 26, 2006, 03:57:21 pm »
woops ill switch it to zip

edit: done, link should be working now

Wow, feeble you are awesome...one thing I have learned though is that if you ever want to find out any issues with something you make...send it out to the masses

heh, yeah you guys have been good at finding the bugs for me ill tell you that.
« Last Edit: October 26, 2006, 04:02:00 pm by feeble »

Offline TechnoDragon

Re: Item: Egg your victims avatar
« Reply #79 on: October 26, 2006, 11:02:42 pm »
Ok...at this point I will have to say I really can't thin of anything else..I have just been sitting bac watching everyone drain their bank accounts buying these things to use on everyone!
Don't tell me to get into shape...I have a shape...It is round!


Offline tazpot

Re: Item: Egg your victims avatar
« Reply #80 on: October 27, 2006, 05:59:04 am »
 :D Good work Feeble and thanks for sorting the username thing O0

My members are egging all the time now and have started a kind of war  >:D :knuppel2:

Offline feeble

Re: Item: Egg your victims avatar
« Reply #81 on: October 27, 2006, 06:00:59 am »
lol, only glad i can help.

if there are no more bugs, i kinda want to get this to v10 still.

so ill add a few more items soon.

Offline TechnoDragon

Re: Item: Egg your victims avatar
« Reply #82 on: October 27, 2006, 04:12:14 pm »
I have been egging like crazy trying to break it for you and so have numerous members on my forum....no errors!

I do have some images I can send you that I have added...Sticky Hand, Snowball, Tomato, and Book (throw the book at them!), plus I plan to add a rock and maybe a balloon!

Oh, and I know you removed it in an earlier version...but is it possible for you to put back in the fact that it would automatically change the text when you changed your item?  I know it doesn't work on IE, but many of my members use firefox and it WAS a nice feature to have!
Don't tell me to get into shape...I have a shape...It is round!


Offline Daniel15

Re: Item: Egg your victims avatar
« Reply #83 on: October 27, 2006, 05:46:42 pm »
Wow, 82 replies in less than one week... This item is really popular :).
Nice work feeble! I might install that item here, to try it out :D

Just some suggestions (I'm skimming over most of the code :P):
  • In the description, you misspelt numerous as numurous
  • BMP is not WBMP, so the lines like:

    	
    	
    	
    elseif ( 
    strpos($source_file,".bmp") ) { $img_source imagecreatefromwbmp($source_file); }
    	
    	
    	
    elseif ( 
    strpos($source_file,".bmp") ) { $img_source imagecreatefromwbmp($source_file); }

    Won't work as expected.
  • A lot of the image code in onUse() seems to be a bit redundant. For example, the three 'imagecreatefrom....' sections can be shortened down so the if statement only gets the locaton of the file, and then the file is loaded after the if statement... You know what I mean, right?

EDIT: I just tried to egg tazpot's avatar, and I got a 'Avatar is an unknown filetype' message.
« Last Edit: October 27, 2006, 06:13:10 pm by Daniel15 »

Offline feeble

Re: Item: Egg your victims avatar
« Reply #84 on: October 27, 2006, 07:12:02 pm »
Quote
    * In the description, you misspelt numerous as numurous
ah rgr that, ill fix that up.

Quote
      [li] BMP is not WBMP, so the lines like:
      elseif ( strpos($source_file,".bmp") ) { $img_source = imagecreatefromwbmp($source_file); }
      elseif ( strpos($source_file,".bmp") ) { $img_source = imagecreatefromwbmp($source_file); }

actually it is imagecreatefromwbmp, unless im looking at the wrong function

Quote
    * Won't work as expected.[/li]A lot of the image code in onUse() seems to be a bit redundant. For example, the three 'imagecreatefrom....' sections can be shortened down so the if statement only gets the locaton of the file, and then the file is loaded after the if statement... You know what I mean, right?

lol, this is very true, as i was kinda lazy and just wanted it to work, as i wrote the other 2 imagecreatefrom sectons in like v2 or v3.
ive been thinking about rewriting it, but atm just focusing on the bugs, as even if its redundant and not very pretty, it works.
Quote
EDIT: I just tried to egg tazpot's avatar, and I got a 'Avatar is an unknown filetype' message.

can you confirm for me if its a jpg and whats its filename?

Quote
Oh, and I know you removed it in an earlier version...but is it possible for you to put back in the fact that it would automatically change the text when you changed your item?  I know it doesn't work on IE, but many of my members use firefox and it WAS a nice feature to have!

even thou i did scrape this, i am still 'trying' to get this to work. but i promise, at the very least get it to work for firefox uses.
« Last Edit: October 27, 2006, 07:23:27 pm by feeble »

Offline Daniel15

Re: Item: Egg your victims avatar
« Reply #85 on: October 27, 2006, 07:54:37 pm »
Quote
can you confirm for me if its a jpg and whats its filename?
He has an offsite avatar: http://taffyshack.co.uk/smf/index.php?action=dlattach;attach=53;type=avatar
Does it matter if it's offsite?

Quote
actually it is imagecreatefromwbmp, unless im looking at the wrong function
That function is not what it looks like:
Quote
WBMP images are Wireless Bitmaps, not Windows Bitmaps. WBMP is used for bandwidth constrained, black and white, limited devices such as PDAs and Cell Phones.
(don't worry, I was confused over this as well) ;)

Offline feeble

Re: Item: Egg your victims avatar
« Reply #86 on: October 27, 2006, 08:08:54 pm »
Quote
can you confirm for me if its a jpg and whats its filename?
He has an offsite avatar: http://taffyshack.co.uk/smf/index.php?action=dlattach;attach=53;type=avatar
Does it matter if it's offsite?
ah rgr that, i dont think i can fix this, as there is no way to tell what type of filetype it is.
actually that may be a slight lie, ill look into it probably 2morrow.

Quote
Quote
WBMP images are Wireless Bitmaps, not Windows Bitmaps. WBMP is used for bandwidth constrained, black and white, limited devices such as PDAs and Cell Phones.
(don't worry, I was confused over this as well) Wink

well ****, i notice that a couple of users have written their own createimagefrombmp function.

ill think about adding it in, but i cant see a reason atm why a user would want to use a bmp filetype lol, only if demanded i suppose.

Offline feeble

Re: Item: Egg your victims avatar
« Reply #87 on: October 27, 2006, 09:02:00 pm »
ok ive uploaded V8.

ive rewritten the getting image filetype taken under daniel15's advice. into 3 line instead of 8.
2KB smaller in file size. wooohooo.

also to point out, egguser does not support bmp avatars.

does anyone actually care? and want bmp supported?

next version, will include more eggs courtesy of technodragon(still need to ask him lol), ill be damned if i cant get the javascript finally work how i want it to in ie.
and anyother problems ppl find.(hopefully none.)

Offline feeble

Re: Item: Egg your victims avatar
« Reply #88 on: October 27, 2006, 10:12:30 pm »
i do apologies for this, ive uploaded v9.

javascript is back in, ive corrected the script so its now works in ie as well.

it was a pretty stupid mistake, that i overlooked. yeah....bit embarrassing really.

i want planning on trying to get this to work tonight, but im waiting for a download to finish, which is why there are it went from v7 to v9 within an hour.

so since i got it done, i might as well upload it.
« Last Edit: October 27, 2006, 10:14:30 pm by feeble »

Offline TechnoDragon

Re: Item: Egg your victims avatar
« Reply #89 on: October 27, 2006, 11:56:21 pm »
I sent you the images this morning...hope you like...still trying to find a couople more that were suggested at my forum...i'll upload this newest version and let you know if I find any bugs!

EDIT:  Just installed it and tested...It works perfectly 100% error free for me!
« Last Edit: October 28, 2006, 12:01:51 am by Technodragon73 »
Don't tell me to get into shape...I have a shape...It is round!