https://www.icyphoenix.com/viewtopic.php?f=28&t=9403&p=60070#p60070
-----------------------------------
mort
Thu 12 Mar, 2015 08:09

Replace The Gravitars
-----------------------------------
[b][i]Tired of those old, boring and time-worn gravitars - All those different coloured houses and yesterday's graphics[/i][/b]   :lol:  :lol:

Now you can change them without too much fuss.... :P

And by that I mean once you change the scripts in the zip you can change the images at any time simply by overwriting the files with different ones - But they MUST be GENUINE gif's and NOT re-named .png's etc.

[b]The MOD Instructions:[/b]

delete the folder /images/avatars/generator_templates - and replace it with the folder in the zip.

delete the file /templates/default/profile_avatar_generator.tpl - and replace it with the file in the zip.

delete the file /generate_avatar.php - and replace it with the file in the zip.

delete the file /includes/usercp_avatar.php - and replace it with the file in the zip.

Or:

[code linenumbers=false]Open:

/includes/usercp_avatar.php

Find:

		'U_PROFILE2' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&cpl_mode=avatar'),

Replace With:

		'U_PROFILE2' => append_sid(CMS_PAGE_PROFILE . '?mode=editprofile&amp;cpl_mode=avatar'),

Find:

		'S_PROFILE_ACTION' => append_sid(CMS_PAGE_PROFILE . '?mode=' . $mode . '&cpl_mode=avatar'),

Replace With:

		'S_PROFILE_ACTION' => append_sid(CMS_PAGE_PROFILE . '?mode=' . $mode . '&amp;cpl_mode=avatar'),
[/code]

[b]A Nice Picture:[/b]

 [img]http://www.icyphoenix.com/files/images/8840/gravitars.png[/img] 

All the avatars are 100x100

The Spidey one if for MG - -  :mrorange: 

[b]And the .ZIP'S..[/b]

The 30 pack is for those who only want a small number of gravitars - But as the Mythbusters say - [b][i]"If it's worth doing - It's worth overdoing"[/i][/b]

So I have added a 65 pack which could also be used to chop and change the 30 pack images with.  :mricy: 

Both zip's have the files and instructions..

@MG - I fixed the form errors and closed the open tags in profile_avatar_generator.tpl and validated it - If you want to use it. ;)


