Recent Topics

1 May 24, 2008 09:19    

Warning! This version is for older b2evolution v2 and v3 only.
For more recent version of this plugin see [url=http://forums.b2evolution.net/viewtopic.php?t=23849]new thread[/url].

[url=http://ru.b2evo.net/show.php/avatars-plugin-2-x]Read in Russian / Русская страница плагина[/url]

The Avatars Plugin allows you to attach avatars (display pictures, gravatars, profile pics, etc) to a user, blog, post and category. You upload avatars within the b2evo administration, with either a large or small (or both) avatar images. If a large avatar image is specified then lightbox functionality is seen, as when the user clicks the small avatar, the large avatar will show in a lightbox.

This plugin works in b2evo 2.x versions only. If you need the old 1.x plugin (developed by balupton) check [url=http://forums.b2evolution.net/viewtopic.php?t=9210] this thread[/url]

Demo skin (evopress), modified files for b2evo-2.4.5, installation and usage instructions are included.

[url=http://www.sonorth.com/travel/htsrv/call_plugin.php?plugin_ID=23&method=download&file=RX5QHXEII4]Download v2.2.7[/url]

http://ru.b2evo.net/media/images/7.JPG

Q: How do I upload avatars?

- Upload [u]post[/u] avatars from post edit tab e.g. admin.php?ctrl=items&action=edit&p=1

- Upload [u]post autor[/u], [u]user[/u], and [u]comment author[/u] avatars from user profile tab e.g. admin.php?ctrl=users&user_ID=1

- Upload [u]category[/u] avatars from category edit tab e.g. admin.php?blog=1&ctrl=chapters&cat_ID=1&action=edit

Changelog:
v2.2.7 - 24/11/2008
* Fixed compatibility issues with jQuery plugins
* Added demo summary.php with blog avatars

v2.2.6 - 19/10/2008
* Fixed: large avatars displayed in lightbox group

Demo skin
http://ru.b2evo.net/media/images/17.jpg

http://ru.b2evo.net/media/images/18.jpg

http://ru.b2evo.net/media/images/19.jpg

2 May 24, 2008 10:25

very good job sam2kb, an update for one of the major plugins this is awesome (:

3 May 24, 2008 10:34

Thanks, since this is a first 2.x release it has some known problems and I'm trying to fix them.
Do report all the bugs please.

4 May 24, 2008 14:05

sam2kb wrote:

Thanks, since this is a first 2.x release it has some known problems and I'm trying to fix them.
Do report all the bugs please.

i am not currently using it, but i will need it later on for another site, but hey dont worry, you will get a lot of feedback (or should i say questions and bug reports) in a few days i suppose

5 May 26, 2008 03:29

i have installed the plugin,and set it "always",but i can't find it in the user's info,how to set this plugin?

sorry to my poor english..

6 May 26, 2008 03:37

Did you edit required files? If you installed the plugin before you edited files go in Global settings-> Plugins install and Reload plugins.
Use a demo evopress skin or read Readme.html to insert avatars code in your skin.

7 May 26, 2008 05:06

ye,i have copy the code("blogs" folder) and instead the old code,and the admin user can edit and add avatars/icons for uers,but the users can not make it by themself..

the other question,when i use admin to edit the user's information the avatrs place show nothing,you can see it :

http://www.0592soyo.com/blog/media/blogs/hong/b2.jpg

8 May 26, 2008 05:17

he other question,when i use admin to edit the user's information the avatrs place show nothing,you can see it

This is a layout bug, ignore it. I'll fix it in next release.

You can select user groups in plugin settings, by default it doesn't allow "Basic Users" and "Bloggers" to use avatars.
All you have to do is delete a group from that list, or leave it empty to allow avatars for all user groups.

9 May 26, 2008 05:22

Will this allow me to select a different avatar for each blog post I do? A bit like livejournal? If so then that's awesome!

10 May 26, 2008 05:25

This feature (Post avatars) is not upgraded yet, expect it in next release. Now you can add avatars to blogs, categories and users.

11 May 26, 2008 05:31

OIC it does say that, I must have missed it. But once it's released, will it work how I stated, you can select a different avatar for each blog post, or does it associate the avatar with the username and so for each blog post the avatar will be the same?

12 May 26, 2008 05:35

Each blog post will have an avatar.

13 May 26, 2008 05:38

Sorry I don't think you understood my question, let me rephrase =)

On live journal, you can upload several avatars. When creating a post you can select which avatar you want to use for that particular post.

Will this be like that or each post you make will have the same avatar?

14 May 26, 2008 05:52

I understand you, you will be able to add avatars to any blog post (different avatars)

post1 - avatar1
post2 - no avatar
post3 - avatar3

15 May 26, 2008 06:06

sam2kb wrote:

This feature (Post avatars) is not upgraded yet, expect it in next release. Now you can add avatars to blogs, categories and users.

tks very much,now user can add avatars by themself,but where can show the avatars?I can see the avatar only when edit uers info,just your mean we can add avatars to blogs, categories and users,ye,it's right,but how to make the avatars to show on blog front?

sorry to my bad english,hope you can know my mean..

16 May 26, 2008 06:11

Use a demo evopress skin or read Readme.html to insert avatars code in your skin.

17 May 26, 2008 06:20

sam2kb wrote:

I understand you, you will be able to add avatars to any blog post (different avatars)

post1 - avatar1
post2 - no avatar
post3 - avatar3

Ah that's brilliant! Thanks for clearing that up for me =D

18 May 27, 2008 06:00

tks very much,maybe i know how to edit the other skins..

19 Jun 02, 2008 06:26

Hey Sam,

Here is something that puzzles me.. when I log out of the B2evo as a user testing your Avatar I get this error message
Using B2Evo 2.4.2
Fatal error: Call to a member function on a non-object in D:\inetpub\vhosts\cloisterbooks.com\httpdocs\blogs\plugins\avatars_plugin\_avatars.plugin.php on line 329

Not sure I really understand this.. I was logged in using Firefox and wanted to test the Blog as a new user ro do a walk thru. I thought I knew were firefox kept it cookies.. deleted the cookies there.. but for some reason.. when I reopened the browser I was logged in..SIGH.. So I decided to try this with Opera.. same error message after I logged out..
Same error message in IE.. and Netscape..
Sure would like to use this plug-in..
If you want.. you can go see what happens here..
http://blog.cloisterbooks.com/
Thanks

20 Jun 02, 2008 06:39

Do you see the error when logged in? Can you download a fresh zip and upload the plugin again then report back your results.
I can't copy the error in my testing system.

21 Jun 02, 2008 07:05

Did you register??? then log out..
It was working fine unril I log out as a registered user.. and tried to View the page as a Unlogged in.. this was the only time I got the error..

If you didn't get the error when stopping by and just viewing the page..then I guess my worries are only local.. but I will change the skin back to evopress skin and see wot happens..

let you know

Thnxs

22 Jun 02, 2008 07:17

I do see the error on your site. I'll try to register and logout...

23 Jun 02, 2008 07:53

When you're logged out there is no $current_User ;)

	function check_user_perms()
	{
		global $current_User, $GroupCache;
		// Check user perms
		if ( !is_logged_in() || ( is_object($this->Settings) && ($current_User->get('level') < $this->Settings->get('avatar_user_level')) ) )

¥

*edit*
Correcting logic

24 Jun 02, 2008 07:56

Master ¥åßßå is always right ;)

The fix is coming...

25 Jun 02, 2008 08:06

Actually this function is using only in admin and profile areas, I mean the $current_User is always true. That's why I didn't check $current_User.

26 Jun 02, 2008 08:25

I wonder if default user settings are set for non-logged in users?

	function GetDefaultUserSettings()
	{
		// Check user permissions
		if ( ! $this->check_user_perms() )
			return NULL;
				
		return array(
				'user_settings_hack' => array(
					'label' => 'hack to get user settings update to work',
					'type' => 'checkbox',
					'defaultvalue' => '0',
				),
			);
	}

It's the only non-admin place that calls the function

¥

27 Jun 02, 2008 08:30

I didn't know that it used in non-admin place 8|

Thank you!

29 Jun 03, 2008 06:25

Thank you Gents.. Sure didn't mean to stir up a hornets nest.. :oops:
Your discussion way way outside my tiny mind..But glad you could fix what I seemed to have broken..

So do I just replace all files..or do I just need to repalce the one that had the error???

30 Jun 03, 2008 06:30

You can replace _avatars.plugin.php only.

31 Jun 14, 2008 16:07

¥åßßå wrote:

if ( isset($avatars_Plugin) )
{ // Avatars plugin is enabled
echo $avatars_Plugin->get_avatar_display( array('type' => 'user', 'name' => $Item), '', '', '', '' );
}

I'm using different skins for my blog, none are the evopress one. Where do I make the necessary file edits like the one shown above? And what edits do I need to make in my skin(s) files to be able to use this? Forgive me, I'm very new to b2evolution and using plugins.

32 Jun 14, 2008 19:36

Having scoured the whole of this thread I'm buggered if I can find where I wrote that, so I assume you're on about the other avatars plugin which is for pre-2.x.x versions

.... which raises the question, "what evo version are you running, and what version of this plugin are you running" ?

¥

33 Jun 14, 2008 20:10

Check the Readme.html in plugin folder if you are talking about Avatars plugin 2.x version.

Basically you should put the code for:
User and category avatars in posts loop,
Comment user avatars in comments loop,
Blog avatars in any place.

The exact location depends on skin you are going to use. Demo evopress skin is there just to give you an idea bout avatars location.

34 Jun 16, 2008 00:12

I probabely forget something to alter;
I could put a blog avatar and a categorie avatar.
I can not insert a user avater;
I end up with this error

Warning: fopen(/home/***/public_html/media/avatars/default/user/1.large.jpg) [function.fopen]: failed to open stream: No such file or directory in /home/***/public_html/plugins/avatars_plugin/_avatars.plugin.php on line 987

Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/plugins/avatars_plugin/_avatars.plugin.php:987) in /home/tfnet/public_html/inc/_core/_template.funcs.php on line 146

But since that is chinese to me, I've no idea where to start looking.

I can not remove the blogavator, nor the categorie avatar. I can only replace it with something else.

What is the reason for the minimum heigt of 48 px of the small avatar ?
I would need 26, can I alter the code myself or will something else break ?

You can have a look at the site here : http://www.tenderfeelings.net/colofon.php?tempskin=evopress

35 Jun 16, 2008 01:20

What is the reason for the minimum heigt of 48 px of the small avatar ?

The only reason is default image (the one with question sign) size, I think you can change it to whatever you want in plugin settings. You should resize the default image also.

About the error...
Seems like the plugin didn't create all necessarily folders for some reason.
http://www.tenderfeelings.net/media/avatars/default/

There should be user and post folders and default.jpg file.
Create missing folders manually, put the default avatar image and try again ;)

36 Jun 16, 2008 01:44

That was indeed the solution.
Was there a place in the readme that I had to read this ? that I had to take care of this ?
I can't remember that I have read it... (I unzipped the zip that you included)

Some strange behaviour :
I stared assigning avatars to all my users
When I click on save, I don't see the avatar, but the 'alt' txt.
When I upload the next avator (next user) the former becomes ok..
Nothing major, just a remark..

Once I assigned all avatars to users and categories,I'll start playing with them in my skin.

37 Jun 16, 2008 01:57

Was there a place in the readme that I had to read this ? that I had to take care of this ?

It supposed to be done automatically, but in your case some folders were skipped.

When I click on save, I don't see the avatar, but the 'alt' txt.

Yeah, this is another "layout bug" :( , you have to refresh the page.

38 Jun 16, 2008 02:02

Yeah, this is another "layout bug" :( , you have to refresh the page.

I found it out as soon as I uploaded the new avatar ;)

PS the benefit from a widget develloper who's mothertongue is not english, is that the widgets are automagicaly multilangual ready ;)

Keep up the wonderfull work!

40 Jun 18, 2008 17:31

hi there,
I'm trying to install this Avatar plugin (v2.0.1, from the link at the beginning of this thread) on a brand new b2evo (version: 2.4.2) but after clicking on Install, it just says:

The installation of the plugin failed.

I chmodded avatars_plugin and sub-directories at 0777, just to try, but it didn't helped.

Have you any idea why I can't install it? (I have just install other plugins without any problem)
Thanks in advance.
see you

41 Jun 19, 2008 02:48

sam2kb wrote:

Check the Readme.html in plugin folder if you are talking about Avatars plugin 2.x version.

Basically you should put the code for:
User and category avatars in posts loop,
Comment user avatars in comments loop,
Blog avatars in any place.

The exact location depends on skin you are going to use. Demo evopress skin is there just to give you an idea bout avatars location.

But what FILE in the skin?? posts.main.php??

I also don't understand what the difference is between the two 'function' strings.

AND does the function string go in a file and then the bits of code below go in another file?

I'm really lost, the readme isn't detailed enough for some of us.

42 Jun 19, 2008 03:12

Daethian2, name your skin and we will show you the file to edit.

Good luck

43 Jun 19, 2008 03:20

I built a new one based off evo camp.

I also can't find the upload box to actually upload an avatar to my profile.

44 Jun 19, 2008 03:25

hang on Afwas... I just found the installation folder with additional directions. I was looking at the readme.html thinking that was the directions. I may be able to get it now.

45 Jun 19, 2008 03:27

The posts loop is in posts.main.php, the loop starts here:

		while( $Item = & mainlist_get_item() )
		{	// For each blog post, do everything below up to the closing curly brace "}"
		?>


The comments loop is in _item_feedback.inc.php:

	while( $Comment = & $CommentList->get_next() )
	{	// Loop through comments:

Good luck

46 Jun 19, 2008 04:07

Well I screwed up one of the hacks I guess because my sidebar is gone and I have errors on my main page.

So can I only use large OR small, not both?

What's the difference between current user and current post?

47 Jun 19, 2008 04:24

You can use only small or both small and large, no way to use large only.

The easiest way to apply hacks ic copy prehacked files for b2evo-2.4.2

48 Jun 19, 2008 04:27

but I'm not using Evopress so what about those files?

49 Jun 19, 2008 04:29

sam2kb wrote:

You can use only small or both small and large, no way to use large only.

The easiest way to apply hacks ic copy prehacked files for b2evo-2.4.2

I just replaced the files I hacked with the prehacked and I still have errors.

50 Jun 19, 2008 04:30

you don't have to copy or use evopress skin. But you need all other files. Just copy all files except evopress skin

51 Jun 19, 2008 04:32

Can you give a link to your blog

54 Jun 19, 2008 04:45

I have sidebar_right and sidebar_left

55 Jun 19, 2008 04:48

I took evocamp and just altered the CSS file. That skin does not have sidebar.inc.php, it has the right and left files.

I have to go to bed so I guess I'll leave it messed up fro tonight and see if I can undo it all tomorrow.

56 Jun 19, 2008 04:48

You need the _sidebar.inc.php also.

Sub template [_sidebar.inc.php] not found.

58 Jun 19, 2008 19:12

Okay fixed the skin and am reloading the plugin in the order you give in the directions.

I still have some questions about implementation but I'll deal with that after work tonight.

Thanks Sam!

59 Jun 25, 2008 16:51

Hi sam

you know, I was going to include that and thought twice. Next time I'll just do it and it'll be there if needed.

We're using the Custom skin.

Where is the demo evopress skin?

Since you are using Custom skin, copy file _item_comment.inc.php from /skins/ to /skins/custom/ then open it and put comments avatar code from readme.html somewhere after

<!-- ========== START of a COMMENT/TB/PB ========== -->

Demo evopress skin is in avatars_plugin/installation/install_b2evo-2.4.2.zip skins/evopress/

60 Jun 25, 2008 17:21

sam2kb wrote:

Since you are using Custom skin, copy file _item_comment.inc.php from /skins/ to /skins/custom/ then open it and put comments avatar code from readme.html somewhere after

<!-- ========== START of a COMMENT/TB/PB ========== -->

hey sam. Thanks :)

So far, I located the skins/_item_comment.inc.php, made the copy over to skin/custom and placed this below code portion inside.

TO INCLUDE THE USER'S AVATAR OF THE CURRENT COMMENT USE:

    // Current comment avatar
    global $avatars_Plugin;
    if ( isset($avatars_Plugin, $Comment->author_user_ID) && ($avatar = $avatars_Plugin->get_avatar( 'user', $Comment )) !== NULL )
        {    echo $avatars_Plugin->get_avatar_display($avatar,
            // Style e.g. margin:5px
            '',
            // Before
            '<div style="float:right">',
            // After
            '</div>',
            // If No avatar and No default image found
            '<p>No avatar</p>' );
        }

The profile avatars appeared instantly within the comment box when I refreshed blog screen. That was very good! :)

BUT... all the comment text shifted 'center'. Yikes!

How can I get the test to remain left...while the avatar remains 'floatright'?

kat

61 Jun 25, 2008 17:27

Sam how do you switch between using the large or small avatar?

What is the purpose of the 'blog' avatar and how/where do you use it?

62 Jun 25, 2008 18:24

How can I get the test to remain left...while the avatar remains 'floatright'?

Actually you should put the code right after

<div class="bCommentText">


This should work, if not try playing with CSS.

63 Jun 25, 2008 18:32

Sam how do you switch between using the large or small avatar?

What is the purpose of the 'blog' avatar and how/where do you use it?

The large avatar is optional, you don't have to add it to every small one. And you can't see the large avatar if there is no small one uploaded.

If your blog is about cookies upload a cookie image in Blog avatar ;). In demo evopress skin shipped with this plugin the blog avatar is located on top of the sidebar, but you can put it in any place.

64 Jun 26, 2008 16:11

sam2kb wrote:

Hi sam

you know, I was going to include that and thought twice. Next time I'll just do it and it'll be there if needed.

We're using the Custom skin.

Since you are using Custom skin, copy file _item_comment.inc.php from /skins/ to /skins/custom/ then open it and put comments avatar code from readme.html somewhere after

<!-- ========== START of a COMMENT/TB/PB ========== -->

Demo evopress skin is in avatars_plugin/installation/install_b2evo-2.4.2.zip skins/evopress/

sam2kb wrote:

How can I get the test to remain left...while the avatar remains 'floatright'?

Actually you should put the code right after

<div class="bCommentText">


This should work, if not try playing with CSS.

I still had the problem of text in the comment box remaining centered in the Custom skin using this method. I fiddled with the css but came up with no answers but that's because I lack the know how.

BUT...in the natural pink skin the text remained right and the avatar left, as desired. For the moment, it looks great so I'll run with that. I'm planning on changing out the decor so the template and format are the only things I'm concerned with for the moment.

What I did was copy the _item_comment.inc.php from my Customs folder over to the Natural Pink since it already contained the comments avatar code from readme.html. And I suppose I could do that with any of the skins as well.

Thanks again, Sam. Your help was the missing element to getting our avatars to appear in member comment. Kudos to you!

Kat :D

65 Jun 26, 2008 17:52

sam2kb wrote:

Sam how do you switch between using the large or small avatar?

What is the purpose of the 'blog' avatar and how/where do you use it?

The large avatar is optional, you don't have to add it to every small one. And you can't see the large avatar if there is no small one uploaded.

If your blog is about cookies upload a cookie image in Blog avatar ;). In demo evopress skin shipped with this plugin the blog avatar is located on top of the sidebar, but you can put it in any place.

Okay so the Blog avatar is just an extra image you can put in the sidebar. Got that!

I can't seem to get two avatars uploaded, but if I am able to get two uploaded how do you pick which one to select? Is this only done in the code or is it an option per post?

I have one avatar working per post and in my comments so I've got that bit. It just seems maybe there is a feature here that I'm not grasping. I LOVE having the avatar btw... awesome feature!!

Are you working on something similiar that works by category? For example I often post my horoscope and there is an image I always use for those posts but I have to manually insert it. Okay well I WAS but I got smart and added it to my smilie toolbar but anyway... there are some other categories I would like to have a default image that overrides my avatar.

66 Jun 26, 2008 21:39

To marmalade kat
You can use modified _item_comment.inc.php with Natural pink skin :)

To Daethian2

I can't seem to get two avatars uploaded, but if I am able to get two uploaded how do you pick which one to select?

There are 2 Browse buttons one for large avatar and another one for small. Select the image either for large or small avatar or both together and click Save, that's it ;)

Are you working on something similar that works by category?

There is a category avatar, check the readme.html and demoskin. Open Blog settings->Categories and click Edit on "Horoscope", you'll see the category avatars section.

67 Jun 26, 2008 23:20

Sam, I know that postavatar is not yet in production.
Are you still thinking at an avatar per post ? or is that another game ?

68 Jun 27, 2008 00:22

I'm going to make a new release soon, with post avatars and maybe custom size for each avatar type.
Let's say user avatar - 60px, category avatar - 100px.

69 Jun 27, 2008 00:57

sam2kb wrote:

I'm going to make a new release soon, with post avatars and maybe custom size for each avatar type.
Let's say user avatar - 60px, category avatar - 100px.

just forsee (make it possible) that I will use a category avatar of 26px, a user avatar of 26px and a postavatar of 118px ;)
Belgian woman always have to be difficult ;)

70 Jun 27, 2008 01:23

sam2kb wrote:

To marmalade kat
You can use modified _item_comment.inc.php with Natural pink skin :)

Yup. I did. :yes:

Have a wonderful weekend. You desire it. You've been working over time here helping everyone. A pleasure to have you on forum. :D

71 Jun 28, 2008 00:35

Plugin updated :)

If you want to update installed plugin just upload these 4 files and locales folder if needed.

_avatars.plugin.php
_admin_area.php
_profile_area.php
Readme.html

72 Jun 28, 2008 04:47

Yah categories!! Sam this is such a killer plugin!

What I'm saying about the large/small thing is that I only see ONE avatar in the dashboard even though I uploaded a large and small. You can see in the screenshots that there is only one visible avatar. The one you see is the small avatar. Even after I uploaded the large avatar successfully and saved a second time, you still only see the small avatar.

http://foreverpurple.com/images/smallavatar.jpg
http://foreverpurple.com/images/largeavatar.jpg

73 Jun 28, 2008 05:37

Click on small image and you'll see the large one. How do you want to display 400x400 image ;)?

74 Jun 28, 2008 05:44

I thought maybe you could pick between the two when posting but I'm really happy with just having one :)

Can I put some extra padding around the user avatar by editing the css file??

75 Jun 28, 2008 05:50

Try .avatars_plugin_avatar_user{ xxx } in css or you can edit the user avatar code

// Style e.g. margin:5px
'padding:20px',
// Before
'<div style="float:right">',
// After
'</div>',

76 Jun 29, 2008 03:39

I have not looked into it, so if it is obvious, please forgive my ignorance.

Lets pretent I want this :
The posts have an avatar, and also a default avatar.
Would it make sence to you (it makes sence to me) that the default avatar of a post is the avatar of that category, and the default avatar of the category is the avatar of the blog.

If it holds no logic to you, I'll have to code it into my skin I guess.. If it would be logic to you, it would be awesome. Because that means that I can allways use the post-avatar and I will allways have a pic for a post.

77 Jun 29, 2008 03:58

Fixed one more bug, download the file again ;)

http://evocms-plugins.svn.sourceforge.net/viewvc/*checkout*/evocms-plugins/avatars_plugin/trunk/_avatars.plugin.php?revision=759

Do you mean if no post avatar found we display the category avatar, if there is no category avatar display the blog avatar?
I'll try to add this option.

78 Jun 29, 2008 04:02

sam2kb wrote:

Do you mean if no post avatar found we display the category avatar, if there is no category avatar display the blog avatar?
I'll try to add this option.

That's exactly what I meant.
You will become my next personal hero sam ;)
The place 'allmighty' is still for Yabba.

80 Jun 29, 2008 05:15

Is it correct that I only have 1 default image ?
And that that image is valid for users/blogs/categories/posts ?

Is it easy/possible to declare a different default image for all those things ?
like a 'default.jpg' in the subdir users/blogs/cats...
In my case, the default pic for users is 26px and the default pic for blog/categorie/post is 118px

81 Jun 29, 2008 06:08

Shame on me it's already implemented, but I didn't know about it :(

Put default.jpg image in any avatar type directory and it will be displayed as default image for this avatar type, if nothing found the main default image /avatars/default/default.jpg is displayed.

You have to update _avatars.plugin.php again

http://evocms-plugins.svn.sourceforge.net/viewvc/*checkout*/evocms-plugins/avatars_plugin/trunk/_avatars.plugin.php?revision=760

82 Jun 29, 2008 16:08

It's like something wierd is happening.
I hope you can reproduce it.

I'm playing with the post avatars.
my general default.jpg image is 26pxw and 26pxh
my post default.jpg image is 118pxw and 118pxh

When I look at it, it's perfect and ok
When I change an articles post-avatar, the general default.jpg is shown as 26px on 26px. Although the post default.jpg is still an 118px image on the server.
Even if I open it in a new browser, I got it wrong.

Very bizar..

83 Jun 29, 2008 17:55

And another nice feature would be : make it a selectable widget.
So I can place for example the blogavatar in any container I want.
Since I also use a container in the postloop, it would make sence to make it possible to choose the user/post avatar as well.

(You will regret that I found out about this widget ;) )

84 Jun 29, 2008 21:03

When I look at it, it's perfect and ok
When I change an articles post-avatar, the general default.jpg is shown as 26px on 26px. Although the post default.jpg is still an 118px image on the server.

Did you update _avatars.plugin.php to 760 revision? See the link above.

It's a good idea to add blog and user avatars as a widget, but how do you want to display category, post author and comment author avatars? You would have to create new containers in _item_comment.inc.php and _item_content.inc.php

85 Jun 29, 2008 21:22

sam2kb wrote:

Did you update _avatars.plugin.php to 760 revision? See the link above.

I did, and I did again... and now it works... so mothing must had been wrong with the upload/download... Whatever : it is fixed

sam2kb wrote:

It's a good idea to add blog and user avatars as a widget, but how do you want to display category, post author and comment author avatars? You would have to create new containers in _item_comment.inc.php and _item_content.inc.php

True : that is what I have done for my personnal skin..
For the moment the most 'urgent' is the selectable blogavatar.
I was just suggesting that you don't need to eliminate the others, because I can think of uses of them. Not for the default user per se, but for them who included containers in there postloop/ container loop.

And the other thing that would help my new skin a lot is that other thing I suggested :
If there is no postavatar -> pick the categoryavatar
If there is no categoryavatar -> pick the blogavatar
If there is no blogavatar -> pick the default avatar

86 Jun 30, 2008 06:04

And the other thing that would help my new skin a lot is that other thing I suggested :
If there is no postavatar -> pick the categoryavatar
If there is no categoryavatar -> pick the blogavatar
If there is no blogavatar -> pick the default avatar

Done! What title do you want for the plugin settings checkbox, I have no idea how to name this option ? :-/

The widget feature will be added in new release, I'm tired of this plugin :no:

87 Jun 30, 2008 19:26

sam2kb wrote:

What title do you want for the plugin settings checkbox, I have no idea how to name this option ?

pluginsettingscheckbox... no idea what you want to say with that.
As long as it works, that the only thing that concerns me ;)
Once I use it, I'll tell you how to name it..

I suppose you updated the download ?

sam2kb wrote:

The widget feature will be added in new release, I'm tired of this plugin

I love this plugin a LOT !!!
So keep the juice flowing...

88 Jun 30, 2008 19:34

I suppose you updated the download ?

I didn't, let me name the feature. I'll let you know

89 Jun 30, 2008 22:29

Ok, done. You can either get the file _avatars.plugin.php from svn or updated download.

I hope it has no bugs :)

90 Jul 01, 2008 21:31

What is the difference between a category image and a category avatar ?

91 Jul 01, 2008 21:34

Category default image
/avatars/default/category/default.jpg

Post default image
/avatars/default/post/default.jpg

Categoty avatar
/avatars/default/category/3.jpg

Post avatar
/avatars/default/post/2.jpg

92 Jul 05, 2008 04:02

is it correct that I miss the default image for a comment from a 'guest' ?

For the rest : WOW, I love this thing so mutch...;

93 Jul 05, 2008 04:19

Guest user don't have a User ID and the plugin just does to the next comment.
I wrote a simple code somewhere on forums which can insert different styles for comment authors.

94 Jul 05, 2008 04:31

I found it, add this code in _item_comment.inc.php next to the avatars code

if( empty($Comment->author_user_ID) )
{
   echo 'your default image for guests';
}

95 Jul 05, 2008 22:37

could gravatar be of any use for the guests ?
This is the code from the wordpress plugin

function gravatar($rating = false, $size = false, $default = false, $border = false) {
	global $comment;
	$out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($comment->comment_author_email);
	if($rating && $rating != '')
		$out .= "&amp;rating=".$rating;
	if($size && $size != '')
		$out .="&amp;size=".$size;
	if($default && $default != '')
		$out .= "&amp;default=".urlencode($default);
	if($border && $border != '')
		$out .= "&amp;border=".$border;
	echo $out;
}

http://en.gravatar.com/site/implement/wordpress

96 Jul 06, 2008 01:01

If you want to display the same avatar/image for all guests just use the code I wrote above.
If you want different images for guests you can use [url=http://wonderwinds.com/hackblog.php/2007/12/22/the-ultimate-visiglyphs-plugin]visiglyphs plugin[/url] because I don't think it's a good idea to make a guest avatars support.

There are 2 reasons for me: first is user avatars are pushing guests to register and get their own cool avatar, and I think it's really stupid to assign avatars to guest's email which can be changed and IP which is often dynamic.

97 Jul 06, 2008 01:22

I don't see the advantage for vysiglyphs... that are just random awfull pictures.

Using the gravatar that people signed on with on the gravatar website, was an advantage.
Pushing users to register is a nono for me. I don't have normal registered users.

It was just an idea..

98 Jul 06, 2008 02:33

Added gravatars support for guest comments, update _avatars.plugin.php

http://evocms-plugins.svn.sourceforge.net/viewvc/*checkout*/evocms-plugins/avatars_plugin/trunk/_avatars.plugin.php?revision=768

The Comment author's avatars code

// Comment author avatar
global $avatars_Plugin;
if ( isset($avatars_Plugin, $Comment->author_user_ID) && ($avatar = $avatars_Plugin->get_avatar( 'user', $Comment )) !== NULL )
	{    echo $avatars_Plugin->get_avatar_display($avatar,
		// Style e.g. margin:5px
		'',
		// Before
		'<div style="float:right">',
		// After
		'</div>',
		// If No avatar and No default image found
		'<p>No avatar</p>' );
	}
	elseif( empty($Comment->author_user_ID) )
	{
		gravatar( $Comment );
	}

99 Jul 08, 2008 05:32

Sam I too love this plug in so much!!! It is number two behind the 'quick upload'. I haven't even finished playing with it and here you have been working with Topanga to make it even better!!! <3

100 Jul 12, 2008 23:48

I just uploaded the latest version of this plugin, and I'm a little confused. How do I upload an avatar and attach it to a category?

101 Jul 12, 2008 23:56

If the plugin is properly installed you can upload

Blog avatar from Blog settings->General
Category avatar from Blog settings->Categories-> edit
Post avatar from Posts/Comments-> edit
User avatar from User's profile

102 Jul 13, 2008 02:56

I suspect then, other than uploading it and installing it, there's another step?

103 Jul 13, 2008 02:59

You changed all files, that had to be changed, you uploaded the standard dir in your media dir ?

Read the installation/installation.txt file again please, to verify you have not forgotten anything

104 Jul 13, 2008 04:08

Topanga wrote:

you uploaded the standard dir in your media dir ?

Read the installation/installation.txt file again please, to verify you have not forgotten anything

I just went over the installation.txt file. I've followed all the directions there, and now I can see the fields to upload avatars.

Now, what is "uploaded the standard dir in your media dir"? That's not in the installation.txt file. I uploaded the directory to the plugin directory, but I've not made any changes to a media directory.

105 Jul 13, 2008 04:12

cslepage wrote:

Now, what is "uploaded the standard dir in your media dir"? That's not in the installation.txt file. I uploaded the directory to the plugin directory, but I've not made any changes to a media directory.

You are right.
I rembered I had to do that manually, (but that was a prevous version)

If you can see the fields now, you can try to upload an avatar.
if that does not work, please come back.

106 Jul 13, 2008 04:16

It doesn't work, so I am back. :)

It certainly acts as if it is doing something, but no avatar is uploaded or attached to anything.

109 Jul 13, 2008 12:44

Ok, thanks for sorting this out.

110 Jul 13, 2008 13:30

Well, close, at least. I've figured out how to put a standard avatar next to each post, and how to change that standard avatar to something else. My uploaded avatars still don't appear for me. No biggie, and thank you for the assistance.

111 Jul 13, 2008 13:42

There is no "standard" avatar, you probably mean the default image, they appear when everything is working but no avatars uploaded/assigned

Can you post a link to where you see these images?

112 Jul 13, 2008 20:10

Not at the moment; I've removed the PHP for now.

Can you give me URLS of sites using the avatars? I'd be interested in seeing it work.

113 Jul 13, 2008 20:15

Use the demo evopress skin included in plugin

115 Jul 13, 2008 20:22

sam2kb wrote:

http://www.tenderfeelings.be/ big images next to each post are post avatars

the images next to the authors are avatars
the big images that are 'faded' are category avatars
the big image on the top right of each blog (every author has his own blog) are avatars..

the images next to the comments are avatars...

116 Jul 13, 2008 20:26

Interesting. If I install the demo skin, and tell my blog to use it, it shows my default avatar. I thought it wasn't showing category avatars, but I was wrong. The one category avatar I thought I changed is the same as the default avatar, and it won't change.

I like the way they look on the blog you recommended.

117 Jul 16, 2008 14:48

Hi, I finally got round to installing this. I can't get it working though, I'm not sure what I've done wrong. When I try an upload an avatar (large or small)
I get the following at the very top of the page:

Warning: fopen(/home/mA/public_html/marksblog/media/avatars/default/blog/4.jpg) [function.fopen]: failed to open stream: No such file or directory in /home/mA/public_html/marksblog/plugins/avatars_plugin/_avatars.plugin.php on line 1247

and then

Failed writing the small (or large) avatar.

Any ideas?

118 Jul 16, 2008 14:58

Make sure that this directory and all subdirs have 777 permissions /home/mA/public_html/marksblog/media/avatars/

119 Jul 16, 2008 15:06

I checked it and I hadn't done that, so I've changed permissions on that but it's still not working I get the same error, although I'm getting this aswell

Succesfully uploaded the image [reputation_highpos.gif].

so the image is now uploading, just not to the avatars?

120 Jul 16, 2008 15:17

Can you post a link to your blog?

122 Jul 16, 2008 15:20

BTW is PHP running in safe mode?

126 Jul 16, 2008 15:38

there's only default/default.jpg in the avatars folder in the zip. that's already on the online directory

What else should there be?

128 Jul 16, 2008 15:57

Yeah I downloaded it twice from the first post.

I created the directories, still got the same error though

129 Jul 16, 2008 16:00

Move those 4 directories from /media/avatars/ to /media/avatars/default/

130 Jul 16, 2008 16:07

Ah brilliant =D Seems to be working Ok now. Thanks a lot for the fast support!

131 Jul 16, 2008 16:10

No problem :)

I'm just wondering why your zip doesn't have those directories... :-/

132 Jul 16, 2008 16:17

I'm not sure :/

I've just double checked and they are actually in the zip file, just not in the extracted folder. very strange.

Also wanted to ask is it possible to make the small avatars upto 100x100 rather than 60x60?

133 Jul 16, 2008 16:22

60x60 is default size for small images, you can change sizes in plugin settings

from 10x10 to 300x300 for small images and
from 10x10 to 1024x1024 for large images

135 Jul 29, 2008 09:16

Plugin updated

Added Gravatars support, better plugin installer.
Don't forget to update the Comment Author code (see Readme.html)

Note: if you're already using SVN plugin version with gravatars feature you should update the Comment Author code before updating the plugin.

Good luck

136 Jul 29, 2008 18:24

I have no troubles with the previous version ;)
or is the next thing changed
When you create a new post, it does not show the post avatar thing;
I suppose it is not there, because you still have no clue what the post_ID will be.
Or is there a way to fix it ?

Fot the emoment I save my post as draft, and reopen it.

137 Jul 29, 2008 18:40

You don't have to update it if you feel comfortable with previous version. The main bad thing with old gravatars function is when you disable the plugin you'll get a PHP error about undefined function.

There is no way to guess the post id until you save the post, you can't link images to unsaved post also.

138 Aug 13, 2008 22:29

I think I made all of the hacks correctly & installed the plugin, but I only see a checkbox for "'hack to get user settings update to work'" in the user profile. Can someone tell me how do I get the box to actually upload the avatar(s)?

Thanks!

139 Aug 14, 2008 03:35

Did you reload plugins from Global settings -> Plugins install?

140 Aug 14, 2008 18:53

a remark : when you want to change the avatar, I have to do it in 2 steps.
first Ineed to cross the 'remove avater' and save and only then I can upload another one.
Is there a reason why I can not do it in 1 step ? (the answer YES is enough ;))

141 Aug 14, 2008 18:58

It's only 1 step for me at least for small avatars.

EDIT: and for large avatars too.

142 Aug 14, 2008 19:01

What does it tell when you save a new image?

143 Aug 14, 2008 20:00

it does not tell anything. it just does not work..
the old avatar remains

144 Aug 14, 2008 21:16

sam2kb wrote:

Did you reload plugins from Global settings -> Plugins install?

I tried reloading, but it said "Plugins have not changed."
I also tried disabling and then enabling and deleting & installing again, but all I can get is that line about hacking with a checkbox

145 Aug 14, 2008 21:54

To Topanga:
Are you using the latest version? I can add debug messages to upload function and we'll try to find out why it doesn't work for you.

To skoehn:
Can you make sure that all hacks are properly installed.
What admin skin are you using, is javascript disabled?
Can you give a link to the site?

146 Aug 14, 2008 22:05

I just uploaded the latest version.. and now it works...
Thx!

a suggestion : how difficult would it be to make the dimensions 'absolute', instead of 'maximum' ?
ie : I want avatars from 118 to 118... a square.
if I upload a picture that is 125 to 125 thats perfectly resized to 118 to 118.
But if I upload something that is 100 to 100 it would be nice (in my case) to have it blown up to 118 to 118

147 Aug 14, 2008 22:17

It is possible but I don't have time for it right now.
I also want to update jQuery libraries to the current version and maybe add some more visitors avatars services.

148 Aug 14, 2008 22:20

sam2kb wrote:

It is possible but I don't have time for it right now.
I also want to update jQuery libraries to the current version and maybe add some more visitors avatars services.

I understand completely! ;)
no worries...
The only thing I do is give suggestions and use it
You have to do the hard work of thinking and coding...

149 Aug 15, 2008 11:52

Topanga, here's a quick hack to allow image upscaling

In resources/functions/_image.funcs.php edit the line 187 to

if ( $resize_mode === 'exact' )

150 Aug 16, 2008 00:08

it was build in allready ;)
you know my secret wishes ;)

151 Aug 18, 2008 22:00

To skoehn:
Can you make sure that all hacks are properly installed.
What admin skin are you using, is javascript disabled?
Can you give a link to the site?[/quote]

I deleted the plugin & tried uploading the files, then reinstalled, and I'm getting the same result. The admin skin I'm using is Chicago. I have javascript enabled in my browser, but do I need to have in somehow enabled in b2evolution?

The main blog I am using is http://blogs.tulsalibrary.org:8080/b2evolution/index.php/service/

153 Aug 19, 2008 17:20

sam2kb wrote:

Do you see the avatars upload form on this page http://blogs.tulsalibrary.org:8080/b2evolution/index.php/service/?disp=profile ?

If you don't see it you should extract pre-hacked files from installation/install_b2evo-2.4.2.zip and upload them to the server in appropriate directories.

I realized I had uploaded the hacked files in the wrong place. Getting them into the appropriate folders inside the "blogs" folder did the trick.

Thanks for your help!!!

154 Aug 20, 2008 16:09

If I use this:


							if ( isset($avatars_Plugin) )
							{    // Avatars plugin is enabled
								echo $avatars_Plugin->get_avatar_display( array(
										'type' => 'blog',
										'name' => '5'
									),
									'', /* Style */
									'', /* Before */
									'', /* After */
									'' /* None */
								);
							}

I get this error:


Notice: Undefined index: skin in /home/***/public_html/plugins/avatars_plugin/_avatars.plugin.php on line 651

Not sure if I did it correctly, but if I use the 'longer' version it works fine (I prefer the shorter version tho). Live sample here: http://gameshogun.ws/ (without the shorter version)

Question #2: Is there a way to put a code that will auto-fallback if there are no avatar set?

In this priority: Blog > Category > Post > Default '?' image

As an additional, is there a way to make it so that if the post is in 'the blog where it is posted', it will go directly to: Category > Post > Default '?' image.

UPDATE:
3rd Question: Any way to make it accept .png ?? ^_^

Thank you very much!!

Best Regards

155 Aug 21, 2008 05:14

Try your 'shorter' version with this revision

http://evocms-plugins.svn.sourceforge.net/viewvc/evocms-plugins/avatars_plugin/trunk/_avatars.plugin.php?revision=808

Is there a way to put a code that will auto-fallback if there are no avatar set?

It's not possible now.

3rd Question: Any way to make it accept .png ?

It works perfect with .png

156 Aug 21, 2008 08:23

Hi again.

Thanks for the reply ^_^ Will try the revision in a few (just got back home, still preparing food hehe).

For the .png, when I try to upload .png (or .gif), the image is re-saved as .jpg making the transparency turn into black. Hmm, did I missed something in the setup?

---
New question or probably suggestion.

Maybe _avatars.plugin.php can point to /root/rsc/js/jquery.js or jquery.min.js instead of having own jquery file? Easier to update jquery ;)

And, I'm going to add some jquery plugins which will use the latest version, will there be a conflict or something if two jquery's are called, one via the skin and another via the avatars plugin?

Thanks thanks. :D

PS
I updated jsquery lightbox by balupton included in the avatars plugin folder to the latest... seems to be ok.

157 Aug 21, 2008 15:13

For the .png, when I try to upload .png (or .gif), the image is re-saved as .jpg

I'll add this feature in next release.

You're absolutely right about jQuery, feel free to play with it and upload to SVN or pm me ;)
The only reason why it's not updated yet is my poor javascript knowledge.

158 Aug 21, 2008 16:03

sam2kb wrote:

For the .png, when I try to upload .png (or .gif), the image is re-saved as .jpg

I'll add this feature in next release.

You're absolutely right about jQuery, feel free to play with it and upload to SVN or pm me ;)
The only reason why it's not updated yet is my poor javascript knowledge.

Cool ^_^

- My JS is as good as yours or lesser :p People tend to forget things if they dont use it... so lol. rely on 'shortcuts' if you will hehehe like jQuery.

I'll do some further tests first, I'm not confident yet with the update, might have missed something. ^_^

159 Sep 20, 2008 01:17

Sam : any idea if I can use the upgrade files to 2.4.2 -> 2.4.5 as such without loosing your avatar plugin thing ?

160 Sep 20, 2008 03:26

Topanga, you can safely upgrade to 2.4.5.

161 Sep 28, 2008 19:41

Seems I´m having some troubles on getting gravatars working...

I installed (on my local testing-environment) b2evo 2.4.5 and after that I installed your plugin using the demoskin and the b2evo-files from the installation-folder.

I have a registered avatar at gravator.com but it doesn´t show up, there´s just a question mark instead of a picture. Wondering why?

Is there a way to get only gravatars working - I won´t need anything else.

Cheers,
Joshua

162 Sep 29, 2008 02:05

The question mark is a default image.
Gravatars work in comments only, post a comment and you'll see your gravatar.

163 Oct 04, 2008 03:06

I installed the plugins, followed the installation.txt
Uploaded all the files
Chmod 755 to all the new script files uploaded
Chmod 777 to the avatars folder
Reloaded the plugin / even removed / reinstalled the plugin

Created new blogs / users

I still cannot see my avatar after uploading it. It shows a "?". I modified my skin to display the avatar and I see a "?". I see the avatars I uploaded are in the media/avatars/default/blog and also in media/avatars/default/user Uploading shows successful profile updates messages.

Please help. Did I miss something?

blog is at http://redhotbrides.com/blog Go ahead and register for a new user and create a blog. I turned off email notifications to its easy to get a new blog going immediately.

164 Oct 04, 2008 03:15

tommyg3355 wrote:

I installed the plugins, followed the installation.txt
Uploaded all the files
Chmod 755 to all the new script files uploaded
Chmod 777 to the avatars folder
Reloaded the plugin / even removed / reinstalled the plugin

Created new blogs / users

I still cannot see my avatar after uploading it. It shows a "?". I modified my skin to display the avatar and I see a "?". I see the avatars I uploaded are in the media/avatars/default/blog and also in media/avatars/default/user Uploading shows successful profile updates messages.

Please help. Did I miss something?

blog is at http://redhotbrides.com/blog Go ahead and register for a new user and create a blog. I turned off email notifications to its easy to get a new blog going immediately.

,just taking my chance ;

i believe you have inserted small avatars to display in your blog, but you have only uploaded a large one.. and i ve registered , it's fine for me (;

and shoot.. i ve clicked on create blog link by mistake, i just clicked it at the first sight, i thought it was the validaiton link :D sorry bout thtat , feel free to delete my blog..

http://i37.tinypic.com/nlctoj.jpg

165 Oct 04, 2008 03:19

please do not consider this as a double post, i just came in for my own problem but see that bloke s problem, posting this one so that sam2kb can see..

i am displaying small avatars everywhere in my blog, thus i want to remove the 'upload large avatar' thingy.. from everywhere, the blogs avatar, the user profile etc.. which lines am i supposed to remove

and oh btw, again; great plugin (:

166 Oct 04, 2008 03:20

It works for me too ;)

You probably forgot to add avatars code in skin. Check the demo evopress skin included in plugin and Readme.html

167 Oct 04, 2008 03:21

Thanks so much. The Upload LARGE AVATAR does not work. Uploading the small avatar caused my avatar to show up right away! Fantastic! If the large avatar upload does not work, I like to know how to remove that as well.

168 Oct 04, 2008 03:24

tommyg3355 wrote:

Thanks so much. The Upload LARGE AVATAR does not work. Uploading the small avatar caused my avatar to show up right away! Fantastic! If the large avatar upload does not work, I like to know how to remove that as well.

it WORKS. but you have chosen to display small ones in your skin.

170 Oct 04, 2008 03:26

sam2kb wrote:

Large avatars work perfect, at least not worse than small ones :)

If you want to remove the input field edit _admin_area.php and _profile_area.php files.

<input name="avatar_large_file" id="avatar_large_file" type="file" />

i know i could dig it out but i was kinda tired, thanks for taking yer time to (:

171 Oct 04, 2008 03:36

it WORKS. but you have chosen to display small ones in your skin.

You can't display small avatars without large ones. If you upload the large avatar, the small one will be clickable. You have to edit the plugin to get rid of large avatars (of course you can also hide/delete the input field for large avatars)

172 Oct 04, 2008 05:12

When I upload a large avatar, the photo does not show up next to the box in the Avatars section, but when I upload a small one, it shows up right away.

I have not edit my skins yet to display these avatars. I'm referring right now to just seeing the avatars in the profile/admin area.

EDIT: So confused now. I uploaded a small one. It shows up. I upload a large avatar. It does not show up, but the small avator that is displaying, if I click on it, it blows up and shows the larger avatar I uploaded. This would certainly confuse my users if they try to upload a large avatar and sees nothing or if they upload 2 different photos for small/large and only see the small avatar 'preview'.

EDIT2: Which file should I edit to prevent users uploading a "blog avatar"? Until I make the interfaces more intuitive, having a "Profile avatar" and a "blog avatar" will be confusing for the users. I like to just use an user/author avatar

173 Oct 04, 2008 06:11

tommyg3355 wrote:

So confused now. I uploaded a small one. It shows up. I upload a large avatar. It does not show up, but the small avator that is displaying, if I click on it, it blows up and shows the larger avatar I uploaded.

This is the general idea , or is it :roll: ?

tommyg3355 wrote:

This would certainly confuse my users if they try to upload a large avatar and sees nothing or if they upload 2 different photos for small/large and only see the small avatar 'preview'.

i am with you there.
1.i mean do we have to upload them both seperately ? -i guess we do., this is the one.-
2.or does it resizes the large to be the small ? -that would do fine too.-
3.or the small to be large ? -now, that wouldnt look nice (:.-

174 Oct 04, 2008 06:17

In Readme.html, I'm using the:
"To include the CURRENT USER avatar use:" codes. It works great when I put it in my index.main.php in my skin folder.

I have my own custom php file in the main /blog folder which I tried to use the same code and it does not do anything.

In this file, I have the following:
<?php
require_once dirname(__FILE__).'/conf/_config2.php';

require_once $inc_path.'_main2.inc.php';

if( is_logged_in()) {

...

Can I use the codes in readme.html in the summary.php file also?

175 Oct 04, 2008 06:20

1. You have an option to upload the same image for large and small avatar and when you click the small (and the only visible in skin) avatar you'll see the same image with higher resolution and size.

Or 2.
You can upload two different images, one for small and another one for large avatar.

I don't see a problem here, instead it gives you 2 options.

176 Oct 04, 2008 06:21

Can I use the codes in readme.html in the summary.php file also?

You can try...

177 Oct 04, 2008 06:27

Its not intuitive for a user to know they must upload a SMALL avatar first to see something there. They see two boxes to upload. So maybe a fix is I need to put instructions for my users: "UPLOAD a small avatar first before you upload a large avatar"

I tried in summary.php already thats why I'm asking :)

178 Oct 04, 2008 06:31

sam2kb wrote:

1. You have an option to upload the same image for large and small avatar and when you click the small (and the only visible in skin) avatar you'll see the same image with higher resolution and size.

Or 2.
You can upload two different images, one for small and another one for large avatar.

I don't see a problem here, instead it gives you 2 options.

that's clear thanks.
sam2kb, how about having only one option (as it's used in facebook and almost everywhere) to upload an avatar, without an option to upload small/large, you will upload 1 avatar pic, let's say 550 x 520 , so that it will be the same image resized to 400x400 for the large and 50x50 for the small one (according to the default setup values) that would be more useful i believe, any other thoughts on this one ? dunno if it's doable though

179 Oct 04, 2008 06:41

I can make an option "Use one image for both avatars" or similar. And hide the second upload field if this option selected in settings.

180 Oct 04, 2008 06:43

sam2kb wrote:

I can make an option "Use one image for both avatars" or similar. And hide the second upload field if this option selected in settings.

cool. as it already resizes the small one, that comes down to what i asked for.thanks you sam2kb for the great and rapid support (:

181 Oct 04, 2008 06:55

tilqicom wrote:

sam2kb wrote:

Large avatars work perfect, at least not worse than small ones :)

If you want to remove the input field edit _admin_area.php and _profile_area.php files.

<input name="avatar_large_file" id="avatar_large_file" type="file" />

i know i could dig it out but i was kinda tired, thanks for taking yer time to (:

I tried this. I took out the whole line. The input field is still there ... I even tried removing the whole <div> large avatar codes stuff </div> in both files. I cleared out my IE cache and it was still showing .. Did you see my question above about removing the "blog avatar"

182 Oct 04, 2008 07:11

To remove avatars upload form for blogs and categories put this code at the very top of _admin_area.php

if( $admin_area == 'blog' || $admin_area == 'category' )
     return;

To add user avatars in summary.php change the code to

// Current user avatar
global $Plugins, $current_User;
$avatars_Plugin = & $Plugins->get_by_code( 'avatars' );
if ( isset($avatars_Plugin, $current_User) && ($avatar = $avatars_Plugin->get_avatar( 'user', $current_User )) !== NULL )
	{    echo $avatars_Plugin->get_avatar_display($avatar,
		// Style e.g. margin:5px
		'',
		// Before
		'<div style="float:right">',
		// After
		'</div>',
		// No avatar
		'<p>No avatar</p>' );
	}

If it won't work try to add 2 more lines

load_class('plugins/model/_plugins.class.php');
$Plugins = & new Plugins();

// Current user avatar
global$current_User;
$avatars_Plugin = & $Plugins->get_by_code( 'avatars' );
//etc.

183 Oct 04, 2008 07:35

Above did not work for both the blog avatar and the summary.php

Just want to make sure, blog avatars is located when you click on Blog Settings, and its on the General page at the bottom

184 Oct 04, 2008 07:57

To fix the summary change

$Plugins->get_by_code( 'avatars' );


to

$Plugins->get_by_code( 'evo_avatars' );

The upload form hack works for me, make sure you put it in right place in _admin_area.php

/* * @copyright (c) 2006-2007 Benjamin "balupton" Lupton {@link http://www.balupton.com}
 * @copyright (c) 2008 by Russian b2evolution - {@link http://ru.b2evo.net/}
 *
 * @license GNU General Public License 2 (GPL) - {@link http://www.opensource.org/licenses/gpl-license.php}
 */

global $baseurl;

if( $admin_area == 'blog' || $admin_area == 'category' )
     return;
?>

<div id="<?php echo $this->code; ?>_area">

185 Oct 04, 2008 08:30

The summary.php works now. I can run with it in trying to extract the userID from the blogID.

The _admin_area.php is still not working. Initially I had the very top

<?php

if( $admin_area == 'blog' || $admin_area == 'category' )
return;
...

but I moved it down as suggested in your last post .. still does not work

186 Oct 04, 2008 10:17

tilqicom wrote:

i am displaying small avatars everywhere in my blog, thus i want to remove the 'upload large avatar' thingy.. from everywhere, the blogs avatar, the user profile etc.. which lines am i supposed to remove

It's normal that you display small avatars... it's only the small avatar that will get displayed.
it's just .. sometimes, you can add a big one to it, so if you click on the small one, you can see in a sort of popup thing the big one...
you don't want the posibility to to that either ?

187 Oct 04, 2008 10:43

Topanga wrote:

tilqicom wrote:

i am displaying small avatars everywhere in my blog, thus i want to remove the 'upload large avatar' thingy.. from everywhere, the blogs avatar, the user profile etc.. which lines am i supposed to remove

It's normal that you display small avatars... it's only the small avatar that will get displayed.
it's just .. sometimes, you can add a big one to it, so if you click on the small one, you can see in a sort of popup thing the big one...
you don't want the posibility to to that either ?

yeah i'm aware of that, but i had the chance to meet some users ignoring that possibilty, uploading their large avatar and complain about their avatars not being displayed and yes, thus i wanted to remove the large field

188 Oct 04, 2008 13:16

tilqicom wrote:

yeah i'm aware of that, but i had the chance to meet some users ignoring that possibilty, uploading their large avatar and complain about their avatars not being displayed and yes, thus i wanted to remove the large field

oh users....
ok I hear ya.. it's a pitty, but I see your point

189 Oct 04, 2008 14:52

The _admin_area.php is still not working. Initially I had the very top

Edit the following code starting on line 1856 in _avatars.plugin.php

// Find out if this event applies for our current area
switch ( $admin_area )
{
	case 'blog':
		return NULL;
		break;
		
	case 'post':
		break;
		
	case 'category':
		return NULL;
		break;
	
	case 'user':
		$this->do_form_request();
		if( $this->do_form_request_ran )
		{	// We do not need this if the form ran
			return NULL;
			break;
		}
		break;
}

190 Oct 04, 2008 15:09

Can i choose the avatar i can put in the posts? If I want an custom avatar where will i upload it? And what do i need to edit?

191 Oct 04, 2008 15:46

mhico008 wrote:

Can i choose the avatar i can put in the posts? If I want an custom avatar where will i upload it? And what do i need to edit?

those are what INTROduction & README's are for.

first post wrote:

The Avatars Plugin allows you to attach avatars (display pictures, gravatars, profile pics, etc) to a user, blog, post and category. You upload avatars within the b2evo administration

Demo skin (evopress), modified files for b2evo-2.4.2, installation and usage instructions are included.

192 Oct 04, 2008 15:51

original statement you wanted at top still there:
if( $admin_area == 'blog' || $admin_area == 'category' )
return;

..
I modified lines 1856+ and still have the

// Find out if this event applies for our current area
switch ( $admin_area )
{
case 'blog':
return NULL;
break;

case 'post':
break;

case 'category':
return NULL;
break;
case 'user':
$this->do_form_request();
if( $this->do_form_request_ran )
{ // We do not need this if the form ran
return NULL;
break;
}
break;
}

The Upload Large avatar still there :( I modified plugins/_admin_area and plugins/_profile_area.php and deleted the entire <div>large avatars stuff</div> section.

193 Oct 04, 2008 18:29

so i will put this in the plugin directory?

194 Oct 04, 2008 23:50

The Upload Large avatar still there

Can you pm me FTP login/pass for your blog?

195 Oct 05, 2008 17:47

excuse me i already installed the plug-in but i can't find it anywhere in my blog.

196 Oct 05, 2008 17:51

If it's installed (including all file modifications) you should see the upload form in user profile page, Blog settings > Global, post edit page, categories edit page.

If you don't see avatars upload form please read installation.txt in avatars_plugin/installation directory

198 Oct 07, 2008 05:42

Well i installed it successfully. Uploaded pics for the posts but i can't see the uploaded pic in my actual blog. I can only see the avatar in the post in my back office.


Please read the readme.html in plugin directory. You have to add avatars code in skin.

200 Oct 07, 2008 14:05

can you please put where will i do the changes. The readme don't tell me the exact place to change.

201 Oct 07, 2008 15:49

This is why the demo evopress skin is included in plugin ;)

202 Oct 07, 2008 16:03

well i want to use this plugin on evocamp skin or other skins. Anyways thnx for always helping sam ^^

203 Oct 07, 2008 16:47

Demo skin is only needed to check how avatars work and to get some ideas on how to use avatars code in skin.

204 Oct 07, 2008 16:52

hhhmm.. Ok let's say that i used the demo skin. How or where will i see the avatar codes in skin?

205 Oct 07, 2008 17:53

1. Open Readme.html
2. Choose the avatar type you want to display (blog, post, category, user, comment author).
3. Let's say you choose POST avatars, and you see the following

Put this code in posts loop, usually in index.main.php or posts.main.php or single.main.php

4. Open the skin you're using and try to find one of the files listed above.
5. In Evocamp open these files posts.main.php and single.main.php ( you don't need index.main.php )
6. In these files find the following code and put the POST avatars code somewhere between opening and closing curly braces

// Display message if no post:
display_if_empty();

while( $Item = & mainlist_get_item() )
{	// For each blog post, do everything below up to the closing curly brace "}"

206 Oct 08, 2008 04:28

aahh ok ok ^_^. I will try this. so how do i now if i don't need to change anything in the index_main.php ?

207 Oct 08, 2008 04:34

I know it and tell you ;). You can also read docs if you want.
Avatars plugin doesn't work right out of the box, you must have at least basic software knowledge.

208 Oct 08, 2008 12:42

hhmm. ok i will go with using the demo skin then try to do little experiments ^^

209 Oct 08, 2008 15:09

Ok sam i made it to be in the evo camp. But the avatar is not seen, I already uploaded avatars for my posts but when i look it in my blog it's question mark.

See my blog.

www.animedepot.site50.net

210 Oct 08, 2008 19:22

The question picture is a good sign. It means the plugin is working and you just have to upload avatars.

Click "Edit" on any post and you'll see avatars upload form at the bottom.

211 Oct 08, 2008 21:14

sam2kb wrote:

The question mark is a default image.
Gravatars work in comments only, post a comment and you'll see your gravatar.

I am sorry coming back to this one: I cant see any gravatar in my comments. Taking a look at the site´s source code tells me there´s not even an attempt to connect to gravatar.com. Did I miss something?

212 Oct 08, 2008 21:32

Can you post a link to your site?

213 Oct 08, 2008 21:55

sam2kb wrote:

Can you post a link to your site?

It works now - I am the one being dumb a little bit... ,-)
I was wondering why _my own_ gravatar was not shown - but I am a registered user on my own blog, so for registered users the plugin doesn´t show gravatars but only _local installed_ avatars.

Anyway, if you wanna have a look (it´s german....):
http://j-sys.de

Thx and sorry for requesting twice without thinking first... ;-)

214 Oct 08, 2008 22:18

but I am a registered user on my own blog, so for registered users the plugin doesn't show gravatars but only _local installed_ avatars.

That's right. Good luck :)

215 Oct 09, 2008 12:46

sam2kb wrote:

The question picture is a good sign. It means the plugin is working and you just have to upload avatars.

Click "Edit" on any post and you'll see avatars upload form at the bottom.

Well the truth is i already uploaded avatars in all of my post. Whenever i click edit on each post the avatar is already seen. All the avatars uploaded are seen in my boxoffice but can't be seen in the blog itself.

216 Oct 09, 2008 15:23

Seems like you copied category avatars code instead of post avatars.

<img class="avatars_plugin_avatar avatars_plugin_avatar_category" src="http://www.animedepot.site50.net/media/avatars/default/default.jpg" title="Crystal Blaze" alt="Crystal Blaze" />

217 Oct 09, 2008 15:40

Ok Ok got it working now ^^

218 Oct 09, 2008 15:42

Sam can you please put the code for the author avatar here. Well the readme is full of span span and something.

219 Oct 09, 2008 15:47

Do you open Readme.html in text editor? Open it in browser.

// Post author avatar
global $avatars_Plugin;
if ( isset($avatars_Plugin) && ($avatar = $avatars_Plugin->get_avatar( 'user', $Item )) !== NULL )
    {    echo $avatars_Plugin->get_avatar_display($avatar,
        // Style e.g. margin:5px
        '',
        // Before
        '<div style="float:right">',
        // After
        '</div>',
        // No avatar
        '<p>No avatar</p>' );
    }

220 Oct 09, 2008 15:58

ok i already successfully put it. Now can i ask a question again? Can't i put .gif images in there? Well i just uploaded an animated avatar but it doesn't move T_T

221 Oct 09, 2008 16:01

Well i just uploaded an animated avatar but it doesn't move T_T

You can upload GIF images but they will be converted to static JPG

222 Oct 09, 2008 16:14

aahh. Is there any wau to preserve the being as a .gif image?

223 Oct 09, 2008 16:17

In next version only. But I think they become static after resizing anyway.

224 Oct 09, 2008 16:21

aahh. ok ok.. thnx thnx anyways

225 Oct 09, 2008 20:09

Sam,
I upgraded to the new version of avatars but I don't see the place to upload the avatars in the back end. I am not sure what file I need to be editing to make this show up in the back end again.

My avatars are all still there but I want to change some.

Also if I try to change them manually I am not able and I am not able to edit the permissions on the folders.

226 Oct 09, 2008 21:44

I don't see the place to upload the avatars in the back end.

Did you change any plugin file? The upload form is always on unless you deleted some code.

Also if I try to change them manually I am not able and I am not able to edit the permissions on the folders.

Seems like you don't have write permissions on server-created files. You should ask server admin since I don't know much about it.

227 Oct 09, 2008 23:11

I didn't change them but when I upgraded my software I lost that function. I forgot about it until today.

I have permission to chmod, I've done so before. I can't even upload a file to the media/avatars directory right now. I'll try it again when I get home with a different FTP program.

228 Oct 11, 2008 19:49

Me once again, having found some kinda bug in either your or the thumbnail_plugin.

I have installed thumbnail_plugin, which generates thumbnails of uploaded pictures and uses the lightbox function to resize them onClick. Before I installed avatars_plugin, the original-image was show in a lightbox with image-title below the image and a close-button on the right side of the image.

After installing avatars_plugin the lightbox-image comes up showing neither a title nor a close-button. If you hover the mouse over the image, the lightbox slides down a bit saying "Untitled"; if you hover this "Untitled" with your mouse, it slides down a little bit more showing a close-button.

Just have a look at it:
http://j-sys.de - just click on any image within any of the posts.

My conclusion: both plugins do interfer with each other in a way that someone (like me *g*) may not like that much. ;-)

I can reproduce this "bug" on my local XAMPP; after uninstalling avatars_plugin the "normal" function of thumbnail_plugin comes back immediately.

As I dont wanna lose any of these plugins, perhaps someone can gimme a hint which part of which code has to be changed?
I already fooled around a bit with the setting and also with the code itself but only thing I achieved was making it worse than before....

Thx a lot!

Cheers,
Joshua

229 Oct 11, 2008 20:47

Both plugins use bad method of including javascript in page header. I'll try to fix it.

230 Oct 11, 2008 23:28

sam2kb wrote:

Both plugins use bad method of including javascript in page header. I'll try to fix it.

Great! Thank you!

Cheers,
Joshua

231 Oct 13, 2008 07:29

Plugin updated

* Plugin switched to standard Lightbox libraries
* Lightbox works in backoffice
* Fixed compatibility issues with jQuery Lightbox plugin
* Improved and simplified skin tags

232 Oct 13, 2008 07:38

To Joshua,

You can safely remove the following function from Thumbnail plugin and select "lightbox" option. It will use avatars lightbox libraries automatically.

function SkinBeginHtmlHead(&$params) {
	if ($this->Settings->get('lightbox_installed') == 0 && $this->Settings->get('original') == 'lightbox') {
		echo '<script type="text/javascript" src="' . $this->get_plugin_url() . 'js/prototype.js"></script>
		<script type="text/javascript" src="' . $this->get_plugin_url() . 'js/scriptaculous.js?load=effects"></script>
		<script type="text/javascript" src="' . $this->get_plugin_url() . 'js/lightbox.js"></script>
		<link rel="stylesheet" href="' . $this->get_plugin_url() . 'css/lightbox.css" type="text/css" media="screen" />';
	}
}

233 Oct 13, 2008 07:55

Thx@sam2kb!
I will test on my local environment.
Should I also update the plugin to latest version?

There is on more "bug" occured:
I downloaded all folders from my webspace and exported my database using phpmyadmin in first order to have an actual backup of my webproject.
After download finished I imported the database to my local XAMPP und copied the files to a local directory to have a local version of my website running.

So far, so good - but if I uninstall the avatars plugin from this local installation, the thumbnail function itself don´t work anymore, that means all images within the postings are displayes in full size and no longer as thumbnails! This problem don´t occur on a fresh but only on my "live"-installation. Any ideas?

I will check back later to this post giving some feedback if removing these lines from the code solved my problem. Thx so far, great work!

Cheers,
Joshua

234 Oct 13, 2008 08:06

Should I also update the plugin to latest version?

Yes

So far, so good - but if I uninstall the avatars plugin from this local installation, the thumbnail function itself don´t work anymore

The Thumbnail lightbox will work only when Avatars plugin is enabled (if you deleted it's own js code). So you may want to comment the above code out and if/when you uninstall Avatars you can restore the code and use Thumbnail lightbox.

235 Oct 13, 2008 08:16

sam2kb wrote:

To Joshua,

You can safely remove the following function from Thumbnail plugin and select "lightbox" option. It will use avatars lightbox libraries automatically.

function SkinBeginHtmlHead(&$params) {
	if ($this->Settings->get('lightbox_installed') == 0 && $this->Settings->get('original') == 'lightbox') {
		echo '<script type="text/javascript" src="' . $this->get_plugin_url() . 'js/prototype.js"></script>
		<script type="text/javascript" src="' . $this->get_plugin_url() . 'js/scriptaculous.js?load=effects"></script>
		<script type="text/javascript" src="' . $this->get_plugin_url() . 'js/lightbox.js"></script>
		<link rel="stylesheet" href="' . $this->get_plugin_url() . 'css/lightbox.css" type="text/css" media="screen" />';
	}
}

Hmm, don´t change anything if I just remove these lines from _thumbnail_plugin.php, same behavior in lightbox (showing "Untitled" an so on), regardless of clicking "use lightbox-plugin" in config-dialogue of thumbnail_plugin or changing any other values.

Cheers,
Joshua

236 Oct 13, 2008 08:18

sam2kb wrote:

The Thumbnail lightbox will work only when Avatars plugin is enabled (if you deleted it's own js code). So you may want to comment the above code out and if/when you uninstall Avatars you can restore the code and use Thumbnail lightbox.

Uhh, some misunderstanding here - I did NOT do both, remove the code AND uninstall the avatars_plugin! ;-)

I just posted this behaviour as I don´t believe this to be a "normal" behaviour at all.

Cheers,
Joshua

237 Oct 13, 2008 08:26

I don't understand you.
Can you explain the problem again?

If you install the latest Avatars version and Thumbnail plugin with lightbox enabled you'll get errors. To get rid of errors you have to comment/delete the code I mentioned above.

238 Oct 13, 2008 08:42

sam2kb wrote:

I don't understand you.
Can you explain the problem again?

If you install the latest Avatars version and Thumbnail plugin with lightbox enabled you'll get errors. To get rid of errors you have to comment/delete the code I mentioned above.

Didn´t work in my case. :-(
I will give it another try this evening, I am at work right now and perhaps not that concentrated on what I´m doing as my phone keeps ringing and ringing and ringing.

Anyway, thx for your great support, I´ll check tonite.

Cheers,
Joshua

239 Oct 13, 2008 10:58

Back again. ;-)
After having answered several phone calls I could concentrate on updating avatars_plugin und editing thumbnail_plugin. What else should I say than: THANK YOU SO MUCH!

Not only the "bug" is fixed but now the lightbox shows no. of images on actual page giving the reader the possibility to switch between the images directly in the lightbox-popup. That´s awesome!

One small thing:
In the lightbox-popup it says "Image x of y" - I tried to change the source to make it say "Bild x von y" -what simply is the german translation of these words- but didn´t get it. Can you tell me where I can edit this?
Thx again!

Cheers,
Joshua

240 Oct 13, 2008 15:49

In the lightbox-popup it says "Image x of y" - I tried to change the source to make it say "Bild x von y"

Edit the following in _avatars.plugin.php on line 2287

imageLoading: \''.$plugins_url.'avatars_plugin/includes/jquerylightbox/images/lightbox-ico-loading.gif\',
imageBtnPrev: \''.$plugins_url.'avatars_plugin/includes/jquerylightbox/images/lightbox-btn-prev.gif\',
imageBtnNext: \''.$plugins_url.'avatars_plugin/includes/jquerylightbox/images/lightbox-btn-next.gif\',
imageBtnClose: \''.$plugins_url.'avatars_plugin/includes/jquerylightbox/images/lightbox-btn-close.gif\',
imageBlank: \''.$plugins_url.'avatars_plugin/includes/jquerylightbox/images/lightbox-blank.gif\',
txtImage: \'Bild\',
txtOf: \'von\',

Good luck

242 Oct 19, 2008 09:34

see, if i upload both small and large avatar for the category, when clicked on the small one, the lightbox comes up and it displays two (grouped) images, with next button..

i believe it displays the same image twice.. but that's for posts mode only..everything's fine in single post mode.
However it displays "all" of the category images in posts mode.
(note; i use only an index.main.php, dont use different handlers)

check the [url=http://www.tilqi.com/anasayfa.php#sozno43]same post on posts mode[/url] and
check the [url=http://www.tilqi.com/anasayfa.php/kisiler/v-w/walt-disney/walt-disney-eglence-beklenti]same post on single mode[/url] , click on that guy's picture in both modes -walt disney TMI- see the difference ?

243 Oct 19, 2008 18:21

Yea, it's true. Don't know if it's good or not, but I didn't find the way to disable grouping images. I don't like it also.

244 Oct 19, 2008 18:40

sam2kb wrote:

Yea, it's true. Don't know if it's good or not, but I didn't find the way to disable grouping images. I don't like it also.

i see ... :|i dont like it neither... i would understand if it showed all cat avatars grouped in both modes but i wonder why it does show properly (single) in single post mode, and grouped in posts mode ? i wonder what the difference is..nvm.. let me know if you ever find a solution to it, i will look into it myself too.. thanks for the response

245 Oct 19, 2008 18:47

It's grouping all images with rel="lightbox". In single post mode there's only one image.
I'm pretty sure Afwas knows how to fix it ;)

246 Oct 19, 2008 23:55

Plugin updated to v2.2.6

Fixed: large avatars were grouped in lightbox.

247 Oct 20, 2008 00:28

sam2kb wrote:

It's grouping all images with rel="lightbox". In single post mode there's only one image.
I'm pretty sure Afwas knows how to fix it ;)

The rel="lightbox" is not using (my) jQuery Lightbox plugin but the Lightbox plugin by Ian Lewis.
You're toiching a difficult point. I spent many evenings in getting the jQuery Lighbox plugin to group images within posts and succeeded in doing so.
I could relatively easy rewrite the jQuery Lightbox plugin to treat the avatar as a single image in all situations.

I'll see what I can do in a few days time.

Have fun

248 Oct 20, 2008 00:31

Thanks Afwas, I fixed it already. It doesn't group images any more.

249 Oct 20, 2008 02:38

sam2kb wrote:

Thanks Afwas, I fixed it already. It doesn't group images any more.

that would be 2.2.6 i believe.. thanks sam2kb for your effort..someone else might need that grouping, but it didnt seem reasonable to me.. i mean it was displaying the category avatar of which the other post is in and that doesnt belong to that post, it may be a 'feature' for someone else dunno.. anyway thanks for your effort again

250 Oct 20, 2008 04:02

Thanks for feedback, it wasn't a feature, but a bug after switching to the new lightbox libraries.

251 Oct 24, 2008 13:08

thanks for the update sam2kb, it's just working smoothly as expected

252 Nov 01, 2008 23:15

can i set different size settings for category avatar and user avatar? sorry if this has been asked before

253 Nov 01, 2008 23:51

tilqicom wrote:

can i set different size settings for category avatar and user avatar? sorry if this has been asked before

yes you can
just go to the plugin page, and there you see all the settings

254 Nov 02, 2008 03:43

Topanga wrote:

tilqicom wrote:

can i set different size settings for category avatar and user avatar? sorry if this has been asked before

yes you can
just go to the plugin page, and there you see all the settings

right, sorry.. pff, i ve so been there somehow i ve missed it , thanks.

255 Nov 03, 2008 22:57

Hey, great plugin, looking forward to using it. I was just testing it out though, and I must have made a mistake and I was hoping someone might have a clue as to why it's doing this to me. I am using the included skin, and I followed the instructions to the best of my knowledge, but it seems the function call for the "category" type picture is not being detected by the code, and so it pulls the default avatar for the main page, but then when you view a single post, it pulls that type of avatar perfectly. At first I thought it was due to an improper upload, but I can see the two images in the media/default/users/ directory (1.jpg and 1.large.jpg). I also tested it on another user to make sure, and it's doing the same. I appreciate your help.

Wes

256 Nov 04, 2008 01:01

Welcome to the forums.

Here's a hint, hover over the avatar image to check what type it is. It will display the category/blog/user/post/comment author name.

Can you post a link to your site also.

Good luck

257 Nov 04, 2008 18:33

sam2kb wrote:

Welcome to the forums.

Here's a hint, hover over the avatar image to check what type it is. It will display the category/blog/user/post/comment author name.

Can you post a link to your site also.

Good luck

Thanks for the info, didn't know to check that. It's pulling from the category image, but as I understand it, the script checks to see if I have a profile pic, if so it uses it, if not, it checks the catagory pic, if so it displays that, if not, it pulls the default. I'd post a link to the site, but it's intended to be a private site for my family and requires a login to view. At this point, I'm thinking of changing the setup anyhow. I've been playing with several ideas for implementation, and it's not like avatars break the deal, but a few other issues such as ease of posting within b2evo that concern me. It's a great system and I may consider it for other projects, but I'm not sure I should use it for my extended family with somewhat questionable user skills. Although, I probably should say too much, I can't even get the avatars to work... who am I? In any case, thanks for the advice.

Wes

258 Nov 05, 2008 17:51

Sam:

This plugin has an option to show subcategories?
Sometimes (well, most of the time actually), a post as 4, 5 subcategories. And it would be cool to show, at the end of the post, small icons (avatars set to, dunno, 20x20) of all the subcategories of the post.

It's possible? Thanks

259 Nov 05, 2008 18:24

sobrenada wrote:

Sam:

This plugin has an option to show subcategories?
Sometimes (well, most of the time actually), a post as 4, 5 subcategories. And it would be cool to show, at the end of the post, small icons (avatars set to, dunno, 20x20) of all the subcategories of the post.

It's possible? Thanks

actually i need this kinda thing, i use multiple subcats for each post too, but didnt want to bother you, as you seem to have your hands full already, i d love to see it happen though (;

261 Nov 20, 2008 21:10

Hi Sam,

Everything about your plugin works but i have one major problem that I am not sure how to fix or whose problem it actually is. Currently, I have to make a choice between the avatar plugin OR the youtube plugin because they will not work together. With the avatar plugin deactivated the youtube plugin works perfectly. However, with the avatar plugin activated I get a youtube button in the write pane but when you click on it nothing happens. No error message or anything. Have you come across this problem? Any possible fixes?

262 Nov 20, 2008 22:11

Hi sam2kb.

In summary.php, how can the summary display each blog's avatar? Would modifying the code you have for users do it regardless of whether running the summary.php routine as an independent file or from within a blog? :?:

Thanks.

263 Nov 21, 2008 03:26

@fugfuggy
I didn't check it with Youtube plugin, will do it tomorrow. Thanks for feedback.

@blogmeister
To display blog avatars in summary.php use the following code

$avatars_Plugin = & $Plugins->get_by_code( 'evo_avatars' );
    if ( is_object($avatars_Plugin) )
    {
        $avatars_Plugin->display_avatar( array(
                'type' => 'blog',
            ));
    }

264 Nov 21, 2008 05:25

Thanks for your reply, sam2kb.

I tried the code from your previous post in 2 applications:

1) in Summary.php - shows the 'default.jpg' for each blog.

2) summary code as a custom page - each blog in the results shows the avatar of the 'calling' blog so they're all the same. It doesn't call the 'default.jpg' avatar, so it's getting closer. :-/

Thanks.

265 Nov 22, 2008 04:19

@fugfuggy
Edit the following code starting on line 2298 in _avatars.plugin.php

})(jQuery)

var $ = jQuery.noConflict();
//]]>

The fix will be added in next release.

@blogmeister

I tried the code from your previous post in 2 applications:
1) in Summary.php - shows the 'default.jpg' for each blog.
2) summary code as a custom page - each blog in the results shows the avatar of the 'calling' blog so they're all the same. It doesn't call the 'default.jpg' avatar, so it's getting closer. Confused

You're right, it doesn't work. I didn't read your post carefully. I'll play with it on weekends.

266 Nov 25, 2008 05:48

Plugin updated
* Fixed compatibility issues with jQuery plugins
* Added demo summary.php with blog avatars

@blogmeister
Try the summary.php included in /installation/install_b2evo-2.4.5.zip

267 Nov 25, 2008 09:45

Thanks for your prompt response, sam2kb.

I just tried the summary.php file from that updated distro as well as replacing the avatar code in my custom page file. The result is the same as described in my previous thread -- not sure why.

I'll try to take a look at it again this evening. Maybe someone else will respond in the interim.

Thanks again.

268 Nov 25, 2008 16:51

Can you give a link to your blog?

269 Nov 25, 2008 19:46

Hi sam2kb.

FYI -
All I did was upload the summary.php file for the test. Was this enough or are there revisions in the plugin file that requires a full installation of the plugin?

I'll PM you the link if you still want it after reading this. Just let me know. The blog is not yet public since its still being configured.

Thanks.

270 Nov 25, 2008 19:48

You must update the plugin to v2.2.7 in order to use included summary.php

271 Nov 25, 2008 20:14

Cool beans!

Looks GREAT!

Thanks!

272 Dec 20, 2008 06:13

First off, great plugin. I'm looking for some help trying to get the post _author avatar image to line up with the rest of my blog using the glossyblue theme.

I tried to edit the style.css of the skin, but I think I have the syntax wrong. I tried puting this in my css file before the date:


.avatars_plugin_avatar_user {
 	width: 60px;
 	height: 60px;
 	float:left;

What I'm trying to do is place the avatar image just left of the date image.

any help would be greatly appreciated.

blog link: http://rogerover.com

273 Dec 23, 2008 03:29

Welcome to the forums.

You did everything right, but you should also reduce the width of .post-title to 350px and fix avatar image margins.

.avatars_plugin_avatar_user {
margin:0 10px 0 0 !important;
width: 60px;
height: 60px;
float:left
}

.post-title {
float: left;
margin-left: 10px;
width: 350px;
}

274 Dec 24, 2008 01:47

sam2kb wrote:

Welcome to the forums.

You did everything right, but you should also reduce the width of .post-title to 350px and fix avatar image margins.

.avatars_plugin_avatar_user {
margin:0 10px 0 0 !important;
width: 60px;
height: 60px;
float:left
}

.post-title {
float: left;
margin-left: 10px;
width: 350px;
}

Awesome thanks - that worked better than I planned.

275 Jan 25, 2009 19:06

I can't seem to diagnose where I've gone wrong in my install of 2.2.7. I have all the folders created and CHMODed properly. I've installed the plugin and adjusted the skin to display the avatar, and I can see the default avatar. I can also see the upload form on the individual user page. So far so good.

Problem 1) I can not edit the options such as "User avatar width". It is greyed out.

Problem 2) I can not upload an avatar via the user page. When I click 'Save' after selecting the image I get a blank admin.php page and the image is not uploaded to the server. However, if I manually FTP the avatar into media/avatars/default/user the image is properly displayed on the site.

I have uninstalled and reinstalled, I've done the hacks manually and uploaded the ones included in the package, and still cant get it working the way it should. Any other thoughts?

277 Jan 25, 2009 20:54

Thanks. I'll check with the host on that.

278 Mar 31, 2009 16:16

Hi sam!

First off: I just started installing and using this plugin and so far I really love it. There's just one minor thing that kinda bugs me ... gif or png with a transparent background are changed into .jpg with black background which looks ugly. For now I guess I'll just have to change the images I wanted to use so they look kinda neat enough in jpg with a custom background added to them, but I would really prefer being able to use gifs or png "properly".

I searched through this thread and this had been mentioned before and you mentioned you'd add it to the next release ... which was version 2.2.7 if I'm not mistaken?? Anyway. I'm using b2evo 2.4.6 and plugin version 2.2.7 and it converts everything to .jpg.

Any news on this matter?

279 Apr 06, 2009 06:29

Hi Amancham

Thank you for the feedback, I'll try to fix it.

280 Jun 06, 2009 17:51

Sam, have you had the time already to think of how you want avatars to be dealth ?
I know you don't want to extend the old program anymore, and I understand why.
Fact is that I have more then 4000 avatars (it was a nightjob yes ;)) and I don't want to loose them. The fact that you have the category avatars makes live even more colourful.

281 Jun 07, 2009 07:10

Topanga, this plugin has a very low priority in my todo list.

I'll make it 3.x compatible when we get a stable b2evo release.

282 Jun 07, 2009 09:20

Great !
The old avatars are not lost, that was my main concern.
I understand why it's a low priority, and I would even understand if you would not maintain it.
I was just worried about the old ones.

283 Jun 26, 2009 16:27

Hi Sam,

You're the man Sam, you are the man!!! Thanks .... it works ...

Just wondering .. what do I have to do to the code to make it so that anyone that registers on the site and uploads their avatar on their profile, when they post a message or comment on a post, that their avatar will appear? How do I actually upload avatar picture on my user profile or anyone that registers? Where is that option? I can only see the avatar part when I write a post. Please help.

Thanks again, you are the best mate ....

Sincerely,

David Ng...

284 Jun 26, 2009 19:09

No problem ;)

You should add a "comment author" avatar code to comments loop in _item_comment.inc.php
Check the readme for details.

285 Jun 29, 2009 04:04

Hi Sam,

I did just that, added the comments in that file, and the avatar appears, but it has question mark.....
The thing is when I log in as the test user account, where do i go to upload an avatar image so that whenever the test user writes a comment or a post, that the code will auto grab the avatar from his profile. I cant see anywhere in his profile or settings area to specify avatar, that option is only available in the Expert mode of editing or posting of posts.

Please asssist, your help is much appreciated.

Thank you.

Sincerely,
David Ng

286 Jun 29, 2009 21:39

Q: How do I upload avatars?

- Upload [u]post[/u] avatars from post edit tab e.g. admin.php?ctrl=items&action=edit&p=1

- Upload [u]post autor[/u], [u]user[/u], and [u]comment author[/u] avatars from user profile tab e.g. admin.php?ctrl=users&user_ID=1

- Upload [u]category[/u] avatars from category edit tab e.g. admin.php?blog=1&ctrl=chapters&cat_ID=1&action=edit

287 Jul 03, 2009 06:11

Hi Sam,

Sorry for the late response, I have been caught up at work.

I have gone to the profile tabs but there is no option to upload an avatar.
There is only one option to place check mark for that relates to avatar.

hack to get user settings update to work:

That is all, no option to browse for image and then upload.

What do I need to do? Can you please assist?

Thanks again.

Sincerely,

David Ng

288 Jul 03, 2009 07:14

Make sure Javascript is enabled in your browser. Also I think you have to use the default admin skin which is "chicago".
Try to view the page from another browser.

289 Aug 04, 2009 02:43

I can't seem to get this to work in 2.4.7 - maybe it doesn't quite work for that version? I can upload the avatar on post but it never displays, regardless of the skin used.

290 Aug 04, 2009 05:59

Did you do all required modifications?
Can you try the demo skin?

291 Aug 05, 2009 01:08

sam2kb wrote:

Did you do all required modifications?
Can you try the demo skin?

Sorry, I didn't do the mods...didn't see it mentioned in the OP. I'm not a PHP guy but seems easy enough except for hack 4.

None of the line #'s for any of the changes match up with the install description likely as a result of code changes since the guide was written but I have been able to figure the others out. On "hack 4", there are four (an omen perhaps? :lol) places the code referenced appears so I can't discern which one should be modified?

292 Aug 05, 2009 03:13

For hack 4 in _profile.inc.php edit the following

$Plugins->trigger_event( 'UserProfileUpdate' );

$ProfileForm->buttons( array( array( '', '', T_('Update'), 'SaveButton' ),
															array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );

293 Aug 05, 2009 04:06

Thanks. I actually figured out that it should go at the last one. When I looked at it from a programming perspective, that made the most sense. Still don't know PHP but now that I entered all the code manually, I got a feel for what each piece was doing. Thanks for the hard work and the help!

295 Aug 07, 2009 20:51

You will think 'she is there again' but I can not help myself but asking
'is there a change that 'donating' of 'paying' will help up the speed of the avatars in 3.3? ;)
I so hardly need to upgrade

296 Aug 07, 2009 20:57

I thought that it works in b2evo 3

297 Aug 07, 2009 20:58

I have not tried, since I need to make that many hacks.
And yabba told me that it would not work in 3.3... for that reason I have not even tried

299 Aug 07, 2009 23:01

The plugin works in b2evo 3.4 with default file hacks (from v2.4.5)
The only thing that doesn't work is user avatars upload form in backoffice. But you can use frontend profile upload form for now.

Anyway this can be easily fixed in one day, but I'll wait for a stable b2evo 3 release.

So go ahead and update your blogs to v3.4 without worries ;)

300 Aug 07, 2009 23:11

very strange..
then I have to consult yabba again to see why he advised me not to upgrade .
there was some image handling in 3.3 that was fighting with the Balupton-code
But at least I can have a trial setup

301 Aug 07, 2009 23:23

Yabba doesn't like that messy obsolete code from Avatars 1, I don't like it either.
I was going to recode the plugin to use some fast image processing class, but I have other priorities like 3 half-done mega plugins :)

302 Aug 07, 2009 23:29

I like all your plugins, so chanches are I will like those 3 also ;)
at least if it are general public plugins and not for custom clients

304 Aug 08, 2009 05:44

Hey guy, U did another great plugin! But I wonder if I could just use the Auther's avatars. How can i edit the code so that other avatars wouldn't display at backoff? I have already edit the skin that just view it, but don't know how to deal with the admin.php. I use 2.4.6.
Thx a lot.

305 Aug 08, 2009 06:01

Put this code at the very top of _admin_area.php

if( $admin_area != 'user' ) return;

306 Aug 08, 2009 20:03

ok, the reason Yabba gave me was : because the admin js will fail

I hope that makes sence to you, because the only thing that I do with things yabba is telling is 'believe it, don't try to understand it'

307 Aug 08, 2009 21:32

:) yeah, that's why the user avatars upload form doesn't work.

308 lxsparks Sep 17, 2009 21:14

lxsparks

At the weekend I upgraded to v.3.3.1 did the usual tweaks on various files including the hacks for the avatars plugin and then found that it's all gone tits up in the User profiles - avatars don't upload (although strangely it's appearing below the "Save/Reset/Restore" buttons.

Is the plugin no longer working for v.3 or have I messed the code when hacking?

I should also add that on the User Profile, everything from "Code Highlight" onwards looses its formatting in the display (no longer a white background or centred - using default skin). I've checked the placement of the hacked code and they all appear to be in the right place.

310 lxsparks Sep 17, 2009 21:55

lxsparks

sam2kb wrote:

lxsparks wrote:

Is the plugin no longer working for v.3 or have I messed the code when hacking?

http://forums.b2evolution.net//viewtopic.php?p=95028#95028 ;)

Erm... Am I meant to be looking at your post that states backend upload doesn't work for the moment but the frontend form does? In which case I am going to ask a really stupid question seeing I've been using this for years - what front end profile form?? 8|

Update: Oooooooooooh *doh* frontend as in the (evo?) bar at the top of the screen? Yes that works! :D I only ever use that bar to swop between blogs and admin.

311 Sep 17, 2009 23:01

Backoffice or backend or Control/Admin panel is a place where you edit b2evo settings, create blogs and posts etc...

So the backoffice [u]User avatar[/u] upload form does NOT work in b2evo 3.x. Everything else works just like in b2evo 2.x

Update: Oooooooooooh *doh* frontend as in the (evo?) bar at the top of the screen? Yes that works! Very Happy I only ever use that bar to swop between blogs and admin.

Evobar exists in both backend and frontend, and it has nothing to do with avatars.

312 Oct 13, 2009 04:13

Hi Sam,

I believe I've read through every comment and I haven't found anything that helps me out here. I hope you can help me figure this out.

I have everything working except when I try to upload a user avatar, when I click Save it sends me to a blank screen and the avatar doesn't get added to the user's profile. I can see in http://studentweb.newtrier.k12.il.us/~garneaum/media/avatars/_temp/ a bunch of files that have gotten to the _temp directory, but none of them are getting assigned to the user.

I did all the hacks, and the question mark avatar shows up when I tell it to, so I know the plugin is doing it's job.

I'm on 2.4.7 b2evo.
Thanks,
Marc

313 Oct 13, 2009 05:03

Make sure that all folders in media/avatars have permissions 777

Ask your server admin if PHP Safe Mode is enabled. If it is, I can't help you :(

314 Oct 13, 2009 13:23

Hi Sam,

Safe mode is off. I checked in my phpinfo.

All of my folders in media/avatars have permissions 777. Just double checked.

My blog is at http://studentweb.newtrier.k12.il.us/~garneaum/

Thanks for the speedy reply. How can I help you? What would be useful for you to know?

If you want to email me, I can grant you certain privileges that you might need. *****@nths.net

Thanks again!
Marc

315 Oct 13, 2009 23:38

That was in missing GD library

316 Jan 30, 2010 06:50

Thanks for the download, man.

I'll be testing it this weekend.

317 Feb 26, 2010 16:48

b2evo version: 3.3.3
Windows server 2003, IIS 6.0

I get the blank page whether I try to use a user avatar OR a post avatar.
Avatars uploaded on the 2. b2evo version I was using will still display, but I can't add new ones.

Is there anything other than file/folder permissions that would cause a blank page to result when I try to use the Avatar plugin? I have the avatars media folder set to read/write/execute (which I think is correct,) but I also know Windows might be making it misbehave.

Any help would be appreciated!

318 Feb 26, 2010 20:03

I've never installed Avatars plugin in b2evo 3. Many users reported compatibility issues though.

I'm really busy for the next couple weeks and most likely won't find time for this plugin.

319 Mar 01, 2010 00:41

@skoehn

maybe you went wrong somewhere while you upgraded to 3 from 2, did you redo the install instructions ?
i ve upgraded from 2.4.7 recently, and have just found time to upgrade my avatar plugin and it seems to work just fine.

@sam2kb

i have lost lightbox functionality displaying large avatar but not after 2 to 3 upgrade , i had lost it way back when i ve upgraded from 2.4.5 to 2.4.7.. Any idea why?

320 Mar 01, 2010 01:38

Try to disable all other plugins and see if avatars work

321 Mar 01, 2010 01:44

sam2kb wrote:

Try to disable all other plugins and see if avatars work

avatars get displayed already, nothing's wrong with it, except that it does not display the large avatars in lightbox but opens them anew.

Though i will try disabling all the others and see if that helps.Anyway its not a biggie, if i cant solve it i guess i can just install lightbox manually

An extra:
i see that the plugin displays the avatar of the main category only, anyway to get the extra cats to be displayed

322 Mar 01, 2010 03:36

This will display avatar for each extra category


foreach( $Item->extra_cat_IDs as $cat_ID )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            'type' => 'category',
            'id' => $cat_ID,
        ));
}

323 Mar 01, 2010 09:50

Warning: Invalid argument supplied for foreach() in /home/tilqi/public_html/skins/tilqi_tema_v_01/index.main.php on line 136

i ve put it right after the main cat avatar so that it looks

			<?php
		if ( isset($GLOBALS['avatars_Plugin']) )
		{	// Category avatar
			$GLOBALS['avatars_Plugin']->display_avatar( array(
					'type' => 'category',
				));
		}
		
		foreach( $Item->extra_cat_IDs as $cat_ID )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            'type' => 'category',
            'id' => $cat_ID,
        ));
} 
				// ---------------------- POST CONTENT INCLUDED HERE ----------------------
				skin_include( '_item_content.inc.php', array(
						'image_size'	=>	'fit-400x320',
					) );
				// Note: You can customize the default item feedback by copying the generic
				// /skins/_item_feedback.inc.php file into the current skin folder.
				// -------------------------- END OF POST CONTENT -------------------------
			?>

324 Mar 01, 2010 17:13

Try this then


if( !empty($Item->extra_cat_IDs) )
{
    foreach( $Item->extra_cat_IDs as $cat_ID )
    {
        $GLOBALS['avatars_Plugin']->display_avatar( array(
                'type' => 'category',
                'id' => $cat_ID,
            ));
    }
}

325 Mar 01, 2010 19:16

error is gone, but nothing happens really, no image, no nothing.its as if i havent put anything

326 Mar 01, 2010 19:38

see if this prints the Ids

if( !empty($Item->extra_cat_IDs) )
{
    foreach( $Item->extra_cat_IDs as $cat_ID )
    {
        echo $cat_ID.', ';
    }
}

328 Mar 01, 2010 20:50

This means your Item doesn't have any extra cats ;)

330 Mar 01, 2010 21:38

I edited your index.main.php lines 137-157

331 Mar 01, 2010 21:57

sam2kb wrote:

I edited your index.main.php lines 137-157

how dare you ?!

just kidding.. COOL! thanks a heap! :D

332 Mar 01, 2010 23:45

one more thing... (suprised ? i dont think so :D)

i add many (4-5) extra cats to each post, Default_avatar is OK for the main_cat however it is not nice to see 5 default avatars side by side (that are extra_cat's default_avatars)

so; i d like NOT TO display Extra_Cat_avatar if it's Default

i had pathetic attemps like this:

// Skip main category
$avatar_name = NULL;
if( $cat_ID == $Item->main_cat_ID ) continue;
if( $avatar_name == 'default' ) continue;

else
$GLOBALS['avatars_Plugin']->display_avatar( array(

'type' => 'category',
'id' => $cat_ID,
));

and of course it didnt work...

could you let me know if you have sth on the top of your head

333 Mar 01, 2010 23:55

Find the following code in plugin

# We have found a avatar
		
# Check if it is default
if( $exists === false && !$this->Settings->get('display_default_avatar') )
	return NULL;

Replace it with this

# We have found a avatar
		
# Check if it is default
if( $exists === false && !$this->Settings->get('display_default_avatar') )
	return NULL;
		
if( $exists === false && isset($params['no_default_avatar']) )
	return NULL;

Then you can use

$GLOBALS['avatars_Plugin']->display_avatar( array(
    'type' => 'category',
    'id' => $cat_ID,
    'no_default_avatar' => true,
));

Not tested, of course :)

334 Mar 02, 2010 00:03

it sure did like it was gonna work, but it didnt |: damn.. i wish only if it has been true at the very first shot once in a while

335 Mar 02, 2010 00:19

Edit this too

function display_avatar( $params )
{
	global $Messages;
	
	$avatar_name = NULL;
	$opt_params = array();
	
	if( isset($params['no_default_avatar']) )
	{
		$opt_params['no_default_avatar'] = $params['no_default_avatar'];
	}

336 Mar 02, 2010 00:33

yeah, that did the trick !

thank you very much for all the work you ve put today, you can not know how important these changes these were to me that i had for a long time now in my head.

Have a good night, cheers

338 Mar 02, 2010 00:40

btw, i ve always asking for the answer and applying it directly as i was told, but nowadays i ve started looking into reasons; what causes which and what is where etc.. i am picking up one or two, with the basic w3c schools php aid..I hope one day(hope not very long) i will be able to help others in addition to solving my own problems.

339 Mar 15, 2010 22:20

just a thought, would it be very hard to make the uploaded avatars sth like

avatars/default/category/"category_name.jpg"

instead of

avatars/default/category/143.jpg"

if you could, that would be "very" SEO friendly, and would help very much in google image search, as well as improving context integrity.

340 Mar 16, 2010 00:56

That shouldn't be too hard since category names (I mean url names) are unique.

Not in the near future, sorry.

342 Mar 26, 2010 22:30

My Spec:
Intel Quad 64bit
Ubuntu Hardy 8.04
Firefox - Epiphany
b2evolution version 3.3.1 released on 07/08/09
Avatars Plugin Version: 2.2.7
******************************************
Downloaded the zip ... ok
Extracted Avatar folder.... ok
Modified the files as per installation Hacks.txt 1 to 5 .... ok
Uploaded to server b2ev/plugins.... ok
Installed plugin via manager/plugins.... ok
In manager checked and modified plugin sttings to allow all user avatars ( just for test)

At user profile uploaded small avatar to my profile - ok

Looked at my posts by see no avatar ?

What must I do to get it to work from this point please.

At least I want registered members to be able to display avatars on comments and my avatar on Blog posts ..... others would be good to , but I can live without.

I am not a programmer - so please make it simple and clear - thanks.

AD

343 Mar 26, 2010 23:40

AnxietyDrive wrote:

At least I want registered members to be able to display avatars on comments and my avatar on Blog posts

For this purpose you don't need a plugin and may use default b2evo avatars.

Either way to display avatars you need to use a compatible skin or add avatars code, see Reame.html in plugin folder for details.

344 Mar 27, 2010 08:53

Well thanks - I wondered why there was a default avatar in the vanilla. I just couldn't see where how to get them displayed ... I go READ... salute

345 May 15, 2010 04:52

Is it possible to combine this with the Related Posts plugin? I'd like to have the post's avatar appear with the related post link, like a 'preview' of what the post is. I've seen this done on Wordpress blogs, and use both the RP plugin and Avatars plugin, but haven't seen an easy way to combine the functions for b2evo.

346 May 15, 2010 05:45

Can you post the source code of Related Posts plugin here?

347 May 15, 2010 06:24

It's from Astonish Me's Related Posts plugin (can't access their b2evo site, or find it in the b2evo plugins list).

<?php
/**
 * This file implements the AstonishMe Related Posts plugin.
 *
 * @package plugins
 *
 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
 * @author yabba - {@link http://www.astonishme.co.uk/}
 *
 * @version $Id: _am_related_posts.plugin.php,v 1 Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );


class am_related_posts_plugin extends Plugin
{

	var $name = 'AM Related Posts';
	var $code = 'am_relPosts';
	var $priority = 10;
	var $version = '1.1';
	var $author = 'AstonishMe';
	var $help_url = 'http://www.waffleson.co.uk/2007/10/playing-with-relations/';
	var $apply_rendering ='stealth';
	var $number_of_installs = 1;
	var $group = 'AstonishMe';

	/**
	 * @internal used to hold a list of all posts for the blog
	 *
	 * @var string : comma seperated list of post ID's for blog
	 */
	var $post_ID_list;

	/**
	 * @internal holds the parameters for displaying the related posts
	 *
	 * @var array : display parameters
	 */
	var $disp_params;

	/**
	 * Init
	 */
	function PluginInit( & $params )
	{
		$this->short_desc = T_('Related posts plugin');
		$this->long_desc = T_('This plugin will add a list of related posts to your posts');
	}


	function GetDefaultSettings()
	{
		$r = array(
			'block_start' => array(
				'label' => T_('Block start'),
				'defaultvalue' => '<div class="am_related_posts">',
				'note' => T_('This is the html output before everything'),
				'type' => 'html_input',
				'size' => 40,
			),
			'block_end' => array(
				'label' => T_('Block end'),
				'defaultvalue' => '</div>',
				'note' => T_('This is the html output after everything'),
				'type' => 'html_input',
				'size' => 40,
			),
			'title' => array(
				'label' => T_('Title'),
				'defaultvalue' => '<h3>'.T_( 'Related posts' ).'</h3>',
				'note' => T_('This is the title'),
				'type' => 'html_input',
				'size' => 40,
			),
			'list_start' => array(
				'label' => T_('List start'),
				'defaultvalue' => '<ul>',
				'note' => T_('This is the html output before the list'),
				'type' => 'html_input',
				'size' => 40,
			),
			'list_end' => array(
				'label' => T_('List end'),
				'defaultvalue' => '</ul>',
				'note' => T_('This is the html output after the list'),
				'type' => 'html_input',
				'size' => 40,
			),
			'line_start' => array(
				'label' => T_('Line start'),
				'defaultvalue' => '<li>',
				'note' => T_('This is the html output before each line'),
				'type' => 'html_input',
				'size' => 40,
			),
			'line_end' => array(
				'label' => T_('Line end'),
				'defaultvalue' => '</li>',
				'note' => T_('This is the html output after each line'),
				'type' => 'html_input',
				'size' => 40,
			),
			'line_title' => array(
				'label' => T_('Line title'),
				'defaultvalue' => T_( 'read this post' ),
				'note' => T_('This is the hover title for the links'),
				'type' => 'html_input',
				'size' => 40,
			),
			'max_related' => array(
				'label' => T_('Max related'),
				'defaultvalue' => 6,
				'note' => T_('This is the maximum number of related posts to show'),
				'type' => 'integer',
				'size' => 4
			),
			'widget_only' => array(
				'label' => T_('Widget only'),
				'defaultvalue' => 0,
				'note' => T_('Tick the box to make the plugin only work as a widget. Note : you will need a skin container inside your post loop'),
				'type' => 'checkbox',
			),
		);
		return $r;
	}

	  /**
   * Get definitions for widget specific editable params
   *
	 * @see Plugin::GetDefaultSettings()
	 * @param local params like 'for_editing' => true
	 */
	function get_widget_param_definitions( $params )
	{
		$r = $this->GetDefaultSettings();
		unset( $r[ 'widget_only' ] ); // not a widget choice ;)
		return $r;
	}
	/**
	 * Called before blog template is displayed
	 *
	 * Used to grab a list of posts for the current blog
	 * so that the sql only runs once
	 *
	 */
	function SkinBeginHtmlHead()
	{
		global $Blog, $timestamp_max, $DB;
		// lets get all blogs for this blog if it's an aggregate blog
		$blog_list = $Blog->get_setting( 'aggregate_coll_IDs' );
		// add in this blog
		$blog_list .= ( $blog_list ? ',' : '' ).$Blog->ID;

		// set the time limit ( this *should* work for future posts as well )
		$time_limit = date2mysql( ( $timestamp_max == 'now' ? time() : $timestamp_max ) );

		// grab a list of all potential posts
		$sql = 'SELECT DISTINCT post_ID
FROM T_items__item INNER JOIN T_postcats ON post_ID = postcat_post_ID INNER JOIN T_categories ON postcat_cat_ID = cat_ID
WHERE ( cat_blog_ID IN ( '.$blog_list.' ) )
  AND ( ( post_ptyp_ID IS NULL
  OR post_ptyp_ID NOT IN (1000) ) )
  AND ( post_datestart <= \''.$time_limit.'\' )
  AND ( post_status = \'published\' )';

		// and save them for later
		$this->post_ID_list = implode( ',', $DB->get_col( $sql ) );
	}


	/**
	 * This is used to add the reated list to the bottom of any post with tags
	 *
	 * @param mixed $params
	 * @return none
	 */
	function DisplayItemAsHtml( & $params )
	{
		global $tempskin;
		if( is_admin_page() || $this->Settings->get( 'widget_only' ) || substr( $tempskin, 0, 1 ) == "_" ) return; // this is an admin page, or a feed or we're a widget, don't do anything
		$params[ 'data' ] .= $this->SkinTag( $params, false );
	}


	/**
	 * This is used to output the related posts in the chosen container
	 *
	 * @param array $params : display params
	 * @param boolean $display : display or return
	 * @return results if return
	 */
	function SkinTag( & $params, $display = true )
	{
		global $DB, $Item;

		// lets initialise our display settings
		$this->init_display( $params );

		// lets fetch the item cache
		$ItemCache = get_cache( 'ItemCache' );

		// lets fetch the tags for this post
		$sql = 'select itag_tag_ID from T_items__itemtag where itag_itm_ID = '.$Item->ID;

		if( $post_tag_list = implode( ',', $DB->get_col( $sql ) ) )
		{	// we have tags for this post

			// lets grab the ## most related posts
			$sql = 'SELECT count(*) as post_tags_match, itag_itm_ID FROM T_items__itemtag join ( T_items__tag ) on ( itag_tag_ID = tag_ID and itag_itm_ID in ( '.$this->post_ID_list.' ) and itag_tag_ID in ( '.$post_tag_list.' ) and not( itag_itm_id = '.$Item->ID.' ) ) group by itag_itm_ID order by post_tags_match desc limit '.$this->disp_params[ 'max_related' ];


			if( $related_posts = $DB->get_results( $sql ) )
			{	// we have related posts

				$output = $this->disp_params[ 'block_start' ]."\n".$this->disp_params[ 'title' ]."\n".$this->disp_params[ 'list_start' ];
				foreach( $related_posts as $related_post )
				{	// add a link to each related item
					$related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
					$output .= $this->disp_params[  'line_start' ].'<a href="'.$related_item->get_permanent_url().'" title=" '.$this->disp_params[ 'line_title' ].' ">'.$related_item->title.'</a>'.$this->disp_params[  'line_end' ]."\n";
				}
				$output .= $this->disp_params[ 'list_end' ]."\n".$this->disp_params[ 'block_end' ]."\n";

				// add the related post links to the end of the post
				if( $display ) echo $output;
				return $output;
			}
		}
	}

	/**
	 * Sets all the display parameters
	 * these will either be the default display params
	 * or the widget display params if it's in a container
	 *
	 * @param array $params
	 */
  function init_display( $params = array() )
  {
		$temp = $this->get_widget_param_definitions( array() );
		foreach( $temp as $setting => $values )
			$this->disp_params[ $setting ] = ( isset( $params[ $setting ] ) ? $params[ $setting ] : $this->Settings->get( $setting ) );
  }
}
?>

348 May 15, 2010 17:22

You need to replace the following code

foreach( $related_posts as $related_post )
{   // add a link to each related item
      $related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
      $output .= $this->disp_params[  'line_start' ].'<a href="'.
$related_item->get_permanent_url().'" title=" '.$this->disp_params[ 'line_title' ].' ">'.
$related_item->title.'</a>'.$this->disp_params[  'line_end' ]."\n";
}

with this


global $avatars_Plugin;

foreach( $related_posts as $related_post )
{   // add a link to each related item
	$related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
	
	$output .= $this->disp_params['line_start'];
	
	if ( !empty($avatars_Plugin) )
	{
		if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_post )) !== NULL )
		{
			$output .= $avatars_Plugin->get_avatar_display( $avatar, '',
								'<div style="float:left">', '</div>', '' );
		}
	}
	$output .= '<a href="'.$related_item->get_permanent_url().'" title=" '.
					$this->disp_params['line_title'].' ">'.$related_item->title.'</a>'.
	
	$output .= $this->disp_params['line_end']."\n";
}

349 May 15, 2010 17:50

global $Plugins;
$avatars_Plugin = $Plugins->get_by_code('foo');

;)

350 May 15, 2010 20:43

The plugin defines $avatars_Plugin var to make things easy ;)

351 May 16, 2010 09:17

If you *really* wanted to make things easy then you'd use custom events ;)

¥

352 May 16, 2010 22:54

But you'll still have to use

global $Plugins;
$Plugins->dont_remember('event');

which is not easier than

global $avatars_Plugin;
$avatars_Plugin->event();

353 May 18, 2010 16:39

I get the following errors:

Warning: Illegal offset type in isset or empty in /public_html/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 405

Catchable fatal error: Object of class stdClass could not be converted to string in /public_html/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 418

PS. Should have mentioned I'm using 2.4.2 b2evo.

sam2kb wrote:

You need to replace the following code

foreach( $related_posts as $related_post )
{   // add a link to each related item
      $related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
      $output .= $this->disp_params[  'line_start' ].'<a href="'.
$related_item->get_permanent_url().'" title=" '.$this->disp_params[ 'line_title' ].' ">'.$related_item->title.'</a>'.$this->disp_params[  'line_end' ]."\n";
}

with this


global $avatars_Plugin;

foreach( $related_posts as $related_post )
{   // add a link to each related item
	$related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
	
	$output .= $this->disp_params['line_start'];
	
	if ( !empty($avatars_Plugin) )
	{
		if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_post )) !== NULL )
		{
			$output .= $avatars_Plugin->get_avatar_display( $avatar, '',
								'<div style="float:left">', '</div>', '' );
		}
	}
	$output .= '<a href="'.$related_item->get_permanent_url().'" title=" '.
					$this->disp_params['line_title'].' ">'.
$related_item->title.'</a>'.
	
	$output .= $this->disp_params['line_end']."\n";
}

354 May 18, 2010 16:53

        if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_post )) !== NULL )

Try :

        if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_item )) !== NULL )

sam2kb wrote:

But you'll still have to use

global $Plugins;
$Plugins->dont_remember('event');

which is not easier than

global $avatars_Plugin;
$avatars_Plugin->event();

$Plugins->trigger_event('your_event', $params ); means you only need to remember event name as opposed to $your_unique_var->your_event() ... and it allows more than a single plugin to react to the event ;)

¥

355 May 30, 2010 08:44

¥åßßå wrote:

        if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_post )) !== NULL )

Try :

        if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_item )) !== NULL )

Thanks Yabba: it gets rid of the error message BUT, the related links then repeat themselves over and over again... :(

356 Jun 06, 2010 22:21

Is it just me, or is there no way to pass the params needed to set the 'rating' and/or 'default' values of the gravatars for visitors to your site?

As far as I can tell, the get_gravatar function never builds anything other than the md5(email) portion because the other params never exist!

// Display gravatars
    function get_gravatar( $Comment, $params = array() )
    {
    	if( empty($Comment->author_email) )
    		return false;
		
	    $url = 'http://www.gravatar.com/avatar.php?gravatar_id='.md5($Comment->author_email);
		
	    if( !empty($params['rating']) )
	    	$url .= '&amp;rating='.$params['rating'];
			
	    if( !empty($params['size']) )
		    $url .='&amp;size='.$params['size'];
			
	    if( !empty($params['default']) )
	    	$url .= '&amp;default='.urlencode($params['default']);
			
	    if( !empty($params['border']) )
		    $url .= '&amp;border='.$params['border'];
		
	    return array( 'url' => $url, 'title' => $Comment->author );
	}

I've been beating my head against a wall trying to show Wavatars, Identicons or Monsterids, but couldn't do anything other than hard-code them into the above function. So I added a couple of selection boxes to the GetDefaultSettings function, like so:

'default_gravatar' => array(
	'label' => $this->T_('Default Visitor Gravatar'),
	'type' => 'select',
	'defaultvalue' => 'default',
	'options' => array(
		'default'	=> $this->T_('Gravatar default (Blue \'G\')'),
		'identicon'	=> $this->T_('Uniquely generated fractal glyph (Identicon)'),
		'monsterid'	=> $this->T_('Uniquely generated monster (Monsterid)'),
		'wavatar'	=> $this->T_('Uniquely generated face (Wavatar)'),
		),
	'note' => '<br />'.$this->T_('What to display if visitor isn\'t registered at gravatar.com').'<br />',
    ),
'gravatar_rating' => array(
	'label' => $this->T_('Visitor Gravatar Rating'),
	'type' => 'select',
	'defaultvalue' => 'g',
	'options' => array(
		'g'	=> $this->T_('G-Rated gravatars'),
		'pg'	=> $this->T_('PG-Rated gravatars'),
		'r'	=> $this->T_('R-Rated gravatars'),
		'x'	=> $this->T_('X-Rated gravatars'),
        	),
	'note' => '<br />'.$this->T_('Limit the explicitness of visitor gravatars').'<br />',
    ),

Then I changed the get_gravatar function to look like this:

    function get_gravatar( $Comment, $params = array() )
    {
    	if( empty($Comment->author_email) )
    		return false;
		
	    $url = 'http://www.gravatar.com/avatar.php?gravatar_id='.md5($Comment->author_email);
		
            $url .= '&amp;rating='.$this->Settings->get('gravatar_rating');
			
	    if( $this->Settings->get('default_gravatar') != 'default' )
		    $url .= '&amp;default='.urlencode($this->Settings->get('default_gravatar'));
		
	    return array( 'url' => $url, 'title' => $Comment->author );
	}

Now you can choose one of the three dynamic options to display (when a visitor doesn't have a gravatar) from the plugin configuration page.

Where was the original function supposed to get those parameters from?
I'm sure I'm missing something obvious! ;)

357 Jun 07, 2010 02:20

As far as I can tell, the get_gravatar function never builds anything other than the md5(email) portion because the other params never exist!

You should just pass these params to avatar call function. No need to edit the code

    if ( isset($GLOBALS['avatars_Plugin']) )
    {
        $GLOBALS['avatars_Plugin']->display_avatar( array(
                'type' => 'comment_author',
                'comment' => $Comment,
            ));
        
        // You can add optional params to control gravatars and other visitor avatar types
        // Example:
        // 'default' => 'http://img_url.jpg',
        // 'size' => '',
        // 'rating' => '',
    }

Replace with this

if ( isset($GLOBALS['avatars_Plugin']) )
    {
        $GLOBALS['avatars_Plugin']->display_avatar( array(
                'type' => 'comment_author',
                'comment' => $Comment,
                'rating' => 'pg',
                'default' => 'http://someurl/image.jpg',
            ));
    }

358 Jun 07, 2010 02:46

You should just pass these params to avatar call function. No need to edit the code

Gotcha! I knew it had to be something obvious. ;)

Although, I do kind of like the ability to change my mind via the plugin config instead of having to edit the skin code -- now that I have it set up. It has the advantage (or disadvantage) of working across all skins B)

Thanks for clarifying!

360 Jun 18, 2010 14:02

tilqicom wrote:

just a thought:

avatars/default/category/"category_name.jpg"

instead of

avatars/default/category/143.jpg"

that would be "very" SEO friendly, and would help very much in google image search, as well as improving context integrity.

Any pointers on that ? where does it get those names anyway ? i mean 143.jpg 158.jpg ? is it incremented starting from 1 or just a random number ?
And cant we simply add somewhere {cat_name} to do so ?

361 Jun 18, 2010 15:44

It's cat ID. You can probably replace it with cat urlname in method get_avatars(), lines 656-972 Plus you have to change the way it saves cat avatars.

I have to look closer...

362 Jun 18, 2010 16:10

sam2kb wrote:

It's cat ID. You can probably replace it with cat urlname in method get_avatars(), lines 656-972 Plus you have to change the way it saves cat avatars.

I have to look closer...

Thanks for the leads, i ll look into that.

363 Jun 21, 2010 18:46

Hi Emi{bitch-slap-me-perms]
Try and improve ... rapidly ... or you'll be moved to the muppet group :|

¥

364 Jun 24, 2010 02:25

I finally got around to solving the problem with the below hack for having avatars for related posts. Adding in Yabba's change, I figured out there was a missing ; in the hack (rather, a stray full stop was in the mix). Thanks to Yabba and sam2kb for the hack.

You can see it in practice here at the bottom of the page:
http://www.schoolofpuppetry.com.au/books.php/book-review-the-foam-book#more32

In _am_related_posts.plugin.php, find this:

foreach( $related_posts as $related_post )
{   // add a link to each related item
      $related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
      $output .= $this->disp_params[  'line_start' ].'<a href="'.
$related_item->get_permanent_url().'" title=" '.$this->disp_params[ 'line_title' ].' ">'.
$related_item->title.'</a>'.$this->disp_params[  'line_end' ]."\n";
}

replace with this


global $avatars_Plugin;

foreach( $related_posts as $related_post )
{   // add a link to each related item
	$related_item = $ItemCache->get_by_ID( $related_post->itag_itm_ID );
	
	$output .= $this->disp_params['line_start'];
	
	if ( !empty($avatars_Plugin) )
	{
		if( ($avatar = $avatars_Plugin->get_avatar( 'post', $related_item )) !== NULL ) 
		{
			$output .= $avatars_Plugin->get_avatar_display( $avatar, '',
								'<div style="float:left">', '</div>', '' );
		}
	}
	$output .= '<a href="'.$related_item->get_permanent_url().'" title=" '.
					$this->disp_params['line_title'].' ">'.$related_item->title.'</a>';
	
	$output .= $this->disp_params['line_end']."\n";
}

365 Aug 20, 2010 02:20

soo...the avatars plugin is not working with 4 alpha, right ?

It's a no-go for me than..Should've checked that first.

366 Aug 20, 2010 03:16

Why not? I'm sure it's working. Did you make the necessary changes to the code?

367 Aug 20, 2010 08:40

sam2kb wrote:

Why not? I'm sure it's working. Did you make the necessary changes to the code?

what necessary changes ?

368 Aug 20, 2010 09:01

New plugin hooks. You can find them in installation folder. Line numbers won't match, but you'll figure it out.

369 Aug 20, 2010 10:01

sam2kb wrote:

New plugin hooks. You can find them in installation folder. Line numbers won't match, but you'll figure it out.

Right :).. i've totally forgot about the core hacks in addition to skin hacks, thank you

371 Sep 21, 2010 10:05

Perhaps I have missed it, but is there a way to link the avatar, not to the lightbox function, but to the permalink for the post?

Ie. if I click on the avatar, it sends me to the single post page for the post?

372 Dec 10, 2010 05:25

I have not even logged into my blog for months...Now i have started to continue but i have noticed that avatars plugin stopped working...

I choose the image, no error is given, the category flashes green as if everything went okay, but no avatar is uploaded.I checkec max file size and image size and php upload limit everything is okay there, what else can it be ?

ps: old avatars are working properly.
b2 3.3.3

373 Dec 10, 2010 11:34

i am gonna go crazy.. am i missing sth here ?

as far as i remember i have not done anything for months, dont understand why it doesnt work now..

By the way, where is the avatars information is stored ? i cant see any tables related to avatar plugin in my db..

374 Dec 10, 2010 19:32

The plugin doesn't store any info in the database, images get uploaded to the media directory.

Do post or user avatars work?

Have you updated PHP, changed permissions, switched from SuPHP to DSO or changed open basedir settings?

Find the "upload_image" plugin method and test the upload process inserting

var_export($_FILES); die;

or

var_export($avatar_path); die;

375 Dec 10, 2010 21:00

sam2kb wrote:

The plugin doesn't store any info in the database, images get uploaded to the media directory.

Do post or user avatars work?

Have you updated PHP, changed permissions, switched from SuPHP to DSO or changed open basedir settings?

Find the "upload_image" plugin method and test the upload process inserting

var_export($_FILES); die;

or

var_export($avatar_path); die;

No i havent updated PHP.
No i havent changed permissions, until now, i just tried recursive 777'ing all the media folder, and that didnt work also.
No i havent switched to DSO, been using suPhp ever since.
No, (afaik) i havent changed open basedir settings (gosh, i dont even know what that is)

When i upload a user avatar via front end, or when i upload post avatar it says:

Succesfully uploaded the image [post-avatar.jpg].
Successfully moved the large avatar to it's correct location. [ 0 ]
Post updated.
But nothing happens.

But when i upload a category avatar i dont get those green messages, it just takes you back to category list and it fades yellow.

when you use b2's default uploader, it works, so at least we know it's not a permission problem but a plugin problem.

I have tried adding the above code, that did not work either (dont know if i did it right though)

I am pm'ing you some details, in case you could find time to take a quick look.thanks in advance.

376 Dec 10, 2010 21:05

Successfully moved the large avatar to it's correct location. [ 0 ]

Is it really 0 ? 8|

377 Dec 10, 2010 21:19

Ok, fixed now.
Image resize option was unchecked in plugin settings ;)

378 Dec 10, 2010 21:22

sam2kb wrote:

Ok, fixed now.
Image resize option was unchecked in plugin settings ;)

it still does not work for me ? Did you get it to work ?

379 Dec 10, 2010 21:47

I tried both blog and category avatars, they work well. User profile screen is broken and avatars don't work, but this was since early v3 I think.

380 Dec 10, 2010 21:50

BTW I never tried to upload a file with non-Latin name

381 Dec 11, 2010 11:03

sam2kb wrote:

I tried both blog and category avatars, they work well.

I still can not upload category avatars.how is this possible ? could you upload a sample avatar to a category and let me know which

383 Dec 11, 2010 14:10

sam2kb wrote:

http://www.tilqi.com/admin.php?blog=5&ctrl=chapters&cat_ID=364&action=edit

There are no messages displayed after you upload category avatars (don't ask me why :)), so don't wait for them. Just open the category again, and you'll see an avatar.

I really am going to lose my mind..

I cant even change the one you have changed.I thought it might be a browser problem, but it's not.Can't think of anything else, i am so stucked and angry right now

384 Dec 11, 2010 18:22

thanks, i guess i finally got it working... but something does not feel right, i ll let you know when i find out

385 Dec 11, 2010 21:33

when you do not upload a small avatar, you can not view the large one, is that correct ?

And more importantly isn't it supposed to create thumbnail for small avatar when you upload a large one ?
Do i have to create thumbnails for small avatars each time and upload small/large seperately ?

386 Dec 11, 2010 21:41

when you do not upload a small avatar, you can not view the large one, is that correct ?

yes. you can only view it when you click on small avatar

And more importantly isn't it supposed to create thumbnail for small avatar when you upload a large one ?

no, they are completely separate

Do i have to create thumbnails for small avatars each time and upload small/large seperately ?

What thumbnail do you mean? Just upload small and optionally large avatar

387 Dec 11, 2010 22:42

What thumbnail do you mean? Just upload small and optionally large avatar

I mean i would like to have small avatar created automatically when you upload the large one. Then i would not have to upload avatars twice for both.

388 Dec 12, 2010 02:31

I no longer develop this plugin. In fact I like built-in avatars in b2evo 3 and gravatars in b2evo 4

389 Jan 07, 2011 13:10

after upgrading to 4.0.3,
the plugin stopped working like the same last time..i upload the avatar, but it doesnt get saved.

i made the reqired changes but it does not work, i wonder what might have gone wrong ?

391 Jan 07, 2011 22:11

sam2kb wrote:

What message do you get?

nothing at all.. it just says, "item updated" and nothing else.

392 Mar 09, 2011 01:47

any leads on this ? do you remember what you did the last time ?

I guess i have the same issue again, same symptoms, it says the avatar is updated, but it doesnt show up.

393 Mar 09, 2011 20:23

See if image resize option is checked in plugin settings

395 Mar 14, 2011 05:06

i did everything, it's just not working :S

did anyone get it working with 4.0.3 ?

396 Jan 01, 2012 10:50

I am having a problem using this plugin. Recently I changed web hosts and thought it was about time I upgrade to 4.1.2. I have added in all the hacks for the plugin (except for #4, for which I could find no relevant code to fix in the suggested file), but when I go to upload an image, the page just goes blank. No error messages, nothing.

Is there a way to fix this, or another plugin I could use? I'm wanting to have avatars for individual posts/categories.

397 Jan 01, 2012 18:29

The plugin has not been tested in v4. Were you using this plugin before?

In v4 and upcoming v5 you can use a built-in avatars feature. It doesn't support category or blog avatars though.

Anyway, if you really need that old plugin to work in recent b2evo versions I can update it. It might take some time since I have other more important projects.

398 Jan 01, 2012 19:25

I was previously using it with a 3.something version. It was working fine (I think, it's been a while since I used an avatar for something). I have the same plugin installed on another website, the same version plugin and the same - old - version of b2evo. It works fine there. Both sites are hosted by the same company, so it's not a hosting issue.

It's not desperate for the 4x installation/site, it just makes things easier; however, if I ever upgrade the other one I will definitely need it. I have avatars for all blog posts, and combine it with the related posts plugin and it's part of the navigational structure that most visitors use and a lot of the images get picked up by Google and attract newcomers.

I'd be extremely happy to wait for an updated version of the plugin. I'm not planning on updating the other site any time soon, and in the meantime can work on manually adding images for the 4x version. Take your time - and thanks!!

399 Feb 06, 2012 18:57

sam2kb have you found time to test/update the plugin for the most recent 4x version ?

400 Feb 06, 2012 19:58

I haven't touched it yet.

The plugin was written to work in b2evo 1 and most of its the code is outdated. It would be great to rewrite the plugin using current b2evo thumbnail functions.

401 Feb 07, 2012 01:18

sam2kb wrote:

I haven't touched it yet.

The plugin was written to work in b2evo 1 and most of its the code is outdated. It would be great to rewrite the plugin using current b2evo thumbnail functions.

yea that would be great

402 Feb 07, 2012 06:58

Just a heads up, I'm updating the plugin to work in b2evo 4 and 5 ;) This may take a day or two.

403 Feb 07, 2012 19:37

sam2kb wrote:

Just a heads up, I'm updating the plugin to work in b2evo 4 and 5 ;) This may take a day or two.

Excellent ! Looking forward to it .

I got some b2 stuff going on too, not sure how long they would take.(a base facebook plugin, a new theme framework from scratch.)

404 Feb 12, 2012 06:49

The plugin is upgraded, I still need some time to edit the old demo skin and redo installation instructions before release.

It was a lot harder than I first thought :) I just couldn't leave some old (buggy) code and had to clean it up.

Note that this version will only work in b2evolution v4 and v5, it will not support earlier versions.

405 Feb 12, 2012 13:41

Great ! how do we upgrade the plugin, would it be enough to just to overwrite new files or should we uninstall first and reinstall ?

I guess you havent posted it yet.Maybe you should create a seperate topic for 4.x and up of this plugin and rename this thread as 2x-3x

406 Feb 19, 2012 22:51

Any news on this one ? Is the updated v any time soon ?

407 Feb 20, 2012 01:21

I forgot about it already :)
Will work on it tomorrow.


Form is loading...