[SOLUTION] Avatar Gallery Thumbnail Hack

15 years 11 months ago #61980 by asmarteru
[SOLUTION] Avatar Gallery Thumbnail Hack was created by asmarteru
I have noticed that a lot of users have asked about having the "default" avatars with thumbnails. As I have read on here, this is not a function of CB but user submitted/uploaded avatars have a thumbnail.

Here is what I have done to get "around" this and has worked for me fairly well.

1. Find the file - comprofiler.html.php and edit the following line:
<input type="radio" name="newavatar" value="gallery/'.$avatar_images[$i].'" />

remove: gallery/

new line should be:
<input type="radio" name="newavatar" value="'.$avatar_images[$i].'" />

2. Create 3 image files per avatar

Large.png (used for the profile pic)
Icon.png (used for the gallery list)
tnLarge.png (used for the thumbnail for profile pic)

3. Upload the files Large.png and tnLarge.png to the images/comprofiler folder

4. Uplaod the Icon.png to the images/comprofiler/gallery folder

I have been using this "hack" for about 2 weeks without any issues. The thumbnail shows in all the addons/components I have installed on my site.

Hope this helps!

Dave

Just to clear things up about the file names:
Large.png and Icon.png MUST be named the EXACT same but I have them sized differently. The tnLarge.png MUST have the tn added to the front of it and it ALSO is named the same as well.

If your avatar is called: Avatar01.png
You will have 2 called Avatar01.png and 1 called tnAvatar01.png.

Let me know if it still isn't clear!

Post edited by: asmarteru, at: 2008/04/30 21:53

Please Log in to join the conversation.

15 years 11 months ago #62220 by asmarteru
Replied by asmarteru on topic Re:[SOLUTION] Avatar Gallery Thumbnail Hack
***UPDATE***
I have also been able to get Pagination to work along with my Thumbnail Hack for the Image Gallery.

I'm not sure if it's allowed, but I will post a link to my website that gives more information on how this was done. There is a lot of information on how this was done (for my site).

joomla.asmarteru.biz/horton/index.php?option=com_content&task=view&id=12&Itemid=2

Installs:
Joomla 1.0.15 & CB 1.1
Javascript enabled
Tested with IE6 only

I am no way a programmer and this was thrown together with snippets of code picked up off the web.

Good luck and I hope this information is usefull.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.217 seconds

Facebook Twitter LinkedIn