SMF Shop

SMFShop => Completed Additions => Items => Topic started by: feeble on October 20, 2006, 11:07:41 pm

Title: Item: EggAvatar
Post by: feeble on October 20, 2006, 11:07:41 pm
THE ZIP IS NOT A PACKAGE, JUST EXTRACT IT INTO A FOLDER AND READ THE README
PLEASE READ THE README IN THE ZIP FIRST.
CLICK HERE TO DOWNLOAD V20R6 (http://www.leaderless.net/tp-downloads/EggUserV20R6.zip)
To PM
CLICK HERE TO DOWNLOAD V20R4 (http://www.leaderless.net/tp-downloads/EggUserV20R4.zip)
Or not to PM
latest released: 30/MAY/07[/b]
Main Release
Stores Egged Avatars in forum/egged/
Works on most hosts(free and paid)
Also PM's on successful egg, you can edit the msg by going in and editing the item.
You will find the section to edit at the end of the file


CLICK HERE TO DOWNLOAD V14
latest released: 08/MAR/07
(http://www.leaderless.net/tp-downloads/EggUserV14.zip)
Old Release
Stores Egged Avatars in forum/avatars/egged/
Works best on paid hosts


TIP: You can use buyAvatar Item (http://www.daniel15.com/forum/index.php/topic,940.msg5329.html#msg5329) to charge your forum members to change their Avatar

Essentially it Eggs a forums users avatar.
(http://www.leaderless.net/avatars/egged/egged_slazza.png)(http://www.leaderless.net/avatars/egged/egged_feeble.png)(http://www.leaderless.net/avatars/egged/egged_feebletemp.png)(http://www.leaderless.net/avatars/egged/egged_da%20vid.png)(http://www.leaderless.net/avatars/egged/egged_test3.png)
then(if admin allows) changes their custom title, to something like  "You've been Egg'd by {your name here}!"

Quote from: readme.txt
Installation/Update notes:
1. Copy folders "item_images" and "items" into your Sources/shop directory on your website
2. IMPORTANT: When you go to add this item into your shop. Please make sure that it passes
   both tests. If it doesnt, it should give you good enough instructions to fix the problem.
   If not please, follow the link at the bottom of this document, post up and I should beable
   to help you out.

I have created the directories for you in the zip file. just upload them into your forum directory.

Atm i have, an egg, snowball, tomato, a kiss, and a paint ball/splash. If you any any other ideas, please let me know, a of the said idea would also be nice but not necessary.

Requirements: you need GD, ill be putting a safety in soon, so that if you don't have it, it will let you know. and wont alter your forums.

How it works:
It gets your victims avatar, then using gd, overlays their avatar with an image, in this case an egg.

It will not override their old avatar on default settings, in fact it will store their new defaced avatar in avatars/egged/, so if you would like, you could also wear your victims defaced avatar, as a trophy, or something ;)

saved the images are saved in the format of:  egged_{memberusername}.gif

a nice feature of this script, is that you can egg as many times as you want, depending if you can afford that many eggs of course. It will keep piling the eggs onto the avatar. still working on the random script, but ATM its working decently.

It going to **** ppl off, but oh so worth it.

I also need someone to test it for me as well, as i may not have covered all possibilities of getting the users avatar. if someone could let me know, and ill send them the item. also if someone could go over the code that would be great.


Change-log from V13 to V14
-FIX:fixed the issues with users having spaces in their username. thanks to perplexed for pointing this out.
-ADDED: debug mode: ive added a debug mode in the EggUser.php file, so if you are having issues, just set it to true, then send me a pm on its read out next time you use the item.
-UPDATED: as per suggestion from TechnoDragon, ive made it so it will search for the users login name or realname, should make finding users a little easier. should of done this on the get go but better late then never.
---------V12Beta to V13------------
-FIX:fix a bug where egg details weren't being initialized properly on certain hosting. thanks xfollowthereaperx (http://powerspike.ulmb.com) for the use of your forums.
---------V11Beta to V12------------
-Combined both v10 and v11Beta so if one fails, then it trys the other. Basically some forums work differently to others. this should cover most cases now.
-NEW EGG: added a snowflake for the xmas season
---------V10 to V11Beta------------
-REWROTE:completely rewrote how it gets the users avatar href. finally worked out the SMF function for this, so its now like 10 lines from 50. and should work better to.
---------V9 to V10------------
-NEW OPTION: adjust users karma based on what egg he throws.(default off)
-NEW OPTION: actually alter the victims avatar file if its not external. (default off)
-BUG FIX: fixed a few more forum errors.
-SPELLING CORRECT: corrected a few spelling mistakes or just plain grammar.
-AUTO CHMOD: added a funciton to check if egged directory exists and is writable. if not trys to create and chmod egged dir for you. with visual indicators.
-UPGRADE: eggs can now be png or gif formats.
-NEW EGGS: added a snowball and tomato
-few other bug and error fixes
---------V8 to V9------------
-Worked out what was wrong with the javascript so that it works in ie.
-apologies for 2 version within the hour.
---------V7 to V8------------
-Rewrote getting what type of image the avatar is. now 2KB smaller. yay. which means it can handle more ways of getting the file.
---------V6 to V7------------
-BUG FIXES: & in the avatar directory or file name or now handled correctly
-BUG FIXES: now uses the forums avatar directory instead of assuming avatars are stored in /avatars/. should solve a few ppl problems. and not sure why i didnt do this in the first place.
-NEW FEATURE: ive addeda a $donotcolourme variable at the top of egguser.php for ppl that add their own eggs. REMEBER 0 is the first item in the array. just play around with it, nothing bad can come from changing it.
-UPDATED: files are not stored with the users login name instead of using the form data.
---------V5 to V6------------
-BUG FIX: just fixes a few lines so you dont get forum errors building up
---------V4 to V5------------
-BUG FIX:slight edit to how the images were saved. solved a few problems of egged image not saving
---------V3 to V4------------
-IMPROVED: image preview now works in ie. i s****ped the taunt text changing when you selected a different egg, as i could get it to work correctly.bloody ie.
-BUG FIX: custom avatar directories should now work.
-improved: fixed the code. egged images should now retain aspect ratio of the original.
-degraded: my item code looks like **** now. yay for it.
---------V2 to V3------------
-FEATURE: Paintball, and kiss are now random in their color. basically anything not in position 1. anything not transparent will be the same color is how it works. look for paint ball edit and change the if clause there if you don't want it or change which images this will affect.
-FEATURE: preview image on getinput page for user, so they know what they are sending.
-EDIT: got rid of db_prefix as it was unused and spelt incorrectly. thanks chadk.
---------V1 to V2------------
-FEATURE: users are able to right their own taunt to be put in their victim custom title. Admin option.
-bug-fix: spaces in image file names are no properly found. thanks to Technodragon73
-improved: getting the users avatar as been improved. found an easier way, its not pretty ATM. ill rewrite it later. thanks to Technodragon73
-improved: overlayed gifs are now better proportioned if the avatar is not exactly square.
-improved: avatars now keep their correct aspect, but will be shrunk down to the maximum forum avatar size.
-improved: taunts, can now handle '. in them, but please keep the text simple in the php file, but users can write whatever they want.
-increased the default ratio size of the eggs, as generally the victim will only have 1, instead of many. now the paint looks better, since it covers a larger portion of the avatar.
-few other things not worth mentioning.

Wish List:
-dont change the avatar size if its not external - DONE - FIXED IN V4
-fix the javacript for ie users. stupid ie users - DONE - FIXED IN V4
-Different random colours for the paintball, and different shapes for it - DONE - ADDED IN V3
-add/minus system for the eggs. - may have found a way, ill look into it more when this one is done. thinking of adding a new table to smf_members for the data. then if image is not in egged, add eggs. not a perfect solution, but it may work.
-write your own message to replace your victim custom title - DONE - ADDED IN V2

Troubleshooting:
1. matkins70 - egged_{username}.png not being saved.
Solution: changed folder 'egged' in the avatars/ folder to 777. Solution is host dependent. All folders for myself are 755 and works fine. But definitely worth a go, if you are having this problem.
2."Error: Avatar is an unknown filetype"
Solution: please check your "Attachments and Avatars" in smf admin area. make sure Attachment/Avatars directory and avatar url does NOT have a trailing slash
EXAMPLE: Avatars Directory: /home/*****/public_html/avatars

(http://www.leaderless.net/gallery2/d/60-1/egg2.jpg?g2_GALLERYSID=a6abfa1fb144b4fd66d1dc94aa95371e)(http://www.leaderless.net/gallery2/d/58-1/egg1.jpg?g2_GALLERYSID=a6abfa1fb144b4fd66d1dc94aa95371e)
Title: Re: Item: Egg on victims avatar
Post by: Daniel15 on October 20, 2006, 11:57:29 pm
Wow, I was going to PM you about this item...
Seriously, it looks awesome!  I believe that this could easily become one of the most popular SMFShop items :D
Title: Re: Item: Egg on victims avatar
Post by: matkins70 on October 21, 2006, 12:02:13 am
Yeah, so how do we get this great script then?
Title: Re: Item: Egg on victims avatar
Post by: TechnoDragon on October 21, 2006, 12:54:06 am
ok, I REALLY REALLY want this item!
Title: Re: Item: Egg on victims avatar
Post by: cponygo on October 21, 2006, 04:47:34 pm
as do I
Title: Re: Item: Egg on victims avatar
Post by: feeble on October 21, 2006, 05:46:21 pm
released v1
please let me know if you have problems
make sure you have a folder called 'egged' in your avatar folder.

ill be releasing updates as i find and fix issues that you may get, which means you just need to replace the EggUser.php files that ill upload.
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 21, 2006, 08:08:01 pm
deleted users avatar :(
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 21, 2006, 08:44:01 pm
deleted users avatar :(

im looking at your forums atm, can you give me an example please?

link to user with a missing avatar
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 21, 2006, 08:51:10 pm
ah, well i just replaced it.  Not sure what happened, i selected the user, and it said i egged them.  then when i check out their profile, there is no avatar, but when i went toupload it for them again, i could see their avatar, it just wasnt selected, if you understand what i mean, so i uploaded it again, and now their avatar is back.

If you want i can add the item again, and do it to someone else.

BTW, under the GD successful bit, there was a check box that said "allows users to change...", should i have ticked this?
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 21, 2006, 08:54:08 pm
ah, well i just replaced it.  Not sure what happened, i selected the user, and it said i egged them.  then when i check out their profile, there is no avatar, but when i went toupload it for them again, i could see their avatar, it just wasnt selected, if you understand what i mean, so i uploaded it again, and now their avatar is back.
that is correct, its done like that on purpose, it does not delete the users uploaded image, so that they can easily replace it.
If you want i can add the item again, and do it to someone else.
if thats ok, just to confirm, if the image is being saved, and if its looking in the right spot, you created an egged directory in avatars/ ?
BTW, under the GD successful bit, there was a check box that said "allows users to change...", should i have ticked this?
only, if you want your victims custom title to change to the taunt. atm default is off,  i think i might change it to default is on thou
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 21, 2006, 08:56:36 pm
Right,  I went to avatars in the main forum directory, and created a folder inside it called 'egged', all small caps.  After  i used the item the first time, there was nothing inside this folder, should there have been?
Am gonna use the item again on Wob, so you can see what it does, just check his profile
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 21, 2006, 09:29:10 pm
Thanks a lot feeble!!  All sorted, and users being egged as i speak!!
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 21, 2006, 09:33:56 pm
Thanks a lot feeble!!  All sorted, and users being egged as i speak!!
no worries man
btw
Quote
Deface someone else's picture with numurous items. You can even taunt them by writing a message to appear below their name
its a pretty sweet idea, ill get right on that.
Title: Re: Item: Egg your victims avatar
Post by: geezmo on October 21, 2006, 11:18:27 pm
I'd like to try this but this is what I want to see in the package:

1 - Have another shop item like "Delete eggs/kisses in avatar" so you can remove the eggs/kisses anytime. Of course, the member has to pay for the item.

2 - When new avatars are uploaded, the eggs/kisses should be active again. This way, members will need to buy the Item i said above rather than reupload a new avatar if they dont want the eggs in their avatar.

Overall, though, I personally like this item!
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 21, 2006, 11:34:27 pm
I'd like to try this but this is what I want to see in the package:

1 - Have another shop item like "Delete eggs/kisses in avatar" so you can remove the eggs/kisses anytime. Of course, the member has to pay for the item.

the only way i could think of doing this would be to deface the avatar on the fly, meaning getting the avatar, applying the 'eggs' and out putting it to the broswer.  - which is a possibility of course, but generally considered slow. then i would just need a way of storing the data of overlays already on the avatar.

maybe someone else has a better idea.

Quote
2 - When new avatars are uploaded, the eggs/kisses should be active again. This way, members will need to buy the Item i said above rather than reupload a new avatar if they dont want the eggs in their avatar.
same again, just deducting from the stored data

Quote
Overall, though, I personally like this item!
thanks ;)
Title: Re: Item: Egg your victims avatar
Post by: geezmo on October 21, 2006, 11:48:34 pm
How about just using the old, original avatar when you buy the "Clean avatar" item. When an avatar is defaced, the avatar being used is in the /egged folder right, so if you buy the "Clean avatar" item, you just have to pull up the original avatar in the /avatar folder.
Title: Re: Item: Egg your victims avatar
Post by: animecosmo on October 22, 2006, 02:41:43 am
It is deleting all the avatars in my forum, too. Nothing is being saved in the avatars/egged folder when the item is used.

Here is how everything is set up:

Forum / avatars / egged

Sources / shop / item_images/eggedoriginal.gif
Sources / shop / item_images/kissoriginal.gif
Sources / shop / item_images/paintoriginal.gif

Sources / shop / items/EggUser.php
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 22, 2006, 05:55:07 am
ok, we just came upon an issue...after the first six or so egged avatars, now my error log is filling up and it either deletes their avatar or just doesn't actually egg them anymore!
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 06:23:52 am
ok, I created egged in the avatars directory but when I tried egging someone all it did was remove the person's avatar.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 22, 2006, 06:27:51 am
also, i keep getting a ton of undefined index errors

EDIT: I mean Use of undefined constant username - assumed 'username'

there are more...this was just the first...there are several different ones
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 22, 2006, 07:43:35 am
try changing the permission of the egged folder, thats what me and feeble had to do to mine to get it to stop deleting avatar.  Might just be that your server requires a higher level
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 07:52:55 am
ok, I created egged in the avatars directory but when I tried egging someone all it did was remove the person's avatar.

this may be the same problem that matkins70 had. could you please try cmoding the egged folder to 0777 please. and tell me how that goes, its server hosting issue.
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 08:26:46 am
Still not working.  I have GD installed, I have the egged folder in the /avatars/ directory and it's 0777.  I receive no errors when installing the item or when using the item and it reports "Successfully egged <username whoever it was>".
But when I look at the user's profile, they no longer have an avatar and the EGGED directory is empty.
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 04:56:47 pm
updated the release to V2.

changelog is in the first post
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 10:50:41 pm
Line 59 in version 2:
global $context, $scripturl, $settings, $txt, $de_prefix, $eggSelect, $item_info;
Shouldn't that be $db_prefix?  what's $de_prefix?
Though actually, you don't use any of those globals in that function so you only need:
global $item_info, $eggSelect;

Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 10:56:57 pm
Line 59 in version 2:
global $context, $scripturl, $settings, $txt, $de_prefix, $eggSelect, $item_info;
Shouldn't that be $db_prefix?  what's $de_prefix?
Though actually, you don't use any of those globals in that function so you only need:
global $item_info, $eggSelect;

lol, thanks. it should be, but its not used. ill just update that thanks

oh btw, all working for you now? never heard back from you?
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 11:09:26 pm
v3 released.

few new features, changelog in the first post
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:15:50 pm
feeble: lol I just downloaded v2, let me get v3 and try it
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:28:10 pm
Yes, that one worked Feeble, but when you're using the item and you change from Egg to Paint or something, it doesn't update the Egg preview image.
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 11:33:56 pm
Yes, that one worked Feeble, but when you're using the item and you change from Egg to Paint or something, it doesn't update the Egg preview image.

does the image break? or just doesnt change? also does the text in the taunt area update correctly? as it should change as well?

your using ie or firefox?
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:38:33 pm
hmmm well it worked for a .png avatar but it erased someone elses. I didn't check to see what type it was before I tested it.. asking her now.

The image doesn't break on the preview, it just never shows the preview of the paint or the kiss. 
I don't use the taunt feature because I make my users buy the Custom Title if they want to do that... ;)
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 11:40:08 pm
can i get the link to her profile, the one that got broken
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:42:20 pm
http://www.aviary.info/index.php?action=profile;u=1934
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:43:08 pm
her avatar is just gone now..
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:45:31 pm
it worked on my avatar which was a .gif
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 11:47:24 pm
rgr, ill take a look
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:48:09 pm
Strange. I uploaded a new JPG avatar for myself.
I egged my new avatar.
It reverted my avatar to my previous avatar that was painted.
Strange...

It looks like it couldn't over-write my previously egged avatar.  See screenshot of my profile page, the cat crossbones was the new jpg I chose, then I tried egging it.  The smiley face is my old avatar that I egged already.

(http://www.aviary.info/Screenshot.png)
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 22, 2006, 11:52:17 pm
t3 said her avatar was a .GIF and she's put the gif back so you can see what I tried egging.
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 22, 2006, 11:57:04 pm
hmm just wondering with this

your uploaded_avatar directory, how is that displayed in the profile area?

i need to know how its stored in the smf_members table as well.

if tis not the full address, it wont be able to find the avatar, then wont save it, which is why it reverted to your old avatar.
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 23, 2006, 12:00:52 am
I tried egging someone else with a .png and it didn't work so now I'm really confused.
If you want, I can create you an account and give you a buttload of credits for the shop
In the smf_members table, .. a couple examples:
Old Site Avatars/11.gif
egged/egged_Toni.png

I'm not sure what you mean by question 1 "how is that displayed in the profile area"
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 23, 2006, 12:01:36 am
Maybe check the screenshot I added in an  earlier post to see what the profile page looks like?
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 23, 2006, 12:02:50 am
this seems to be the problem
uploaded avatars should be linked like this
http://www.leaderless.net/index.php?action=dlattach;attach=14;type=avatar
instead yours are like
http://aviary.info/uploaded_avatars/avatar_3767.jpg

which means probably that your avatar field in smf_members looks like uploaded_avatars/avatar_3767.jpg for that particular user
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 23, 2006, 12:14:48 am
Is SEO the problem?
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 23, 2006, 12:23:14 am
I added you on msn messenger
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 23, 2006, 12:56:50 am
? never got an add request
anyways, i sent you that file, that should fix it
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 23, 2006, 01:15:01 am
lol, you two should look at the recent posts on the main page, i thought there was a glitch
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 23, 2006, 01:58:18 am
lol I just saw it. ;)  But we got it working, I think Feeble will have a v4 for us soon.
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 23, 2006, 02:13:57 am
lol, havent done v3 yet
Title: Re: Item: Egg your victims avatar
Post by: chougard on October 23, 2006, 04:49:41 am
I added the item to my forum, and when I was testing the item, it would change the url of the avatar, but not create the new avatar in the egged directory. I have used the permissons 755 and 777. The host I am using is x10hosting, and the url to my forum is http://forum.soccergeekz.uni.cc. Does the avatar folder need certain permissions (it's 775)? Thanks for the item and any help!
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 23, 2006, 05:17:50 am
Do you allow custom avatars?  Feeble had to write a bit in the code for that.  Also, do you have the latest copy from the first post?
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 23, 2006, 05:18:40 am
Its stopped working :(

Have done it lots of times, but now its stopped.  I press the button to send egg, but it never loads
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 23, 2006, 09:03:47 am
Its stopped working :(

Have done it lots of times, but now its stopped.  I press the button to send egg, but it never loads

lol i need a bit more then this to go on, ill take a look

did it stop working when you installed V3?
or bit after?
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 23, 2006, 10:39:09 am
v4 is up lol.

changelog first post.
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 23, 2006, 06:58:13 pm
v5 is up.

its just fixes a bug for a few users, so if your having problems, update to it.
Title: Re: Item: Egg your victims avatar
Post by: tazpot on October 24, 2006, 01:13:04 am
I had a problem with the preview images in V5 because my site is in a folder called 'smf' but i sorted it by changing the following lines in EggUser.php and including /smf before /sources..........  so that the preview looks in the right place.

this line
Code: [Select]
document.eggP.src = '".$boardurl."/smf/Sources/shop/item_images/' + sel.options[sel.selectedIndex].id;
and this line
Code: [Select]
<br/>Egg Preview: <img name='eggP'src='".$boardurl."/smf/Sources/shop/item_images/{$eggSelect[0][image]}' align='texttop'/>
Hope this helps someone  ;)

But i must say that this is a great shop item  O0
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 24, 2006, 03:11:47 am
Kisses show up black... ?
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 24, 2006, 03:13:14 am
it also dropped transparency on this avatar:
http://www.aviary.info/index.php?action=profile;u=1934
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 24, 2006, 03:21:37 am
REALLY cool item :)
However, remove "echo $boarddir;" from your php code =D
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 24, 2006, 07:44:13 am
it also dropped transparency on this avatar:
http://www.aviary.info/index.php?action=profile;u=1934

not sure if i can do anything about that, still working out gd.

REALLY cool item :)
However, remove "echo $boarddir;" from your php code =D

is it echoing is it?
if its commented out, thats cool.
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 24, 2006, 09:16:40 am
:) It's still in your code (the echo bit) but yeah, I removed it from my copy...
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 24, 2006, 09:38:08 am
Not to be picky (love the newest fixes you have for this item) but I am still getting a lot of use of undefined constant erros everytime the item is used...one full page each time actually...
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 24, 2006, 11:34:18 am
Can you copy and paste the undefined variables?
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 24, 2006, 11:37:32 am
Not to be picky (love the newest fixes you have for this item) but I am still getting a lot of use of undefined constant erros everytime the item is used...one full page each time actually...

done.

V6 is uploaded.

If you are still getting forum errors when using this item

Please post them in this thread.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 24, 2006, 01:44:24 pm
Whatever you corrected fixed it!  You are awesome...once again I have an error free log!

 O0

Ok, sorry to be the bearer of bad news...I just used the egg on a member who changed their avatar from the one they used to have...when I use the egg it puts up their old egg avatar, no new egg on the picture removes the new one they put up and then these errors are in the error log:
Code: [Select]
member  The Great Orator    Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagedestroy(): supplied argument is not a valid Image resource
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 277

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagedestroy(): supplied argument is not a valid Image resource
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 276

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagepng(): supplied argument is not a valid Image resource
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 274

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagecopyresampled(): supplied argument is not a valid Image resource
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 272

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagecopyresampled(): supplied argument is not a valid Image resource
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 230

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagecreatetruecolor(): Invalid image dimensions
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 229

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: getimagesize(Fantasy%20&%20Medieval/Rapunzel%202.jpg): failed to open stream: No such file or directory
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 189

 member The Great Orator Today at 08:52:36 AM
 IP address 71.209.180.174    session feab54a1523882b5e08fa7d3cbba7810
 URL http://dragontalk.net/index.php?action=shop;do=inv3;id=1423
2: imagecreatefromjpeg(Fantasy%20&%20Medieval/Rapunzel%202.jpg): failed to open stream: No such file or directory
File: /home/www/dragontalk.net/Sources/shop/items/EggUser.php
Line: 136
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 25, 2006, 02:12:08 am
it looks like it couldnt find the users avatar.

can you give me a direct link to it please
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 25, 2006, 12:58:48 pm
http://dragontalk.net/avatars/Fantasy & Medieval/Rapunzel 2.jpg

her previous one was

http://dragontalk.net/avatars/Fantasy & Medieval/Fairy & Leaf.gif

EDIT: I know you may be thinking it is the ampersand, but notice the only difference between the two is one is a gif the other is a jpg (and I know the jpg issue was fixed)

in a browser the linkk comes up like this: http://dragontalk.net/avatars/Fantasy%20&%20Medieval/Rapunzel%202.jpg
Title: Re: Item: Egg your victims avatar
Post by: perplexed on October 25, 2006, 08:19:58 pm
hi

is there a picture of what an egged avatar looks like?


Also we only link avatars from photobucket etc on my site so for this to work we have to allow people to upload to the site?

*wonders if anyone will upload to the site just to get egged*  lol
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on October 25, 2006, 08:50:57 pm
hi

is there a picture of what an egged avatar looks like?


My profile on my forum: http://www.matkins70.com/forums/index.php?action=profile;u=2
Title: Re: Item: Egg your victims avatar
Post by: perplexed on October 25, 2006, 10:38:16 pm
lol thanks


I had some suggestions for more options:

tomatoes - in addition to eggs

and has anyone seen a program called 'you've been framed'?  maybe you could put a frame around someone's avatar?  I don't really know the purpose but it just came into my head lol

and it would be really funny if you could add a false moustache and glasses but that would really depend on the avatar hehe

oh and a book - for throwing the book at someone

Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 25, 2006, 10:58:34 pm
adding items (like a tomatoe or book) are easy with this item..so that is already possible....I added a snowball and sticky hand to mine already!
Title: Re: Item: Egg your victims avatar
Post by: perplexed on October 25, 2006, 11:02:16 pm
cool thanks, I don't know anything about coding but Im good at following instructions and cut and pasting lol
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 25, 2006, 11:54:12 pm
there is an issue I have just found...and it would be nice if there was a way around it...I love the fact the the images randomly change color each time you use them...HOWEVER is there a way to set it up that you can have more than one image that does NOT change color...I know it was said that only the item in the first position doesn't change...but let's say there are three items I don't want to change color?
Title: Re: Item: Egg your victims avatar
Post by: tazpot on October 26, 2006, 04:03:25 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?  :-\
Title: Re: Item: Egg your victims avatar
Post by: perplexed on October 26, 2006, 05:20:45 am
can I just check that this egging thing works with avatars uploaded to your profile using BOTH these options:

     Personalized Picture:

    I will upload my own picture:

and not just with the avatar packs that people upload for use eg actors, musicians etc

~thanks

Title: Re: Item: Egg your victims avatar
Post by: feeble on October 26, 2006, 07:44:29 am
****, sorry been busy at work and study.

ok first off,
technodragon,
ill have a solution for you soon, just trying to replicate the error.
with the random colour thing, ill put in a variable at the top, so you can change it manually. which means that for example, any item above that number with get a random color.

perplexed, photo bucket should work fine, it has to be a direct link. the only thing i can see that could go wrong is that, photo bucket blocks something. only one way to find out, and just give it a go.

tazpot, ill get that fixed soon.
Title: Re: Item: Egg your victims avatar
Post by: feeble 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
Title: Re: Item: Egg your victims avatar
Post by: feeble 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
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon 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!
Title: Re: Item: Egg your victims avatar
Post by: feeble 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.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon 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!
Title: Re: Item: Egg your victims avatar
Post by: tazpot 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:
Title: Re: Item: Egg your victims avatar
Post by: feeble 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.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon 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!
Title: Re: Item: Egg your victims avatar
Post by: Daniel15 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):

EDIT: I just tried to egg tazpot's avatar, and I got a 'Avatar is an unknown filetype' message.
Title: Re: Item: Egg your victims avatar
Post by: feeble 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 (http://au.php.net/manual/en/function.imagecreatefromwbmp.php)

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.
Title: Re: Item: Egg your victims avatar
Post by: Daniel15 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) ;)
Title: Re: Item: Egg your victims avatar
Post by: feeble 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.
Title: Re: Item: Egg your victims avatar
Post by: feeble 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.)
Title: Re: Item: Egg your victims avatar
Post by: feeble 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.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon 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!
Title: Re: Item: Egg your victims avatar
Post by: chadk on October 28, 2006, 12:05:25 am
I'd like BMP images :)  My users aren't techincal and wouldn't know a filetype if it bit them in the  >:D
Title: Re: Item: Egg your victims avatar
Post by: Sableye on October 29, 2006, 12:14:38 pm
I have a question on installing this package.

I have added the "egged" folder to my avatars/ directory.  I have also uploaded the other files to their rightful locations.  What do I do now and where can I get GD from?
Title: Re: Item: Egg your victims avatar
Post by: Daniel15 on October 29, 2006, 12:42:31 pm
GD is a server thing, you can't install it yourself.
If your server doesn't have GD installed, then you'll need to ask your web host to install it for you. Ask them to compile PHP --with-gd (they'll know what you mean), and to refer to http://au.php.net/gd for more information.
Title: Re: Item: Egg your victims avatar
Post by: Sableye on October 29, 2006, 01:16:40 pm
I found out that GD is installed onto my server, and I figured out how to use it all.  However when I try to egg someone else's avatar I get an error:

2: imagepng(): Unable to open '/home/******/public_html/forums/avatars/egged/egged_admin.png' for writing
File: /home/******/public_html/forums/Sources/shop/items/EggUser.php
Line: 256

What does it mean?
Asterisks are there for security reasons
Title: Re: Item: Egg your victims avatar
Post by: Daniel15 on October 29, 2006, 02:45:35 pm
Try CHMODding the 'egged' directory to 0777, and see if that helps.
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 31, 2006, 06:43:43 am
Change-log for upcoming V10:
-NEW OPTION: adjust users karma based on what egg he throws, adjustable in the $eggselect array.(default off)
-NEW OPTION: actually alter the victims avatar file if its not external. (default off)
-BUG FIX: fixed a few more forum errors.
-SPELLING CORRECT: fixed a few spelling errors and grammar
-AUTO CHMOD: added a funciton to check if egged directory exists and is writable. if not trys and chmods it for you. with visual indicators.

before i release it, im trying to make a few more images for it, but im having a little trouble at present. so depending if i can get some of these to look decent, ill release it in a few days time.

and just been thinking that, i will only save victims avatar if its uploaded only. since, you probably don't want your forum avatars from being edited.

EDIT: for bmp support
I will not be adding this anytime soon, I've been looking at the function to handle bmp file, and, well, its not fool proof, and will probably cause more problems then it will solve.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 31, 2006, 10:45:26 am
Sounds like some good ideas...what kind of images are you looking for?

And what exactly do you mean by
Quote
-NEW OPTION: actually alter the victims avatar file if its not external. (default off)
and just been thinking that, i will only save victims avatar if its uploaded only. since, you probably don't want your forum avatars from being edited.
Title: Re: Item: Egg your victims avatar
Post by: Vi31 on October 31, 2006, 10:48:46 am
The link is not working for me.  What's going on??????????
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 31, 2006, 10:50:58 am
Sounds like some good ideas...what kind of images are you looking for?

And what exactly do you mean by
Quote
-NEW OPTION: actually alter the victims avatar file if its not external. (default off)
and just been thinking that, i will only save victims avatar if its uploaded only. since, you probably don't want your forum avatars from being edited.

basically means it will alter the original image, instead of saving a copy in the egged folder. meaning the user will have to physically upload a fresh copy.
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 31, 2006, 10:52:45 am
The link is not working for me.  What's going on??????????

my apologies, i updated tp yesterday, all fixed now.
Title: Re: Item: Egg your victims avatar
Post by: Vi31 on October 31, 2006, 11:56:10 am
It worked, I installed the items and used it when I went to check if it worked and click on a forum then a topic I get this error:

Unknown column 'shop_nameStyle' in 'field list'
File: /home/msvi007/public_html/timeout/Sources/Load.php
Line: 1007

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on October 31, 2006, 12:49:00 pm
basically means it will alter the original image, instead of saving a copy in the egged folder. meaning the user will have to physically upload a fresh copy.

Naw...bad idea...right now they love the item and it is very easy for them to just go into their profile and recheck the upload avatar...some of them didn't keep originals...the saved images are not that big so it is no big deal saving them in the egged folder.

It worked, I installed the items and used it when I went to check if it worked and click on a forum then a topic I get this error:

Unknown column 'shop_nameStyle' in 'field list'
File: /home/msvi007/public_html/timeout/Sources/Load.php
Line: 1007

HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

That would have nothing to do with this item...it does not alter anything other than the avatars....no code edits at all!
Title: Re: Item: Egg your victims avatar
Post by: feeble on October 31, 2006, 05:58:29 pm
updated to v10

big update. egged directory should now create it self, and give itself the correct permission to work. if not, it will warn you when you are adding the item.

new items. previews
(http://www.leaderless.net/avatars/egged/egged_HaxXxoR.png)

rest of the changelog is in the first post.

I highly recommend removing and adding this item again. but it will still work if you dont.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on November 01, 2006, 04:50:14 am
Love the changes to the snowball and tomato...I did notcie something though...it is still having trouble with file names with spaces in them
Title: Re: Item: Egg your victims avatar
Post by: feeble on November 01, 2006, 05:29:44 am
can you send me the forum error log?
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on November 01, 2006, 06:16:02 am
no error in the error log...the item went to a blank white page that said unidentified image type...when I went onto the server and removed the space in the avatar name and tried again, it worked fine.
Title: Re: Item: Egg your victims avatar
Post by: Vi31 on November 04, 2006, 01:32:11 am
Does this item only work on certain file types?  I keep getting an error "Avatar is an unknown filetype" when I try using it on users with an avatar that is .gif
Title: Re: Item: Egg your victims avatar
Post by: Vi31 on November 04, 2006, 02:01:40 am
ok, I have a couple problems:

I can't seem to be able to use it if the avatar is animated

when i use it on an avatar that is transparent it adds a dark background

Is there anything I can do to fix it?
Title: Re: Item: Egg your victims avatar
Post by: feeble on November 04, 2006, 04:24:50 am
Does this item only work on certain file types?  I keep getting an error "Avatar is an unknown filetype" when I try using it on users with an avatar that is .gif

hmm, it seems the avatar wasnt able to be found. there is a still a bug, if there are to many spaces or &.
can you give me a direct link to the avatar that didnt work?

ok, I have a couple problems:

I can't seem to be able to use it if the avatar is animated

when i use it on an avatar that is transparent it adds a dark background

Is there anything I can do to fix it?

it will only get the first frame of the animation. its a limiting aspect of gd. so i cant do anything about that.

also with the transparent background again, unless someone else knows how to solve this. i belive its a problem with gd, and cant handle empty pixels.
as even if the alpha channel is working, behind it is black.
Title: Re: Item: Egg your victims avatar
Post by: Vi31 on November 04, 2006, 07:33:37 am
Does this item only work on certain file types? I keep getting an error "Avatar is an unknown filetype" when I try using it on users with an avatar that is .gif

hmm, it seems the avatar wasnt able to be found. there is a still a bug, if there are to many spaces or &.
can you give me a direct link to the avatar that didnt work?

Here is the link

http://www.msvi007.com/timeout/avatars/SmallDollsAnimated/1c.gif

Also, when i try to use this mod on any avatars in this category it just removes the avatar even though i get the error message about the unknown filetype.
Title: Re: Item: Egg your victims avatar
Post by: feeble on November 04, 2006, 03:12:52 pm
no dramas, ill get on it. give me a couple of days
Title: Re: Item: Egg your victims avatar
Post by: inkstains on November 08, 2006, 09:18:47 pm
would it be possible to backup the users current avatar before egging it? and have it selectable in the profile like the egged versions? if this is possible would someone be able to point me in the right direction?
Title: Re: Item: Egg your victims avatar
Post by: matkins70 on November 08, 2006, 10:32:25 pm
would it be possible to backup the users current avatar before egging it? and have it selectable in the profile like the egged versions? if this is possible would someone be able to point me in the right direction?

You do that anyway...
Title: Re: Item: Egg your victims avatar
Post by: feeble on November 09, 2006, 02:38:35 pm
would it be possible to backup the users current avatar before egging it? and have it selectable in the profile like the egged versions? if this is possible would someone be able to point me in the right direction?

unless you have set it otherwise, egged on default will always make a new image file, so that the user who was egged can just go into his profile and put it back to the old one.

if its an uploaded avatar, you should find, that to revert back, all you need to do is select uploaded avatar option and click save, as it should still be uploaded to the server.
Title: Re: Item: Egg your victims avatar
Post by: Greyias on November 11, 2006, 07:16:48 am
This looks like an AWESOME item. I can't install it quite yet (have to clean up something I messed up elsewhere in the shop), but I wanted to say kudos to coming up with such a creative idea, and also to the coding! :)
Title: Re: Item: Egg your victims avatar
Post by: checho_vacan on December 10, 2006, 12:36:40 pm
Hi.. im getting the same error.... just a white screen and
"Egg is an unknown filetype"

What can it be???

Really cool mod, i want to made my owns item and make some interactives avatars, like GaiaOnline
Title: Re: Item: Egg your victims avatar
Post by: leo on December 10, 2006, 02:41:09 pm
the link doesnt work for me.. is it just me? repost if u could.. thanx
Title: Re: Item: Egg your victims avatar
Post by: checho_vacan on December 10, 2006, 11:41:00 pm
No one?!... theres if no support for this items system?.... :( bad luck
Title: Re: Item: Egg your victims avatar
Post by: feeble on December 11, 2006, 10:22:34 am
the link doesnt work for me.. is it just me? repost if u could.. thanx

apologies, i updated my forums to 1.1 and 0.9.7 the other day, and i forgot to get rid of the .htacess file.
link should be working now.

No one?!... theres if no support for this items system?.... :( bad luck

? my apologies if you are referring to this item in particular. I haven't had time of late. uni, work and a few other projects im working on.

Hi.. im getting the same error.... just a white screen and
"Egg is an unknown filetype"

What can it be???

Really cool mod, i want to made my owns item and make some interactives avatars, like GaiaOnline

can i get a direct link to the avatar you are trying to egg. the avatars are limited to what gd can do.

it can either be a problem with the filetype or url that you are using.
Title: Re: Item: Egg your victims avatar
Post by: checho_vacan on December 11, 2006, 12:27:28 pm
Thanks for reply!... sorry if i offend you... ok, this is my avatar
http://foroqliao.ifastnet.com/foro/attachments/avatar_1.png
and is me XD

Maybe its because i dont have an .htacess file?
how i made one?

... greetings! :D
Title: Re: Item: Egg your victims avatar
Post by: feeble on December 11, 2006, 01:51:46 pm
Thanks for reply!... sorry if i offend you... ok, this is my avatar
http://foroqliao.ifastnet.com/foro/attachments/avatar_1.png
and is me XD

Maybe its because i dont have an .htacess file?
how i made one?

... greetings! :D

not at all, your right mate.

ill look into it, ill probably have an updated version in a day or 2.

Would it be possible if you could tell me if thats an uploaded avatar?

ive been thinking of rewriting how it gets its url anyways.

.htaccess file that i deleted comes standard with TP
just contains
Code: [Select]
<Files *>
Order Deny,Allow
Deny from all
Allow from localhost
</Files>

essentially the website is only allowed to call the file to be downloaded. .htaccess is nice. i mostly use it myself to rewrite urls.
Title: Re: Item: Egg your victims avatar
Post by: feeble on December 11, 2006, 06:04:33 pm
v11Beta is now out.

Please refer to the first post for the download link and changelog. (http://www.daniel15.com/forum/index.php?topic=354.0)

v11Beta is basically a complete rewrite of getting the href of the users avatar. now uses smf functions (finally found out how lol)

this is beta since its not completely tested but should solve your problem checho_vacan, but cant be certain at this point in time.
(http://www.leaderless.net/avatars/egged/egged_feebletemp.png)
Title: Re: Item: Egg your victims avatar
Post by: checho_vacan on December 11, 2006, 11:34:27 pm
OMG!!! you are good!!... :)

... but it still tellme that "Egg is an unknown filetype" thing...

It's ok... :( im really want to make some kind of interactive avatars with this really cool addon....
and... i want to "modify" this "avatar base" and "buy" stuff for him... :D
(http://www.subirimagenes.com/imagenes/previo/thump_584287Base Avatar sin items.png)

The picture of mine was an uploaded avatar... but my "avatar base" its in the avatar place...
(http://foroqliao.ifastnet.com/foro/avatars/hombre_01.gif)

I hope you can helpme ;) thanks

PD: My english sux :P
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on December 11, 2006, 11:54:37 pm
OMG!!! you are good!!... :)

... but it still tellme that "Egg is an unknown filetype" thing...

It's ok... :( im really want to make some kind of interactive avatars with this really cool addon....
and... i want to "modify" this "avatar base" and "buy" stuff for him... :D
(http://www.subirimagenes.com/imagenes/previo/thump_584287Base Avatar sin items.png)

The picture of mine was an uploaded avatar... but my "avatar base" its in the avatar place...
(http://foroqliao.ifastnet.com/foro/avatars/hombre_01.gif)

I hope you can helpme ;) thanks

PD: My english sux :P

Checho...where are you geting that avatar stuff from?

I ask, because I have been working on an SMF compatible mod that will allow members to make avatars very similar to what you posted...
Title: Re: Item: Egg your victims avatar
Post by: feeble on December 19, 2006, 07:59:50 pm
checho_vacan. looking at your forum, the egg avatar should now work if you upgrade to v12.
your forum is a little strange, and v10 wasn't working cause you had your avatar settings a slightly wrong. but its all good mate.

anyways, should only upgrade to v12 if you are having issues with the previous version. this basically combines v10 and v11Beta. should cover most cases now.

also add a new egg. a snowflake for the xmas season

you can download v12 from the first post.
Title: Re: Item: Egg your victims avatar
Post by: checho_vacan on December 20, 2006, 12:36:10 pm
Thanks a lot!! you are my god! =P
Title: Re: Item: Egg your victims avatar
Post by: Universe_JDJ on December 20, 2006, 06:09:02 pm
Hi,

I get the same problem as the user above. The latest version does not fix it and the following appears in the forum error log:

Quote
2: getimagesize(http://girra.110mb.com/forums/Sources/shop/item_images/eggedoriginal.gif) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: no suitable wrapper could be found
File: /www/110mb.com/g/i/r/r/a/_/_/_/girra/htdocs/forums/Sources/shop/items/EggUser.php
Line: 216

Quote
2: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: URL file-access is disabled in the server configuration
File: /www/110mb.com/g/i/r/r/a/_/_/_/girra/htdocs/forums/Sources/shop/items/EggUser.php
Line: 216

Quote
8: Undefined index: eggtaunt
File: /www/110mb.com/g/i/r/r/a/_/_/_/girra/htdocs/forums/Sources/shop/items/EggUser.php
Line: 166

The locations for the avatars/attachment directories do not contain trailing slashes and from the second error message, I seem to think it's something to do with my host.
Title: Re: Item: Egg your victims avatar
Post by: animecosmo on January 17, 2007, 08:51:19 am
Okay, I have a weird one. I created an egged directory in the avatars directory in my forum. However, when I go to add the item, it says "EGGED DIR NOT FOUND, please create an egged directory @" and shows my OLD host and domain info instead of my current sever settings. My server settings are all set up correctly, but I am thinking maybe since we had the shop in the old directory, somehow the databases or files or something got a bit wierd during the transfer. Where would I go to check, and how would I fix this?

It DOES say "GD SUCCESSFULLY FOUND, ITEM SHOULD WORK"

As I expected, when the item is used, it doesn't create the egged avatar. Instead it has a broken image. I am sure that would be fixed if the right path was able to be put in place.
Title: Re: Item: Egg your victims avatar
Post by: feeble on January 18, 2007, 03:39:56 am
Okay, I have a weird one. I created an egged directory in the avatars directory in my forum. However, when I go to add the item, it says "EGGED DIR NOT FOUND, please create an egged directory @" and shows my OLD host and domain info instead of my current sever settings. My server settings are all set up correctly, but I am thinking maybe since we had the shop in the old directory, somehow the databases or files or something got a bit wierd during the transfer. Where would I go to check, and how would I fix this?

It DOES say "GD SUCCESSFULLY FOUND, ITEM SHOULD WORK"

As I expected, when the item is used, it doesn't create the egged avatar. Instead it has a broken image. I am sure that would be fixed if the right path was able to be put in place.

it uses forum variables to make the forum to make the forum, so i would highly recommend to go through each of your forum setting to check each address.

more then likely, your avatar dir and links needs to be updated, which im assuming atm, if you go into your profile, the avatar box will be broken.

head here and check each tab please
http://www.animecosmo.com/Forum/index.php?action=manageattachments (http://www.animecosmo.com/Forum/index.php?action=manageattachments)
Title: Re: Item: Egg your victims avatar
Post by: animecosmo on January 18, 2007, 08:23:09 am
Hmm, well it did make it pass the check, but now the avatar is showing up as broken. There is no avatar in the egged directory, either. I read somewhere that something has to be a GIF file. Does the avatar have to be a gif file? Does the avatar have to be uploaded, or can it just be linked? Does it have to be a certain size? If one of those is the cause of the problem, that should be any easy fix. I'll just set it so people have to upload an avatar rather than direct linking it, set the size, etc.
Title: Re: Item: Egg your victims avatar
Post by: feeble on January 18, 2007, 09:07:48 pm
Hmm, well it did make it pass the check, but now the avatar is showing up as broken. There is no avatar in the egged directory, either. I read somewhere that something has to be a GIF file. Does the avatar have to be a gif file? Does the avatar have to be uploaded, or can it just be linked? Does it have to be a certain size? If one of those is the cause of the problem, that should be any easy fix. I'll just set it so people have to upload an avatar rather than direct linking it, set the size, etc.

the avatar can be most things, just try the default avatars that come with smf, if they work, then its working correctly.

also if it cant handle the avatar it will let you know
Title: Re: Item: Egg your victims avatar
Post by: xfollowthereaperx on January 23, 2007, 12:32:12 pm
Error help please!

When I use the item it says: 'Egg is an unknown filetype'
No errors when installing

SMF1.1.1
Egg version: 19/DEC/06
Title: Re: Item: Egg your victims avatar
Post by: feeble on January 23, 2007, 07:14:11 pm
Error help please!

When I use the item it says: 'Egg is an unknown filetype'
No errors when installing

SMF1.1.1
Egg version: 19/DEC/06

normally means it is having trouble finding the egg images.

can i get your website address please
Title: Re: Item: Egg your victims avatar
Post by: animecosmo on January 24, 2007, 05:58:39 am
the avatar can be most things, just try the default avatars that come with smf, if they work, then its working correctly.

also if it cant handle the avatar it will let you know

It is just not working, and it is not telling me anything. It says all the tests are fine, but when I egg someone, the avatar turns out broken.
Title: Re: Item: Egg your victims avatar
Post by: xfollowthereaperx on January 29, 2007, 06:54:43 am
Error help please!

When I use the item it says: 'Egg is an unknown filetype'
No errors when installing

SMF1.1.1
Egg version: 19/DEC/06

normally means it is having trouble finding the egg images.

can i get your website address please
http://powerspike.ulmb.com/forums

Thanks
Title: Re: Item: Egg your victims avatar
Post by: feeble on January 30, 2007, 02:24:31 pm
the avatar can be most things, just try the default avatars that come with smf, if they work, then its working correctly.

also if it cant handle the avatar it will let you know

It is just not working, and it is not telling me anything. It says all the tests are fine, but when I egg someone, the avatar turns out broken.

looking at your forums, there is something wrong with how you have set it up. I need admin if thats ok.
Title: Re: Item: Egg your victims avatar
Post by: xfollowthereaperx on January 30, 2007, 02:26:08 pm
the avatar can be most things, just try the default avatars that come with smf, if they work, then its working correctly.

also if it cant handle the avatar it will let you know

It is just not working, and it is not telling me anything. It says all the tests are fine, but when I egg someone, the avatar turns out broken.

looking at your forums, there is something wrong with how you have set it up. I need admin if thats ok.
Do you have aim?

AIM me at ALLFATTEPUP69 or MSN me at XFOLLOWTEHREAPERX@HOTMAIL.COM
Title: Re: Item: Egg your victims avatar
Post by: xfollowthereaperx on January 30, 2007, 03:30:00 pm
the avatar can be most things, just try the default avatars that come with smf, if they work, then its working correctly.

also if it cant handle the avatar it will let you know

It is just not working, and it is not telling me anything. It says all the tests are fine, but when I egg someone, the avatar turns out broken.

looking at your forums, there is something wrong with how you have set it up. I need admin if thats ok.
Do you have aim?

AIM me at ALLFATTEPUP69 or MSN me at XFOLLOWTEHREAPERX@HOTMAIL.COM

Thanks a **** load, if anyone needs help Feeble did a great job on fixing mine, Thanks!
Title: Re: Item: Egg your victims avatar
Post by: feeble on January 30, 2007, 03:35:00 pm
Version 13 is out.
Small bug fix only for certain webhosting, so not necessary if you aren't having any problems.
Download link in first post

change log below.

Change-log from V12 to V13
-FIX:fix a bug where egg details weren't being initialized properly on certain hosting. thanks xfollowthereaperx (http://powerspike.ulmb.com) for the use of your forums.
Title: Re: Item: Egg your victims avatar
Post by: xfollowthereaperx on February 09, 2007, 09:37:10 am
I'm extremely sorry but my server deleted the egg item

If you have a copy of the file you sent me or can fix it really quickly could you please? :(
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 09, 2007, 10:38:05 am
I'm extremely sorry but my server deleted the egg item

If you have a copy of the file you sent me or can fix it really quickly could you please? :(

your problem was fixed in the main package, just download it again
Title: Re: Item: Egg your victims avatar
Post by: Ricky on February 10, 2007, 04:33:29 am
May I suggest, to create the folder somewhere else, such as in the main folder for your forum so it does not show in your profile, when trying to change your avatar? :)
Title: Re: Item: Egg your victims avatar
Post by: xfollowthereaperx on February 10, 2007, 07:05:57 am
I'm extremely sorry but my server deleted the egg item

If you have a copy of the file you sent me or can fix it really quickly could you please? :(

your problem was fixed in the main package, just download it again
I found the problem, my FTP didn't store the egg image

Sorry for bothering you  ;D
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 10, 2007, 11:58:40 am
May I suggest, to create the folder somewhere else, such as in the main folder for your forum so it does not show in your profile, when trying to change your avatar? :)

how it stores the avatar in the member profile, it needs to be in the avatar folder.

ill work on a different version, that stores it else where
Title: Re: Item: Egg your victims avatar
Post by: Ricky on February 11, 2007, 07:54:00 pm
Okay thank you, when it's finished would it be posted here?
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 12, 2007, 10:55:33 am
Okay thank you, when it's finished would it be posted here?

of course mate, it will be. just that atm, im pretty busy and actually heading on holidays for a couple of weeks. leaving 2morrow. so ill see what i can do before i go, but i cant promise anything.
Title: Re: Item: Egg your victims avatar
Post by: perplexed on February 14, 2007, 07:23:21 pm
hello

I installed shop 3.0 yesterday and then this item.

I have two problems but this server seemed to be down last night so I couldnt post till now.

Problem one I think is a shop problem regarding 'user not found'  I posted about this on the smf shop thread last year for 2.3 version, and someone posted a fix.  This doesnt work for 3.0.  See page 82 of smf shop mod thread.   If you are in shop, your inventory and trying to use an item eg this one, and type in a member name or try to search for one, it doesnt find the name.  The search finds the name but when you click on it, it doesnt put it in the name box.  Then if you try to do it, it still says user not found.  Putting in the name the member registered with works, only if you type it in.  Search does not work

Second problem,
I selected actor avatars for two members so I could test this mod out.  Apart from the above problem actually getting it to find the user, the egging worked on both.  However, this morning I tried to egg them for a second time and I got this message instead:

Avatar is an unknown filetype

They are wearing david boreanaz and charisma carpenter actor avatars with one kiss each.  But it wont let me do it again.

This is my testforum but I cant put it on the live one until these problems are resolved.  Any ideas and help appreciated. 
Title: Re: Item: Egg your victims avatar
Post by: perplexed on February 14, 2007, 08:07:02 pm
whoops sorry, here are the errors I have in the forum error log in relation to the above problem:

2: getimagesize(/home/mysite/public_html/testforum/avatars/egged/egged_fred%20blogs.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
File: /home/mysite/public_html/testforum/Sources/shop/items/EggUser.php
Line: 204

2: getimagesize(http://www.mysite.com/testforum/avatars/egged/egged_fred blogs.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

File: /home/mysite/public_html/testforum/Sources/shop/items/EggUser.php
Line: 212
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 15, 2007, 04:34:33 pm
whoops sorry, here are the errors I have in the forum error log in relation to the above problem:

2: getimagesize(/home/mysite/public_html/testforum/avatars/egged/egged_Imperial%20Scribe.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
File: /home/mysite/public_html/testforum/Sources/shop/items/EggUser.php
Line: 204

2: getimagesize(http://www.mysite.com/testforum/avatars/egged/egged_Imperial Scribe.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

File: /home/mysite/public_html/testforum/Sources/shop/items/EggUser.php
Line: 212

errors basically mean it couldnt find the avatar image

please make sure you have all your settings correct in smf admin area->attachments and avatars

also if possible can you please give me your test site address so i can check a few things
Title: Re: Item: Egg your victims avatar
Post by: perplexed on February 15, 2007, 08:47:52 pm
thanks for your reply.

I checked the avatar settings I dont see anything wrong with them.
If I go into my profile to select an avatar , I can choose from actors, musicicians, and egged, so they are definitely there.  PNG is an allowed file type, the folder is in the right place with the other folders. 

What else do I need to check?


edited to add:  I tried again and there is still the other issue of user name not found etc, which is causing problems, but I tried to egg one of the test users again, and it accepted it but when I looked at their avatar it still only had the one kiss on it, and this time I had tried an egg, but it hasnt shown up on their avatar.  It should have two but only one.
Title: Re: Item: Egg your victims avatar
Post by: myg_weng on February 22, 2007, 12:15:06 am
is this compatible to any SMF version?
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 22, 2007, 06:27:09 am
is this compatible to any SMF version?

depends, not sure about previous version, but you should be running 1.1.2 anyways. plus smfshop will only install of a few different version.

long story short, if you can install smfshop, im pretty sure this item will work.
Title: Re: Item: Egg your victims avatar
Post by: myg_weng on February 24, 2007, 03:08:29 am
if you encounter :

"Unsuccessful, <name> not found, here have another egg"

and yet, you are 100% sure that the name is existing in the database, the username might not be the original one from his registration. 

To fix this problem just change the part where it compares the

memberName   = '".$_POST['egguser']."'"

to

realName. = '".$_POST['egguser']."'"




its on Line 171, Col 128 onwards
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 24, 2007, 06:13:55 am
if you encounter :

"Unsuccessful, <name> not found, here have another egg"

and yet, you are 100% sure that the name is existing in the database, the username might not be the original one from his registration. 

To fix this problem just change the part where it compares the

memberName   = '".$_POST['egguser']."'"

to

realName. = '".$_POST['egguser']."'"




its on Line 171, Col 128 onwards

thats probably a good idea lol, ill change it in the main package soon
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on February 25, 2007, 01:50:22 pm
Or better yet...change the where clause to this:
Code: [Select]
WHERE memberName = '".$_POST['egguser']."' OR realName = '".$_POST['egguser']."'

That way it will check for either....
Title: Re: Item: Egg your victims avatar
Post by: myg_weng on February 25, 2007, 02:38:44 pm
Or better yet...change the where clause to this:
Code: [Select]
WHERE memberName = '".$_POST['egguser']."' OR realName = '".$_POST['egguser']."'

That way it will check for either....

there would be a possibility that it would return two records :

1. If my username is USERA
2. then i changed it to USERB
3. then SOMEONE (say USERC) changed his name to USERA

then it would return two records.. if SOMEONE would egg USERA, then it would be either USERB or USERA.. dont know bout the succeeding lines but one of them would be egged.. but not exactly USERA

Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on February 25, 2007, 03:45:24 pm
That is a possibility, but the same could also be said for every other occurance of similar code within SMF...that is essentially how it determines whether the user is correct...
Title: Re: Item: Egg your victims avatar
Post by: russ on February 26, 2007, 07:51:52 am
Very cool little mod this :) Was wondering how, when someone is egged, they can remove it? :)

Cheers :)
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on February 26, 2007, 08:28:22 am
that's the easy part...they just go into their profile and switch it back to their old one!
Title: Re: Item: Egg your victims avatar
Post by: russ on February 26, 2007, 03:49:35 pm
All installed great, apart from now, if you go to add/edit items.... this error appears:

Fatal error: Cannot redeclare class item_egguser in /home/XX/XXXXXXXXXXX/XXXXXX/forum/Sources/shop/items/EggUser.php on line 42

:(
Title: Re: Item: Egg your victims avatar
Post by: perplexed on February 28, 2007, 08:29:28 pm
whoops sorry, here are the errors I have in the forum error log in relation to the above problem:

2: getimagesize(/home/mysite/public_html/testforum/avatars/egged/egged_fred%20blogs.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
File: /home/mysite/public_html/testforum/Sources/shop/items/EggUser.php
Line: 204

2: getimagesize(http://www.mysite.com/testforum/avatars/egged/egged_fred blogs.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

File: /home/mysite/public_html/testforum/Sources/shop/items/EggUser.php
Line: 212

errors basically mean it couldnt find the avatar image

please make sure you have all your settings correct in smf admin area->attachments and avatars

also if possible can you please give me your test site address so i can check a few things

I think I found the problem.  I looked in your egguser.php and found


Code: [Select]
image: image file name. FOR THIS RELEASE THIS HAS TO BE A GIF. IF THIS FAILS,
       IT WILL NOT WARN YOU, AND IT WILL SAVE AN UNALTERED VERSION IN THE EGGED FOLDER

In the above error message and also in one I got today it shows the avatar in question

2: getimagesize(http://www.mysite.com/testforum/avatars/egged/egged_fred blogs.png)

This only works with gifs, so that would explain it, right?

Is there any chance of getting this to work with .png and .jpg avatars as I have 100s of them on my server and would hate to have to start changing them all over to .gifs :(
Title: Re: Item: Egg your victims avatar
Post by: feeble on February 28, 2007, 10:16:29 pm
Code: [Select]
image: image file name. FOR THIS RELEASE THIS HAS TO BE A GIF. IF THIS FAILS,
       IT WILL NOT WARN YOU, AND IT WILL SAVE AN UNALTERED VERSION IN THE EGGED FOLDER

In the above error message and also in one I got today it shows the avatar in question

2: getimagesize(http://www.mysite.com/testforum/avatars/egged/egged_Imperial Scribe.png)

This only works with gifs, so that would explain it, right?

Is there any chance of getting this to work with .png and .jpg avatars as I have 100s of them on my server and would hate to have to start changing them all over to .gifs :(

odd, as it should be working with png file types ill look into that.

for jpg well, since its not officially support by GD, i havent included it sorry,
Title: Re: Item: Egg your victims avatar
Post by: perplexed on March 01, 2007, 12:52:44 am
I tried it again on the test site and it worked ok with a png but i had to hard refresh the page to pick up the change

Is there a fix for the 'find members' problem?  It works ok in the shop but not on this item when you try to use it on someone?

~thanks
Title: Re: Item: Egg your victims avatar
Post by: perplexed on March 01, 2007, 11:20:24 pm
Code: [Select]
image: image file name. FOR THIS RELEASE THIS HAS TO BE A GIF. IF THIS FAILS,
       IT WILL NOT WARN YOU, AND IT WILL SAVE AN UNALTERED VERSION IN THE EGGED FOLDER

In the above error message and also in one I got today it shows the avatar in question

2: getimagesize(http://www.mysite.com/testforum/avatars/egged/egged_fred blogs.png)

This only works with gifs, so that would explain it, right?

Is there any chance of getting this to work with .png and .jpg avatars as I have 100s of them on my server and would hate to have to start changing them all over to .gifs :(

odd, as it should be working with png file types ill look into that.

for jpg well, since its not officially support by GD, i havent included it sorry,

it's working on .pngs the first time you egg them but after they've been egged it doesnt seem to recognise them or something.  Maybe something to do with the egged folder?

error in the forum log is:

2: getimagesize(/home/mysite/public_html/forum/avatars/egged/egged_jack.png) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
File: /home/mysite/public_html/forum/Sources/shop/items/EggUser.php
Line: 204


(and I hate being a pain but that javascript problem only happens in this item and the members keep complaining at me that it doesnt work)
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 02, 2007, 02:06:14 pm
few things.

im changing my host/plus a few other things around so downloads are going to be a little mixed up so i wont be able to host for about a week.

to perplexed. ill be working on it this soon and gets those problems fixed, plus ill be looking into a jpeg solution

but its going to take time since uni has just started up, plus i dont have a website atm to look into the bugs

sorry for all this, ill try and get up a temp host probably in the next hour or so.
Title: Re: Item: Egg your victims avatar
Post by: perplexed on March 05, 2007, 02:55:14 am
javascript is annoying but can be worked around, the other problem once you egg someone you cant egg them again, is a little harder to explain to members

thanks feeble, I have uni too so I hear you on that one lol

Title: Re: Item: Egg your victims avatar
Post by: feeble on March 05, 2007, 05:00:33 am
javascript is annoying but can be worked around, the other problem once you egg someone you cant egg them again, is a little harder to explain to members

thanks feeble, I have uni too so I hear you on that one lol

im going to need your website address please, either here or pm, as it looks like it may be a problem at your end, so i need to check please.

also i think ive found the javascript problem, but an unable to test at this point in time.
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 08, 2007, 06:22:35 pm
V14 is now out. link in first post
RECOMMENDED UPDATE

new debug mode, so if you are having issues, ill will probably get you to send me this information before i look at anything, as most problem now are solved by fixing SMF errors in the admin panel.

for those who have requested egged image to not be stored in avatar directory, ill be adding this in the next version as well, but im limited at the moment to how smfshop functions, so it will have to be a separate item, which im not to happy about but it will happen.

Change-log from V13 to V14
-FIX:fixed the issues with users having spaces in their username. thanks to perplexed for pointing this out.
-ADDED: debug mode: ive added a debug mode in the EggUser.php file, so if you are having issues, just set it to true, then send me a pm on its read out next time you use the item.
-UPDATED: as per suggestion from TechnoDragon, ive made it so it will search for the users login name or realname, should make finding users a little easier. should of done this on the get go but better late then never.
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on March 08, 2007, 09:35:16 pm
Wow, very good work Feeble...though let me tell you from experience...you are probably better off leaving the avatars as they are, it is near impossible to change that stuff with out a total rewrite of the whole avatar code in smf...
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 09, 2007, 05:13:45 am
Wow, very good work Feeble...though let me tell you from experience...you are probably better off leaving the avatars as they are, it is near impossible to change that stuff with out a total rewrite of the whole avatar code in smf...

? what are you refering to by this?

the debug mode? or storing the egged image in a directory other then avatars?
Title: Re: Item: Egg your victims avatar
Post by: TechnoDragon on March 09, 2007, 05:43:29 am
Quote
or storing the egged image in a directory other then avatars?

That
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 09, 2007, 07:50:16 am
Quote
or storing the egged image in a directory other then avatars?

That

its not that difficult, just storing the eggimage in a separate directory, then telling smf that the avatar is an external image.
Title: Re: Item: Egg your victims avatar
Post by: GhostWriter on March 16, 2007, 11:41:41 am
That is awesome..I just added it to my forum and it worked out well.....

Nice item....
Title: Re: Item: Egg your victims avatar
Post by: tamibrown on March 23, 2007, 10:10:55 pm
Does this not work on people's avatars if they are linked from offsite?  It doesnt seem to work on avatars if they aren't uploaded to the server (for people who are using the "I have my ownpic" option).  When I try to hit someone who's avatar is on the board by that method, I get "Avatar is an unknown filetype".  Must their avatar be on my server for it to work?
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 24, 2007, 04:45:29 pm
Does this not work on people's avatars if they are linked from offsite?  It doesnt seem to work on avatars if they aren't uploaded to the server (for people who are using the "I have my ownpic" option).  When I try to hit someone who's avatar is on the board by that method, I get "Avatar is an unknown filetype".  Must their avatar be on my server for it to work?

no it actually should work for pictures off site,

it does sometimes depend on the server host.

umm can you send me an example of the off site image so i can test it on my webhost, if that works out fine, ill send you a debug version for Egg Avatar so we can see what is happening
Title: Re: Item: Egg your victims avatar
Post by: tamibrown on March 24, 2007, 07:44:42 pm
http://i33.photobucket.com/albums/d57/siriuslytwisted/Image5.png
http://i20.photobucket.com/albums/b228/celeritydream/avatar.jpg

I can only seem to get the item to work on avatars that are uploaded on to my server, in the avatar folder.
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 25, 2007, 04:30:12 am
hmm
(http://www.leaderless.net/avatars/egged/egged_feeble.png)

here is the debug version (http://www.leaderless.net/tp-downloads/EggUserdebug.zip)

please send me in a pm what it outputs when it fails please
Title: Re: Item: Egg your victims avatar
Post by: tamibrown on March 25, 2007, 04:44:59 am
PM sent........
Title: Re: Item: Egg your victims avatar
Post by: feeble on March 25, 2007, 04:54:48 am
PM sent........

im going to look into it, but at this point in time it looks like its to do with your host, and not allowing external grabs.

ill look into a way to get around this, but i cant promise anything
Title: Re: Item: Egg your victims avatar
Post by: tamibrown on March 25, 2007, 05:31:32 am
PM sent........

im going to look into it, but at this point in time it looks like its to do with your host, and not allowing external grabs.

ill look into a way to get around this, but i cant promise anything

Not a prob, I appreciate the help....it just may mean I have to choose between not allowing them external avatars or the egging mod.
Title: Re: Item: Egg your victims avatar
Post by: NFM on April 04, 2007, 01:47:07 am
I can't seem to get this to work at all.  The error I keep getting is that it can't find the "egged" directory.  I've gone to the avatars folder and created "egged" "Egged" and "EGGED" and it still says that it can't find the directory.
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 04, 2007, 05:57:04 am
I can't seem to get this to work at all.  The error I keep getting is that it can't find the "egged" directory.  I've gone to the avatars folder and created "egged" "Egged" and "EGGED" and it still says that it can't find the directory.

where abouts does it say this? when you are adding the item or when trying to use the item

if you are trying to use this item, try this debug version (http://www.leaderless.net/tp-downloads/EggUserdebug.zip) and send me a pm with what it prints out.

folder name should be 'egged'
Title: Re: Item: Egg your victims avatar
Post by: NFM on April 04, 2007, 11:48:45 pm
I'll try that tonight when I get home.  But I get that message when I try and add the item.
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 05, 2007, 05:48:42 am
I'll try that tonight when I get home.  But I get that message when I try and add the item.

can i please have your website address please
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 05, 2007, 10:01:09 pm
hi feeble,

A couple of members are reporting this error when they go to their profiles to choose an avatar:


I dont get this, I see the avatar they are currently wearing - they see the red cross - and I can select from the categories and they cant.

All permissions are correct, and members are allowed to select from the stored avatars.  This was only mentioned today and yesterday.

any ideas?



edited to add:  I managed to duplicate the problem by changing browsers to IE7 and Opera.
If I use IE7 or opera, I get a display like that and no avatar selection.  If I right-click on the broken image it says the url is
http://www.mysite.com/forum/avatars/1       (which doesnt exist to my knowledge)


Also checking the log, I have 3 pages of  8 undefined index for eggtaunt  - any idea how to fix those?

Any ideas how to fix?
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 06, 2007, 03:59:30 pm
umm can you open any other folder?
like cats? or actors?
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 06, 2007, 08:51:16 pm
umm can you open any other folder?
like cats? or actors?

I can in firefox but not in opera or IE.  thats why I didnt realise there was a problem as I only use FF usually.  Then some members started to comment that they couldnt see their avatars, couldnt change them etc

the avatar directories arent clickable, so you cant even browse through them... but you can in Firefox
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 07, 2007, 10:16:08 pm
i dont think i can fix that sorry, seems like an SMF problem. since I havent alter the profile related files at all
Title: Re: Item: Egg your victims avatar
Post by: JSizzal on April 08, 2007, 04:04:58 am
I dont i doubt im the only one who has experienced this but when i egged someones avy, it ate the avatar.

Its no longer there..!!
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 08, 2007, 04:12:45 am
well this is kinda odd but I just posted this and it disappeared so here I go again.  I'm pretty sure I said it better the first time...

Feeble the probem has to do with the egging and browsers other than Firefox.

Members who have been egged can no longer browse or select avatars from the stored avatars on the forum IF they use a browser other than firefox.
Their current avatar disappears, and is replaced by the broken image with 'do nothing' (as per image above) and the avatar directories are not links so they cant browse or select from them
If they go to firefox, they can do everything as normal


Members who have never been egged can continue to browse and select avatars from the server from all browers.  But once they get egged, they get the same problem as above.

It doesnt happen in firefox which is why I didnt pick up on it before now - I use firefox.  But it is really stopping members from playing with the new egging feature as not many of them use firefox.

I tested it myself with my account, everything fine in firefox - can't change avatar, select avatar etc in IE.
Then I tried it with a member account that had never been egged and everything was fine in all browsers... until they were egged and then they run into the above problem.

Title: Re: Item: Egg your victims avatar
Post by: feeble on April 08, 2007, 06:51:29 am
I dont i doubt im the only one who has experienced this but when i egged someones avy, it ate the avatar.

Its no longer there..!!

can you please elaborate on this please.
was it an uploaded avatar?
did you have the setting enabled that that it would overwrite the avatar?
please link the image if possible
anything else would be useful as well, like a website address etc.

well this is kinda odd but I just posted this and it disappeared so here I go again.  I'm pretty sure I said it better the first time...

Feeble the probem has to do with the egging and browsers other than Firefox.

Members who have been egged can no longer browse or select avatars from the stored avatars on the forum IF they use a browser other than firefox.
Their current avatar disappears, and is replaced by the broken image with 'do nothing' (as per image above) and the avatar directories are not links so they cant browse or select from them
If they go to firefox, they can do everything as normal


Members who have never been egged can continue to browse and select avatars from the server from all browers.  But once they get egged, they get the same problem as above.

It doesnt happen in firefox which is why I didnt pick up on it before now - I use firefox.  But it is really stopping members from playing with the new egging feature as not many of them use firefox.

I tested it myself with my account, everything fine in firefox - can't change avatar, select avatar etc in IE.
Then I tried it with a member account that had never been egged and everything was fine in all browsers... until they were egged and then they run into the above problem.



ill look into it, but it sounds odd.

just checking, when the users of ie get this problem, is their avatar egged? and was it egged successfully?
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 08, 2007, 08:42:08 am
I dont i doubt im the only one who has experienced this but when i egged someones avy, it ate the avatar.

Its no longer there..!!

can you please elaborate on this please.
was it an uploaded avatar?
did you have the setting enabled that that it would overwrite the avatar?
please link the image if possible
anything else would be useful as well, like a website address etc.

well this is kinda odd but I just posted this and it disappeared so here I go again.  I'm pretty sure I said it better the first time...

Feeble the probem has to do with the egging and browsers other than Firefox.

Members who have been egged can no longer browse or select avatars from the stored avatars on the forum IF they use a browser other than firefox.
Their current avatar disappears, and is replaced by the broken image with 'do nothing' (as per image above) and the avatar directories are not links so they cant browse or select from them
If they go to firefox, they can do everything as normal


Members who have never been egged can continue to browse and select avatars from the server from all browers.  But once they get egged, they get the same problem as above.

It doesnt happen in firefox which is why I didnt pick up on it before now - I use firefox.  But it is really stopping members from playing with the new egging feature as not many of them use firefox.

I tested it myself with my account, everything fine in firefox - can't change avatar, select avatar etc in IE.
Then I tried it with a member account that had never been egged and everything was fine in all browsers... until they were egged and then they run into the above problem.



ill look into it, but it sounds odd.

just checking, when the users of ie get this problem, is their avatar egged? and was it egged successfully?

Yes all the people have been successfully egged at least once, sometimes more.  When they try to change their avatar they can't access the ones on the server... in IE etc but in firefox its ok

People who have never been egged are ok.

The first report I got was from a newish member who said her avatar had disappeared (it was an egged one).  then another member said the same thing and sent me the above screenshot.  I could access their avatars using FF so I put them back on but they couldnt change them and they didnt show up.

then I tried to recreate the problem and discovered the above.  If I log in as a member who had been egged previously in IE then I dont see the second avatar column at all and I cant select any, but if I log in as a never egged member in IE, then the second avatar box (the selection box) appears.

It is very weird.  Its late here so I cant do anything else till tomorrow. Thanks for investigating.
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 08, 2007, 10:38:39 pm
ok I've managed to narrow it down a bit.   As I had just had to reinstall my testforum, all the files were new.  the problem is not happening on the testforum as I have been trying to duplicate it.  So I thought it might be theme-related.  We only have a couple of themes which are all copies of default and the manuscript theme.

All of these themes allow you to select an avatar in firefox but not in IE

I created a new copy of default theme and it was the same as above - no avatars

I replaced the  index.template.php  with one on my computer and success! I can see avatars again...

Problem is I dont know whats wrong with the templates that would cause them to work in Firefox and not in IE?

The only difference between the index.template on my PC and the one on the site is the extra tabs I added and the fact that it doesnt have tiny portal edits on it yet.  Could there be something there that affects IE only?

This might not be the reason but I thought I would tell you my discovery

any ideas?
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 08, 2007, 11:01:07 pm
hmm, odd. if you tabs contain javascript then more then likely yes, they could be affecting it.

but also, ive tryed to replicated your problem on my forums and also yours as well. and its actually working just fine in both firefox and IE. no problems at all.

which ie are you using? im using ie7 in my tests
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 08, 2007, 11:08:41 pm
IE7 too

I'm not using any javascript as the tabs just link to other parts of the site,using the 'adding tabs to core' tutorial on smf.

This seemed to have started on Wednesday but nothing was changed on wednesday except I changed the name in the tabs.  We also installed the arcade pass around that time and the name change CSS stuff was around then too.

Firefox everything works, it seems to be IE thats a problem.  I also tried it in opera and for me, it wouldnt work either.

It is only happening to people who have been egged and dont use firefox lol

as of today, on the forum there is a theme called testtheme and using that and IE I can change avatars but using another theme and IE I can't.

I have to go out for a while but I will get back into this later today
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 09, 2007, 09:14:08 am
Feeble, this part of profile.template.php is where the 'do nothing' message is coming from:

      
Code: [Select]
// If users are allowed to choose avatars stored on the server show selection boxes to choice them from.
if (!empty($context['member']['avatar']['allow_server_stored']))
{
echo '
<tr>
<td width="40%" valign="top" style="padding: 0 2px;">
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="height: 25ex;"><tr>
<td valign="top" width="20" class="windowbg"><input type="radio" name="avatar_choice" id="avatar_choice_server_stored" value="server_stored"', ($context['member']['avatar']['choice'] == 'server_stored' ? ' checked="checked"' : ''), ' class="check" /></td>
<td valign="top" style="padding-left: 1ex;">
<b', (isset($context['modify_error']['bad_avatar']) ? ' style="color: red;"' : ''), '><label for="avatar_choice_server_stored">', $txt[229], ':</label></b>
<div style="margin: 2ex;"><img name="avatar" id="avatar" src="', !empty($context['member']['avatar']['allow_external']) && $context['member']['avatar']['choice'] == 'external' ? $context['member']['avatar']['external'] : $modSettings['avatar_url'] . '/blank.gif', '" alt="Do Nothing" /></div>
</td>
</tr></table>
</td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td style="width: 20ex;">
<select name="cat" id="cat" size="10" onchange="changeSel(\'\');" onfocus="selectRadioByName(document.forms.creator.avatar_choice, \'server_stored\');">';
// This lists all the file catergories.
foreach ($context['avatars'] as $avatar)
echo '
<option value="', $avatar['filename'] . ($avatar['is_dir'] ? '/' : ''), '"', ($avatar['checked'] ? ' selected="selected"' : ''), '>', $avatar['name'], '</option>';
echo '
</select>
</td>
<td>
<select name="file" id="file" size="10" style="display: none;" onchange="showAvatar()" onfocus="selectRadioByName(document.forms.creator.avatar_choice, \'server_stored\');" disabled="disabled"><option></option></select>
</td>
</tr></table>
</td>
</tr>';
}

line 16 in the above code.  This is what its doing in IE but not in firefox.  All permissions to select server stored avatar are correct.

Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 09, 2007, 07:29:04 pm
screenshots of what is happening or not in Firefox, opera and IE7 for me.

I have tried with a new account that has never been egged and they all work and allow me to select an avatar from the server.  Once egged you cant select an avatar using Opera or IE.  Firefox you can.


Using another Admin account, I have gone in and physically changed my avatar above to another one on the server, yet when I log as me, I cant select any from the server myself... unless I use firefox.

this is very frustrating.
Title: Re: Item: Egg your victims avatar
Post by: NFM on April 10, 2007, 12:08:03 am
I'll try that tonight when I get home.  But I get that message when I try and add the item.

can i please have your website address please

Sorry, I was away from my computer all weekend. http://castlenofear.com

Does it help if I tell you that it's bridged with Joomla?

Title: Re: Item: Egg your victims avatar
Post by: feeble on April 10, 2007, 06:44:24 am
perplexed
ill get back to you
umm do you think you could also tell me what the "do nothing" address on the image is please

also can i know if this is only happening ot ppl who have been egged from an uploaded avatar
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 10, 2007, 06:50:26 am
I'll try that tonight when I get home.  But I get that message when I try and add the item.

can i please have your website address please

Sorry, I was away from my computer all weekend. http://castlenofear.com

Does it help if I tell you that it's bridged with Joomla?



your problem is that you actually have settings a miss in your smf forums.
your avatars if looking in the wrong spot, please fix this up
as your forums is looking for
http://ssl-ss2.testaccount.edu/smf/avatars/
which makes no sense at all
Title: Re: Item: Egg your victims avatar
Post by: NFM on April 10, 2007, 06:58:11 am
Sent you a message at my place, but I fixed it and it still isn't working right.
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 10, 2007, 08:43:04 am
perplexed
ill get back to you
umm do you think you could also tell me what the "do nothing" address on the image is please

um which address as there is 'nothing there' really, however if I right click on the space where it says 'do nothing'  that seems to change per person but is something like http://www.mysite/forum/avatars/7  I think I posted on the previous page here one that had /avatars/1 too


also can i know if this is only happening to ppl who have been egged from an uploaded avatar

Well it seems to be both, one person definitely had an linked avatar in photobucket as I made it for them, and the other was using one on the server.   Actually tonight too, another person posted in the helpdesk asking why their avatar disappeared overnight and 'did we have a  new shop item that removed avatars' but it seems to be the same thing and they were using opera.  The avatars just disappear and then you cant select one from the server, but you can link to another url again.

I'm sorry for all this hassle.  I am assuming it only started happening last week as that was the first time someone reported it.  I didnt add anything last week apart from the arcade pass and the name CSS items.  I tried removing both but to no effect so I dont think it has anything to do with them.

(Also the person with two names can still only be egged once, then you cant find them to egg them again lol.  I asked them if they would might changing their name to one name but since that would mean they could be egged multiple times they dont want to lol)

Title: Re: Item: Egg your victims avatar
Post by: NFM on April 10, 2007, 11:12:39 pm
Okay...it's working great now....

Just a quick question, how do you egg an avatar multiple times?

Do you just choose it and egg it again?
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 11, 2007, 05:32:00 am
Okay...it's working great now....

Just a quick question, how do you egg an avatar multiple times?

Do you just choose it and egg it again?

yes, just buy another egg and egg the same person again :)
Title: Re: Item: Egg your victims avatar
Post by: Smith Online on April 15, 2007, 08:51:35 pm
Hi I installed this item and all was well and seemed to work fine but i have found 1 problem i can egg some users but not others i have found that the users i carnt egg are users which have a gif avater i have chmod all avater folders to 777 but did not solve the problem i get this messgae when trying to egg someone which have a gif image:-

Avatar is an unknown filetype

Regards

Smith-Online
Title: Re: Item: Egg your victims avatar
Post by: David on April 15, 2007, 11:31:44 pm
Not all gif images are really gif images...I know that sounds daft but it's true. Often you find that people have changed the extension of an image to gif and think that by doing so that makes it a gif image...it doesn't.

 My guess is that the images concerned are not properly converted to gif and are thus merely mis-labeled.

 You might try doing a proper conversion to gif or you could post the actual images here for us to look them over.

 You might also find that the extension is GIF rather than gif...showing that some fiddling had been done...that too could cause you the problem you have reported.
Title: Re: Item: Egg your victims avatar
Post by: perplexed on April 15, 2007, 11:54:31 pm
or it could be the problem I noticed where if the member has two names separated by a space, you cant egg them more than once.  You should check that out too for the members affected
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 16, 2007, 09:26:08 am
Hi I installed this item and all was well and seemed to work fine but i have found 1 problem i can egg some users but not others i have found that the users i carnt egg are users which have a gif avater i have chmod all avater folders to 777 but did not solve the problem i get this messgae when trying to egg someone which have a gif image:-

Avatar is an unknown filetype

Regards

Smith-Online

if you can use this debug item, and let me know what it prints out by a pm please
http://www.leaderless.net/tp-downloads/EggUserdebug.zip
Title: Re: Item: Egg your victims avatar
Post by: Smith Online on April 17, 2007, 12:39:21 am
I Have Sent You Debug Log Via PM Feeble

Regards

Smith-Online
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 17, 2007, 01:52:56 pm
I Have Sent You Debug Log Via PM Feeble

Regards

Smith-Online
(http://www.leaderless.net/egged/egged_1.png)

on that note, ive just released a beta version that seems to fix your issue, and also should fix your issue as well perplexed

Download EggUserV20Beta (http://www.leaderless.net/tp-downloads/EggUserV20Beta.zip)
this is a separate item for the moment (EggUserV2.php) as im trying a few different things.
-Eggs are now stored in $boardurl/egged dir. so it doesnt show up in avatars list. few ppl requested this, just gotten around to it.
-PNG imgs are now stored as egged_{ID_MEMBER}.png, so should fix naming issues, just could not get it right for some reason, but its a none issues.
Title: Re: Item: Egg your victims avatar
Post by: David on April 17, 2007, 05:00:36 pm
Thanks for your work on this feeble.

 I'm getting the following problem with the new version...the old one worked properly.


Egg_Source: /home/****/smf_clean_install/Sources/shop/item_images/eggedoriginal.gif
Egg Details:

Array
(
    [bits] => 7
    [channels] => 3
    [mime] => image/gif
)
1


Avatar Source :http://****smf_clean_install/egged/egged_2.png
Image Details:

1


Avatar is an unknown filetype
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 17, 2007, 07:14:00 pm
Thanks for your work on this feeble.

 I'm getting the following problem with the new version...the old one worked properly.


Egg_Source: /home/****/smf_clean_install/Sources/shop/item_images/eggedoriginal.gif
Egg Details:

Array
(
   
  • => 50
  • [1] => 50
        [2] => 1
        [3] => width="50" height="50"
       
[bits] => 7
    [channels] => 3
    [mime] => image/gif
)
1


Avatar Source :http://****smf_clean_install/egged/egged_2.png
Image Details:

1


Avatar is an unknown filetype

you better check some of your SMF settings. espescially Board Directory and Board Url.
or can you pm or type your web site address please

ill add a few more bits of information in the debug and item add checks sections
Title: Re: Item: Egg your victims avatar
Post by: David on April 17, 2007, 07:32:07 pm
Thanks...I'll PM you the unedited version.
Title: Re: Item: Egg your victims avatar
Post by: Smith Online on April 17, 2007, 08:39:03 pm
Hi Feeble I Have Sent You A PM With new Debug Log From EggedUserV2 As i Still Have Same Problem

Regards

Smith Online
Title: Re: Item: Egg your victims avatar
Post by: madd on April 18, 2007, 03:26:00 am
Quote
--------------------------------------------------------------------------------
Quote from: checho_vacan on December 12, 2006, 01:34:27 AM
OMG!!! you are good!!...

... but it still tellme that "Egg is an unknown filetype" thing...

It's ok...  im really want to make some kind of interactive avatars with this really cool addon....
and... i want to "modify" this "avatar base" and "buy" stuff for him...


The picture of mine was an uploaded avatar... but my "avatar base" its in the avatar place...


I hope you can helpme  thanks

PD: My english sux


Checho...where are you geting that avatar stuff from?

I ask, because I have been working on an SMF compatible mod that will allow members to make avatars very similar to what you posted...


This interactive type avatar idea is VERY cool.  Is there any work being done on it?

both the latest, and beta work perfectly on my forum.  Thanks
Title: Re: Item: Egg your victims avatar
Post by: shanhi on April 21, 2007, 09:16:53 am
1.I get this error when I install this item
Quote
EGGED DIR NOT FOUND, please create an egged directory @ /www//t//eep/_/_/_/_/teep/htdocs/forum/avatars/egged

And I know this directory is point to my old server.So what should I do now?
note: When I move the sever.I only keep the database,everything else I make new.

2.Before I move my server , I did not get this message when I install the mod
Quote
GD SUCCESSFULLY FOUND, ITEM SHOULD WORK
   What is it?

Please help me out.thanks
Title: Re: Item: Egg your victims avatar
Post by: David on April 21, 2007, 10:07:35 am
Admin>Attachments and Avatars>Avatar Settings

Change your Avatar directory there.

GD is a service that must be part of the php installation on your server for the egging system to work...the note you quote says that it has been found to be there and should work.
Title: Re: Item: Egg your victims avatar
Post by: feeble on April 21, 2007, 05:14:26 pm
Just wanted to let anyone know that my servers are currently down.

Reason being is that im currently upgrading all my pc to vista. and im also downgrading some of those that ive upgraded to vista back to xp again.

ill be uploading temp urls soon for any of my mods, projects and items soon.

Quote from: david
Admin>Attachments and Avatars>Avatar Settings

Change your Avatar directory there.

GD is a service that must be part of the php installation on your server for the egging system to work...the note you quote says that it has been found to be there and should work.
thanks for your response to shanhi help request.
Title: Re: Item: Egg your victims avatar
Post by: shanhi on April 29, 2007, 12:28:51 am
thank you,David.I got it now.
Title: Re: Item: Egg your victims avatar
Post by: dumbelljunkie on May 11, 2007, 07:39:18 pm
The idea sounds great but I just can't gwet it to work, get on getting a white screen.
I've put 'egged' in the avatar map, and I got the two green OK's when I added the item.

I am using the joomla bridge however (1.1.7) (smf 1.1.2) (joomla 1.0.12) could this be a problem ?
>> edit <<

The problem is the joomla bridge. I have tried it on my test_board and it worked.
Anybody have a solution to the bridge ?
Title: Re: Item: Egg your victims avatar
Post by: feeble on May 11, 2007, 09:34:44 pm
The idea sounds great but I just can't gwet it to work, get on getting a white screen.
I've put 'egged' in the avatar map, and I got the two green OK's when I added the item.

I am using the joomla bridge however (1.1.7) (smf 1.1.2) (joomla 1.0.12) could this be a problem ?
>> edit <<

The problem is the joomla bridge. I have tried it on my test_board and it worked.
Anybody have a solution to the bridge ?

if you run the debug version or v20BETA(and run it in debug mode) send me what it prints out in a pm. you can find the links in the first post.
or if you say white screen with no text? then is there anything in the forum error log?


im just putting together the final lines for v20, also slowing going through tests. should be released soon enough.
Title: Re: Item: Egg your victims avatar
Post by: dumbelljunkie on May 11, 2007, 09:47:32 pm
Well that's the problem, I am usin V20 but installing goes ok, buyin goes ok but if I want to use it, the screen turn white, not a single debug or error message shows up and the errorlog remains empty..

Code: [Select]
http://www.powerlifting-forum.nl/index.php?option=com_smf&Itemid=99999999&action=shop;do=inv2;id=21
Title: Re: Item: Egg your victims avatar
Post by: dumbelljunkie on May 14, 2007, 04:48:13 am
Works great now, all my members are thrilled  ;D
Title: Re: Item: Egg your victims avatar
Post by: feeble on May 30, 2007, 07:02:26 pm
Released V20R4 - Please refer to first post for download link

This is a new version, its designed for so for people using free hosts and have alot of security.

Changes:
-egged avatar are now stored in forum/egged/. this was also request, egged avatars will not show up when choosing a new avatar from profile.
-more robust variable checks and debug information output

This will be the final version,  I kind of want to put this item in the finished pile, unless of course, if anyone gets any errors and lets me know about it.
Thanks to Smith Online for testing the different releases on his 110mb website.
Title: Re: Item: Egg your victims avatar
Post by: David on May 30, 2007, 07:47:30 pm
Thank you feeble...the new version is working for me without problems thus far...despite my host disabling furl open.

 Much appreciated!
Title: Re: Item: Egg your victims avatar
Post by: perplexed on June 05, 2007, 03:38:00 am
hi Feeble sorry I havent had a chance to look at this yet.

so what do I have to do, delete the old version of the item and delete the avatar/egged folder and start again with this new version?

thanks for all your good work
Title: Re: Item: Egg your victims avatar
Post by: feeble on June 05, 2007, 05:01:28 am
hi Feeble sorry I havent had a chance to look at this yet.

so what do I have to do, delete the old version of the item and delete the avatar/egged folder and start again with this new version?

thanks for all your good work

hey perplexed,

the new version, V2 , is sort of like a different item, so it wont overrite the other eggAvatar item

I did this mostly, as it stores the egged avatar in a different spot. also it works alot better as well.
Title: Re: Item: Egg your victims avatar
Post by: perplexed on June 05, 2007, 05:04:13 am
ok cool, thanks feeble.  I was going to say I'll try it at the weekend but I forgot we just had one lol  I will get to this sometime during the week now that Uni is finished   
Title: Re: Item: EggAvatar
Post by: feeble on June 11, 2007, 08:52:24 pm
quick update as this was a requested feature
Release R5, you will find download link in first post

After a successful egg, a PM is send to the victim, boasting about your good aim.

example msg
Quote
Ive egged your Avatar :)

You've been Egg'd by feeble

you can either turn this off by setting $enablePm to false or just keeping using R4

You can edit the msg at the bottom of the file look for $message and $subject

straight forward enough
Title: Re: Item: EggAvatar
Post by: perplexed on June 19, 2007, 04:51:14 am
hi feeble

sorry I didnt get a chance before now to try this new version out.  I just loaded it on a new forum I'm working on and it seems to be working well.

It seems to have solved the problem I had with people with a space in their names, I dont see any of the old probs I had with 'donothing' in IE either.

It is using the member's account name in the egging messages instead of their display name.  Is it ok to change this or will it cause any problems?

I assume I can just copy all my other egging image options straight into the new file?

Looking good
Title: Re: Item: EggAvatar
Post by: feeble on June 19, 2007, 10:41:43 am
Quote from: perplexed
I assume I can just copy all my other egging image options straight into the new file?
shouldnt be a problem at all

Quote from: perplexed
It is using the member's account name in the egging messages instead of their display name.  Is it ok to change this or will it cause any problems?
oh really? lol, umm i can update the item if you would like, or if you are right to, you should be able to make the small change yourself.
Title: Re: Item: EggAvatar
Post by: perplexed on June 19, 2007, 05:59:05 pm
Morning feeble

I had another look at the file and I see it is using the account name instead of display name in both the custom title 'you've been egged by...' and also in the text of the PM 'you've been egged by...'.

I'm not sure where to change it though...

in the PM :

Code: [Select]
// Who the IM will come from
$pmfrom = array(
'id' => $ID_MEMBER,
'name' => $context['user']['name'],
'username' => $context['user']['username']

so  I change username to realname?

and in the taunt I can't see what to change???    (although if I allow them to change the custom title message then they could change it themselves at the time)

Title: Re: Item: EggAvatar
Post by: perplexed on June 20, 2007, 01:13:26 am
I have another question.

I wanted to have another item that does the same thing as the egging but with a different set of images.  So 'egging 1' would have images 1-5  and 'egging 2' would have images 6-10.  I had an idea for another bunch of images but I dont really want them in the same item just so people dont get confused.

What would I have to change in the egging file to make this a new item?  Is it enough to just change the name to 'egguserV2B.php' and change the items in it and the taunt etc or would I also have to change the directory so that it makes a new one eg /egged2 as I guess if I tried to install it as it, it would try and create another /egged directory... or not?

Any ideas?   I could maybe give you some of my snazzy new images in return
Title: Re: Item: EggAvatar
Post by: Padre on June 20, 2007, 06:55:40 am
Here is the bullet hole I added
Title: Re: Item: EggAvatar
Post by: perplexed on June 20, 2007, 07:22:12 am
yeah I have one just like that too :)
Title: Re: Item: EggAvatar
Post by: feeble on June 20, 2007, 07:36:18 am
I have another question.

I wanted to have another item that does the same thing as the egging but with a different set of images.  So 'egging 1' would have images 1-5  and 'egging 2' would have images 6-10.  I had an idea for another bunch of images but I dont really want them in the same item just so people dont get confused.

What would I have to change in the egging file to make this a new item?  Is it enough to just change the name to 'egguserV2B.php' and change the items in it and the taunt etc or would I also have to change the directory so that it makes a new one eg /egged2 as I guess if I tried to install it as it, it would try and create another /egged directory... or not?

Any ideas?   I could maybe give you some of my snazzy new images in return

Ok your on the right track, change the filename to 'EggUserV2B.php' and change
Code: [Select]
class item_EggUserV2 extends itemTemplate {to
Code: [Select]
class item_EggUserV2B extends itemTemplate {
other then that, all you need to do this change $eggSelect


Also I wouldnt touch that $fromPM, thats correct how it is.
realName is actually stored in $context['user']['name']
They may of done this just to confuse people...anyways, ive made the changes for you
Download here EggAvatarV2R6 (http://www.leaderless.net/tp-downloads/EggUserV20R6.zip)
Title: Re: Item: EggAvatar
Post by: feeble on June 23, 2007, 09:20:40 pm
Here is the bullet hole I added

Sorry, ive only been recently started seeing attachments below posts.

Looks good, would you like it included in the main package?
Title: Re: Item: EggAvatar
Post by: Padre on June 24, 2007, 12:20:23 am
Here is the bullet hole I added

Sorry, ive only been recently started seeing attachments below posts.

Looks good, would you like it included in the main package?
I have had a lot of fun with it on our forum - feel free to use it
Title: Re: Item: EggAvatar
Post by: MrApples on June 25, 2007, 07:44:27 am
How long do eggs last? Not permanent I hope, i'd have to uninstall it then.
Title: Re: Item: EggAvatar
Post by: David on June 25, 2007, 09:29:18 am
If the egged person does nothing about it then the egging is permanent however the egged person can easily go back to their unegged image.so it's up to them.
Title: Re: Item: EggAvatar
Post by: Kylemakk on June 28, 2007, 02:26:50 pm
Just like to say a big thank you for this item! Its great! Everyone is having a blast with it.  ;D Job well done.
Title: Re: Item: EggAvatar
Post by: perplexed on July 06, 2007, 12:26:16 am
I have another question.

I wanted to have another item that does the same thing as the egging but with a different set of images.  So 'egging 1' would have images 1-5  and 'egging 2' would have images 6-10.  I had an idea for another bunch of images but I dont really want them in the same item just so people dont get confused.

What would I have to change in the egging file to make this a new item?  Is it enough to just change the name to 'egguserV2B.php' and change the items in it and the taunt etc or would I also have to change the directory so that it makes a new one eg /egged2 as I guess if I tried to install it as it, it would try and create another /egged directory... or not?

Any ideas?   I could maybe give you some of my snazzy new images in return

Ok your on the right track, change the filename to 'EggUserV2B.php' and change
Code: [Select]
class item_EggUserV2 extends itemTemplate {to
Code: [Select]
class item_EggUserV2B extends itemTemplate {
other then that, all you need to do this change $eggSelect


Also I wouldnt touch that $fromPM, thats correct how it is.
realName is actually stored in $context['user']['name']
They may of done this just to confuse people...anyways, ive made the changes for you
Download here EggAvatarV2R6 (http://www.leaderless.net/tp-downloads/EggUserV20R6.zip)

Hi Feeble

sorry I've been MIA and havent downloaded this yet, but I cant seem to download it today?

TY
Title: Re: Item: EggAvatar
Post by: David on July 06, 2007, 12:39:58 am
I'm feeling in a kind mood...see below
Title: Re: Item: EggAvatar
Post by: perplexed on July 06, 2007, 12:44:12 am
I'm feeling in a kind mood...see below


thanks David.  You made me laugh this morning elsewhere with your replies, must be that kind mood you're in  <insert laughing smiley since they don't work for me here>
Title: Re: Item: EggAvatar
Post by: feeble on July 06, 2007, 07:06:29 am
Hi Feeble

sorry I've been MIA and havent downloaded this yet, but I cant seem to download it today?

TY
Apologies, my server is acting a big funny, its come down with "Guest is sleeping in server room" bug, should have it ironed out by Tuesday


David, appreciate for that quick upload. Now that I think about it, that not such a bad idea to keep the files....
Title: Re: Item: EggAvatar
Post by: David on July 06, 2007, 07:12:25 am
My pleasure guys...if you need me just yell "Backup!"...maybe that should be my new username?
Title: Re: Item: EggAvatar
Post by: perplexed on July 06, 2007, 08:34:56 am
My pleasure guys...if you need me just yell "Backup!"...maybe that should be my new username?

*goes to check out shop items - I'm sure there's one that does that*  :p
Title: Re: Item: EggAvatar
Post by: Lily Flor on October 10, 2007, 03:34:18 pm
great Item!! i used it in my shop!! works great no problems at all ;)

thanks!
Title: Re: Item: EggAvatar
Post by: trio on October 13, 2007, 10:07:05 pm
Guys it seems that those avatar got egged shrinked. ANyone know why or is that normal?
Title: Re: Item: EggAvatar
Post by: David on October 13, 2007, 11:08:52 pm
It's certainly not normal and I would think that it points to a problem with the setup of your host's server.
Title: Re: Item: EggAvatar
Post by: trio on October 14, 2007, 12:10:47 am
a problem with the setup of your host's server.

Care to elaborate further?
Title: Re: Item: EggAvatar
Post by: David on October 14, 2007, 12:17:13 am
I can only guess...but my guess would be that they have some issue with the GD library...GD is an extension for PHP.

 If the same thing happens when you use, for instance, SMF Gallery that would prove that it was a GD issue as all the image manipulation functions for SMF Gallery are provided by GD.
Title: Re: Item: EggAvatar
Post by: feeble on October 14, 2007, 06:48:04 am
Guys it seems that those avatar got egged shrinked. ANyone know why or is that normal?

I dont actually understand what you are asking about?

Did the avatar get smaller after it was egged?
Title: Re: Item: EggAvatar
Post by: trio on October 14, 2007, 10:57:56 am
Sorry. Yea. The avatars shrinked after egged. Is this normal or not. If it is not normal then anyone know what is the problem and how to fix it. Hhe thank you  :angel:
Title: Re: Item: EggAvatar
Post by: feeble on October 14, 2007, 06:14:31 pm
Sorry. Yea. The avatars shrinked after egged. Is this normal or not. If it is not normal then anyone know what is the problem and how to fix it. Hhe thank you  :angel:

Its to do with the maximum allowed uploaded/external avatar settings.

If you go into the your admin -> forum -> Attachments and Avatars -> avatar settings

your should find what you are looking for

just increase the size to the desired max that you want allowed on your forums
Title: Re: Item: EggAvatar
Post by: trio on October 14, 2007, 09:12:47 pm
oh it works! Thx lots!!! Raised ur karma XD Hehe muacks XD *gay*  O0
Title: Re: Item: EggAvatar
Post by: dry3210 on October 25, 2007, 07:00:59 am
Ok so I installed this...

I gather if you egg someone with a gif avatar it adds the egg and the avatar no long has movement..correct?
Title: Re: Item: EggAvatar
Post by: feeble on October 25, 2007, 07:23:17 am
Ok so I installed this...

I gather if you egg someone with a gif avatar it adds the egg and the avatar no long has movement..correct?

correct, its a limitation with using GD

it will only grab the first frame and apply the egg to it
Title: Re: Item: EggAvatar
Post by: orca8767 on November 26, 2007, 02:47:59 am
A good item to go with this would be one to buy, so that when you use it, it subtracts eggs from your avatar. ;)
Title: Re: Item: EggAvatar
Post by: nickk2 on February 18, 2008, 12:28:28 am
Is there a way for me to alter the code so that using this also turns off the victim's ability to change their avatar. So that the only way to fix it, would be to use the "buyAvatar" item, without needing to completely stop avatar changing.
Title: Re: Item: EggAvatar
Post by: 2bz2p on March 13, 2008, 06:53:59 am
Hi Yall,

    Great item, sparked all kinds of conversation on my site,  just out of curiosity did any ever come up with the clean an avatar item?

Thanks
2B
Title: Re: Item: EggAvatar
Post by: Tweet on March 30, 2008, 08:53:27 am
Woo Hoo I'm on a roll today finding goodies! This is really awsome feeble, Thank You!

Pasted the tests & working great on my SMF 1.1.4 forum  O0
Title: Re: Item: EggAvatar
Post by: libra_86930 on May 03, 2008, 01:55:51 am
is there anyway you can make it so an admin can de-egg it? or a user can buy a de-egger?
Title: Re: Item: EggAvatar
Post by: 2bz2p on May 13, 2008, 11:59:42 am
get the buy avatar item and this requires you to have to buy the avatar!

2B
Title: Re: Item: EggAvatar
Post by: City Builder on May 18, 2008, 01:10:52 pm
Can't seem to get the eggavator to work with the attached animated gif.  Maybe someone else can try and see if its just something really unusual about this avatar or if it's just a limitation of the program.  When I try it on my server I get a white page screen with something along the lines of "unknown avatar type" or unknown file type.  On static avatar images it seems to work fine on my site.

Thanks,
Title: Re: Item: EggAvatar
Post by: lelekins on June 15, 2008, 05:06:05 am
Hey, unfortunately I get an error now when I try to use this item.
8: Undefined index: eggtaunt
File: *****/forum/Sources/shop/items/EggUserV2.php
Line: 175

It eggs the item the first time, although it still logs this error but on other attempts, it will not add another egg.  You can only deface the avatar once for some reason.  Why is this? How can it be fixed?
Thanks!

Edit: Now it is adding the wrong image/not adding it at all.  I picked a tomato and it was a snowflake that appeared on their avatar. :D
Title: Re: Item: EggAvatar
Post by: mike dijital on October 17, 2008, 03:34:44 am
is there anyway you can make it so an admin can de-egg it? or a user can buy a de-egger?


ive seen this posted like 6 times in the 18 pagesand its never been addressed, i saw another thread saying they saw a de egger but cant find it now.

I would REALLY like a deegger, is there one?
Title: Re: Item: EggAvatar
Post by: bls on February 14, 2009, 04:52:28 pm
I don't get how to put it on the forum

I installed the one which said pm underneath and uploaded that package into
htdocs >forum > sources >shop> items and still hasn't worked.

I don't get the bit which says copy your shops directory? Where do you copy it to on the forum?
Thanks

Joe
Title: Re: Item: EggAvatar
Post by: perplexed on December 05, 2009, 10:13:00 pm
I'm not sure how active this forum is now but I have a problem using this item on smf 2.0 RC2

It installed correctly with no errors but when I tried to egg someone I got a fatal error as follows:

Fatal error: Call to undefined function db_query() in /home/xxxxxx/public_html/mysite.com/forum/Sources/shop/items/EggUserV2.php  on line 206

line 206 is

Code: [Select]
if($userID = mysql_fetch_assoc(db_query("SELECT `ID_MEMBER` , `memberName`, `avatar` FROM {$db_prefix}members WHERE memberName = '".$_POST['egguser']."' OR realName = '".$_POST['egguser']."' LIMIT 1", __FILE__, __LINE__))) 
I know there are db differences between 1.1.10 and 2.0 but I don't know how to fix this.  Anyone?

I will also post this on smf as no one seems to be here anymore :(
Title: Re: Item: EggAvatar
Post by: Sleepy Arcade on December 06, 2009, 03:09:59 am
attached egg item for smf2
Title: Re: Item: EggAvatar
Post by: perplexed on December 06, 2009, 03:43:05 am
and thanks again :)
Title: Re: Item: EggAvatar
Post by: steve51184 on February 08, 2010, 02:23:02 pm
does this work on smf 2.0 rc2?
Title: Re: Item: EggAvatar
Post by: steve51184 on February 09, 2010, 10:30:07 am
anychance of an update for smf 2.0 rc2?

Quote
Fatal error: Call to undefined function db_query() in C:\wamp\www\Sources\shop\items\EggUserV2.php on line 180
Title: Re: Item: EggAvatar
Post by: Sleepy Arcade on February 10, 2010, 12:04:34 am
i allready done it see here

http://smfshop.com/forum/index.php/topic,354.msg9220.html#msg9220
Title: Re: Item: EggAvatar
Post by: steve51184 on February 10, 2010, 02:19:49 am
ty
Title: Re: Item: EggAvatar
Post by: DTeK on October 26, 2010, 12:50:55 am
It is not being removed from my inventory when I use it. Can I get some  help with this please?


When I deleted the item and removed the php file the dead items were removed from my inventory. Once I re added thephp and item thedead items stayed gone butas soon as I used the egg again I had a dead item in my inventory again.
Title: Re: Item: EggAvatar
Post by: Contra1971 on December 23, 2010, 11:13:18 am
wow I cant believe that this is that old I never heard of it, I love it...i hope my members will too...great work, does the egg wear off (return the original avatar?)