Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
[tk] Egg Avatar Details »»
[tk] Egg Avatar
Version: 2.3.4, by hambil hambil is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.1 Rating:
Released: 03-13-2009 Last Update: 04-13-2009 Installs: 199
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.



A Support Project using the vBulletin Project Tool has been created to support this mod. Please make use of it if you can. Timely support will still be given in this thread, however, use of the project tool is appreciated because:
  1. I paid for it
  2. It makes searching for problems already asked by other users, and possibly solved, much easier than this long thread.
  3. It helps organize and manage issues for me, which will become even more useful as I release more mods.

Description:
Ever want to throw something at someone when you read a post? Now you can! Eggs, kisses, bullets, and more.

Video Demonstration Link

Special Notes:
  • Due to some complicated issues involving the coding for animated gifs, largely black eggs (like the bullethole) do not display properly. All that is required, if you make or find your own eggs, is that large black areas be converted to a dark grey or dark blue. I've already done this with the newest bullethole.gif, and as you can see it's not a big issue but I wanted to make everyone aware of it.
  • If you wish to uninstall please upgrade to the lastest version first, as older versions may not uninstall cleanly.

Upcoming 2.5 new features
  • Automatic (optional) integration with [tk] Post Notes (post note of "Username: Threw a <thing> at you." or "Username: Gave you a <thing>" etc.
  • Long promised post stats (how many times a post has been egged, etc.)

Features:
  • Fully Phrased.
  • Fully AJAX.
  • Can be configured to work with any credits system, or not use credits (default).
  • Comes configured for vbCredits (just turn on 'Enable Credits' in the admincp options).
  • Integrated with vB Optimise.
  • Manage your own egg images (enable/disable/delete/add).
  • Optionally have eggings effect user reputation.
  • Optional 'Who Egged Me' display in UserCP.
  • 'Eggs' can be cleaned away.
  • Entire avatars can be wiped clean.
  • Usergroup support for viewing, using, cleaning own and cleaning others.
  • Very configurable.
  • Handles animated avatars (animation stops when egged, starts again when cleaned).
  • Fully supports both GD and ImageMagick. Animated avatars do not stop in ImageMagick.
  • Optional Statistics in What's Going On.

Install:
Download the [tk] EggAvatar_2.3.4.zip file.
Unzip and upload all files in the upload directory to your forum root.
Import the product file in your admincp.
Make sure to set usergroup permissions - all are turned off by default.

Install vbAdvanced Module:
Import and configure the eggblock.xml module via vbAdvanced in your admincp.

Upgrade:
Download the [tk] EggAvatar_2.3.4.zip file.
Unzip and upload all files in the upload directory to your forum root.
Import the product file in your admincp - make sure Allow Overwrite is set to 'yes'.

Version History:
1.0 Original Version
1.1 Support for animated avatars
1.1.1 Fixed a couple minor bugs
1.2.0 Fixed a couple bugs and added file system support for avatar storage.
1.2.1 Fixed bug where function not compiled into standard php 4 was being called.
1.2.2 Fixed bug that cause out of place cost info on popup. Fixed so images no longer lose color when thrown.
1.2.3 Fixed some phrasing. Fixed (?) the bug causes database errors for some users.
2.0 Egg Manager (enable, disable, upload your own eggs). Egg tracking (who egged me). Optional reputation change on egging. Numerous small bug fixes, including PNG support.
2.0.1 Fixed bug with editing existing eggs in admincp.
2.0.2 Fixed bug with EI scrolling menu.
2.0.3 Added some missing phrases.
2.0.4 Fixed IE display problem. Put code in admincp image upload to only allow gifs and to resize if needed (max 50x50).
2.1.0 Full support for animated avatars. Eggs uploaded to the eggs directory but not in the database now show in the Egg Image Manager and can be added. Added Who's Online support. Fixed possible bug with missing dateline from url.
2.1.1 Fixed problem where PHP 5 function was being called.
2.2.0 Fixed problem with cleaned avatars missing dateline (really this time). Dropped back to partial animated gif support (animation stops when egged, starts when cleaned). Added checks and error messages to help with invalid path settings. Fixed bug that caused images not to display in popup. Fixed popup to display properly in all browsers no matter how many eggs are added.
2.2.1 Added additional error checking to the image manager. Fixed the upload button in the image manager.
2.2.2 Fixed uninstall issue. Fixed a couple words that weren't phrased.
2.3 Fixed permissions issues. Fixed a couple more words that weren't phrased. Added support for ImageMagick. Added support for vB Optimise. Added statistics on forum home. Changed the fade time so the eggs won't fade if the user hasn't logged in to see them yet.
2.3.1 Fixed bug in vB Optimise integration.
2.3.2 Fixed bug if paths to avatars has a leading '/'.
2.3.3 Another attempt at fixing the pop 'eggs out of the box' issue. Probably my last for a while. Good luck, cross fingers.
2.3.4 Fixes a "can't view if can't egg" permissions problem that has been plaguing some users. Adds a vbAdvanced Module.

Beta Testing Team! Thanks!
acegames

Do not be afraid to click the install button, or whatever

Donations (THANKS!):
?10.00 GBP by acegames
$10.00 USD by rule0
$10.00 USD by drupy
$10.00 USD by aztecboi2003
$10.00 USD by TandyServices
$10.00 USD by hIBEES

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #702  
Old 04-11-2009, 02:44 AM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oooh I thought I'd mention... the pop up for me to clean my own avi comes up fine.
Reply With Quote
  #703  
Old 04-11-2009, 08:48 AM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hambil View Post
They won't expire until the user logs in and sees them.
This avatar has been egged the maximum 0 times

Thought 0 was to disable ?
Quote:
Maximum Eggings.
Maximum number of time an avatar can be egged. After which all eggings will be denied until some fade with time or are cleared. 0 disables
Reply With Quote
  #704  
Old 04-11-2009, 12:37 PM
hoof hoof is offline
 
Join Date: May 2006
Location: Texas, USA
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was having an issue with the pop up as well and fixed it to my liking. I thought I'd share for those having the same problem

Here's what I changed:

Go to adminCP>style manager> and find the "eggav_bit" template
Replace contents with:
Code:
<div class="thead">$vbphrase[eggavatar_egg]: <span style="font-weight:normal">$username</span></div>
<if condition="$vbulletin->options[eggavatar_creditsenable]"><div class="thead">{$vbulletin->options[eggavatar_eggcost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toegg]</if><if condition="$show[clean] AND $vbulletin->options[eggavatar_creditsenable]">,&nbsp;{$vbulletin->options[eggavatar_cleancost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toclean], $cleanall_cost $vbphrase[eggavatar_tocleanall].</td></tr></if><if condition="$vbulletin->options[eggavatar_creditsenable]"></div></if>
	<div class="panelsurround" align="center">
	<div class="panel">
		<div <if condition="!$show['ajax']">style="width:$stylevar[formwidth]"</if> align="$stylevar[left]">
		<fieldset class="fieldset">
			<legend><phrase 1="$username">$vbphrase[what_do_you_want_to_egg_xs_with]</phrase></legend>
                        <div style="height: 160px; overflow-x: hidden; overflow-y: auto;">
			<div style="border: thin solid black;" align="center">
             <if condition="$show['egg']">
                $eggavatar_eggbits
             <if condition="$show['clean']"></if>
<span style="color: #80909c; font-weight: bold;"><a>----- Clean your Avatar Options -----</a></span>
                $eggavatar_cleanbits
            </if>
	<!-- <div style="margin-top:$stylevar[cellpadding]px;" "border: thin solid black;"> -->
		<input type="hidden" name="do" value="addegg" />
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
		<input type="hidden" name="uid" value="$userid" />
		<input type="hidden" name="pid" value="$postid" />
		<input type="hidden" name="url" value="$url" />
		<input type="submit" name="eggsubmit" class="button" value="$vbphrase[eggavatar_egg_submit]" accesskey="s" />

</div>
                </div>
		</fieldset>
		</div>
	</div>
	</div>
</div>
Now everything displays in the first container with a simple separation on the cleaning section.
Hope this helps, and I hope you don't mind me posting this hambil.
My community loves this modification
Reply With Quote
  #705  
Old 04-11-2009, 02:13 PM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hIBEES View Post
This avatar has been egged the maximum 0 times

Thought 0 was to disable ?
Hmmmm - I'll get that fixed.
Reply With Quote
  #706  
Old 04-11-2009, 02:14 PM
hambil's Avatar
hambil hambil is offline
 
Join Date: Jun 2004
Location: Seattle
Posts: 1,719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hoof View Post
I was having an issue with the pop up as well and fixed it to my liking. I thought I'd share for those having the same problem

Here's what I changed:

Go to adminCP>style manager> and find the "eggav_bit" template
Replace contents with:
Code:
<div class="thead">$vbphrase[eggavatar_egg]: <span style="font-weight:normal">$username</span></div>
<if condition="$vbulletin->options[eggavatar_creditsenable]"><div class="thead">{$vbulletin->options[eggavatar_eggcost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toegg]</if><if condition="$show[clean] AND $vbulletin->options[eggavatar_creditsenable]">,&nbsp;{$vbulletin->options[eggavatar_cleancost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toclean], $cleanall_cost $vbphrase[eggavatar_tocleanall].</td></tr></if><if condition="$vbulletin->options[eggavatar_creditsenable]"></div></if>
	<div class="panelsurround" align="center">
	<div class="panel">
		<div <if condition="!$show['ajax']">style="width:$stylevar[formwidth]"</if> align="$stylevar[left]">
		<fieldset class="fieldset">
			<legend><phrase 1="$username">$vbphrase[what_do_you_want_to_egg_xs_with]</phrase></legend>
                        <div style="height: 160px; overflow-x: hidden; overflow-y: auto;">
			<div style="border: thin solid black;" align="center">
             <if condition="$show['egg']">
                $eggavatar_eggbits
             <if condition="$show['clean']"></if>
<span style="color: #80909c; font-weight: bold;"><a>----- Clean your Avatar Options -----</a></span>
                $eggavatar_cleanbits
            </if>
	<!-- <div style="margin-top:$stylevar[cellpadding]px;" "border: thin solid black;"> -->
		<input type="hidden" name="do" value="addegg" />
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
		<input type="hidden" name="uid" value="$userid" />
		<input type="hidden" name="pid" value="$postid" />
		<input type="hidden" name="url" value="$url" />
		<input type="submit" name="eggsubmit" class="button" value="$vbphrase[eggavatar_egg_submit]" accesskey="s" />

</div>
                </div>
		</fieldset>
		</div>
	</div>
	</div>
</div>
Now everything displays in the first container with a simple separation on the cleaning section.
Hope this helps, and I hope you don't mind me posting this hambil.
My community loves this modification
If it fixes the problem people are having great, I'm all for it
Reply With Quote
  #707  
Old 04-11-2009, 02:53 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hambil View Post
Hmmmm - I'll get that fixed.
:up: my issue here still stands as well mate :up:
Reply With Quote
  #708  
Old 04-11-2009, 04:27 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Generic avatars are not displayed, everything else looks just fine!?

Thanks once more for great hack
Reply With Quote
  #709  
Old 04-11-2009, 06:05 PM
zombietom's Avatar
zombietom zombietom is offline
 
Join Date: May 2008
Location: ky
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work with 3.7 ?
thanks and it looks very cool
Reply With Quote
  #710  
Old 04-11-2009, 07:17 PM
zombietom's Avatar
zombietom zombietom is offline
 
Join Date: May 2008
Location: ky
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works good on 3.7 --just need to set up the credits thing...
thanks and i clicked installed
Reply With Quote
  #711  
Old 04-12-2009, 12:38 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Hambil!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04897 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete