resizeAvatar

Download plugins, language packs and stuff.

resizeAvatar

Postby FI-DD » Sun Nov 13, 2005 3:56 pm

Adds a {avatar=width,height} tag to the templates and resizes the avatar to the given values.
Attachments
resizeAvatar.zip
resizeAvatar
(577 Bytes) Downloaded 859 times
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Miro » Fri Apr 21, 2006 12:24 am

where should this file be? in the main directory or in plugins/?
Miro
 
Posts: 45
Joined: Wed Apr 05, 2006 11:07 am

Postby Ramon » Sat Apr 22, 2006 2:39 am

Just put it in the directory "plugins".. Then - in the adminpanel - go to Manage Plugins, activate the resizeavatar plugin and you should be set ;)
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby scottdallas » Sat Oct 21, 2006 5:37 pm

Can we have width,height,border?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby erlendfl » Wed Jan 10, 2007 2:57 pm

Look here: http://engelsk-fotball.net/



You can see that I have use this plugin, but something bothers me. Does the height always have to be static? No I have {width=407,150} I only want to decide the width and then the height adjust itself. Is this possible with this plugin?



And is it also possible to change the alt-tag? No it is only saying avatar, and I don't know how to change it.



Thanks in advance! :)
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby scottdallas » Fri Apr 27, 2007 8:46 am

The area to change the alt tag on this plugin is here:



Code: Select all
$output = preg_replace("'{avatar=(.*?),(.*?)}'", ($row['avatar'] ? "<img src=\"".$row['avatar']."\" alt=\"image\" border=1 width=\"\\1\" height=\"\\2\" />" : ""),$output);




and in particular.. this spot of this code:



Code: Select all
alt=\"image\"




Right now I have it set to a generic term which is 'image'... just change that to whatever you'd like it to say.. then upload it and clear your cache and check your site. Should show up. This does wonders for Google Image search results :) I don't know about the other question you have about adjusting your height. Try a percentage maybe? I'll try it right now and see what happens.



That being said.. I tried changing the alt tag to {title}.. but it literally displayed the text "{title}" as my alt tag. How could I get the titles of the post to show up in this hack? Is it possible? That would make INCREDIBLE Google Image search results.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby scottdallas » Fri Apr 27, 2007 8:57 am

I tried a percentage of 100% and it worked fine. So put something like this:



{avatar=407,100%}
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Mania » Wed Jun 18, 2008 12:31 pm

how can i use this plugin for Author Avatar?
like that
{author-avatar=40px,100%}

thanx
User avatar
Mania
 
Posts: 178
Joined: Sat Feb 03, 2007 1:12 pm

Postby Disharmony » Thu Jun 26, 2008 3:45 pm

This doesn't seem to be working for me. I have it set as {avatar=50,50} but nothing shows up.

If there's no work around on this, I guess you guys could just tell me what file do I edit to add a "/" on the avatar's img src (ie. <.... border="0" />) so it would validate? :D
Disharmony
 
Posts: 45
Joined: Thu Jun 05, 2008 12:45 pm

Postby FI-DD » Thu Jun 26, 2008 5:37 pm

Head.php:
Code: Select all
$user_avatar[$row['username']] = ($row['avatar'] ? '<img src="'.$config_path_userpic_upload.'/'.$row['username'].'.'.$row['avatar'].'" alt="" border="0">' : '');
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby acateoN » Fri Jun 27, 2008 6:36 pm

Sadly this plugin dont work for me. When using {avatar=50,50} nothing shows up. {avatar} works fine though. : (
http://www.xpl.se - Runs under CNR
acateoN
 
Posts: 51
Joined: Tue Feb 12, 2008 10:02 pm

Postby Disharmony » Sat Jun 28, 2008 3:44 am

What's the point of this hack anyway? Isn't there a setting built in that lets you restrict avatar sizes to a certain width and height?

FI-DD wrote:Head.php:
Code: Select all
$user_avatar[$row['username']] = ($row['avatar'] ? '<img src="'.$config_path_userpic_upload.'/'.$row['username'].'.'.$row['avatar'].'" alt="" border="0">' : '');


Merci!
Disharmony
 
Posts: 45
Joined: Thu Jun 05, 2008 12:45 pm

Postby scottdallas » Tue Jul 08, 2008 11:05 pm

What's the point of this hack anyway?


Makes it easier to make sure all your thumbnail images are the same size.

Isn't there a setting built in that lets you restrict avatar sizes to a certain width and height?


Not that I know of, that's why this was created. If there is, well now there are 2 options for doing so :)
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Disharmony » Wed Jul 09, 2008 3:00 am

I just checked and on the system settings there's an avatar width/height setting.
Disharmony
 
Posts: 45
Joined: Thu Jun 05, 2008 12:45 pm

Postby Partyism » Mon Sep 15, 2008 5:41 pm

Would be awesome if we could change the alt="" to the name of the picture
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron