Jump to content

Name 2 Avatars


CodingJungle

Recommended Posts

Posted
8 hours ago, CodingJungle said:

hmm i'm not sure. i've wrapped the new stuff that might be causing this in a try/catch that will report to log if it catches anything, and the design mode avatars are done a bit differently, incase they were causing it. give 2.2.3 a go, see if it causes the same issue.

I turned it on for now and only toggled the "gradients" setting on. I didn't choose to see it in Designer Mode. It seems to be fine now. I'll post if something else comes up.

Posted

Love the idea of this plugin.

I have an additional suggestion and was wondering whether that would be a possibility. For the privacy of my members, I would like to display the name 2 avatar avatar to guests and show the regular avatars to logged in people. Any chance that would be an addition in the future?

Many thanks.

Posted
5 hours ago, Donkerrood said:

Love the idea of this plugin.

I have an additional suggestion and was wondering whether that would be a possibility. For the privacy of my members, I would like to display the name 2 avatar avatar to guests and show the regular avatars to logged in people. Any chance that would be an addition in the future?

Many thanks.

Privacy?

They know their avatars are public and set them accordingly, no?

Also, you could just set generic avatars visible to guests via CSS, I think. I think there are classes for when someone is logged in or out. Then you wouldn't have to generate a bunch of N2A every time a guest visited.

  • 2 weeks later...
Posted

This is one of the best mods for this software, thank you.

Two things.

First, a question.  I have a daily newsletter I send and post the user avatar with a snippet of their post.  How do I associate their Name 2 Avatars image with the user?

Second, if I hover over their image in the topic view, it does not popup with their card.

error.png

Thanks for any help you can offer.

Posted
10 minutes ago, Square Wheels said:

Second, if I hover over their image in the topic view, it does not popup with their card.

error.png

Thanks for any help you can offer.

I don't know if that's an N2A problem. I get hover cards for my N2A avatars at https://thesandtrap.com/.

Posted
53 minutes ago, Square Wheels said:

This is one of the best mods for this software, thank you.

Two things.

First, a question.  I have a daily newsletter I send and post the user avatar with a snippet of their post.  How do I associate their Name 2 Avatars image with the user?

Second, if I hover over their image in the topic view, it does not popup with their card.

error.png

Thanks for any help you can offer.

i'm not sure how you put the newsletter together, if you do something like take their avatar and put it in there via html like <img src="http://mysite.com/uploads/thisuseravatar.png"> the URL to their n2a avatar (right click on the image, and go to open image in new tab, this is for chrome, might be different for firefox) and you'll have the URL for it.

i don't think that is caused by n2a:

Screenshot from 2017-01-04 14-50-21.png

this is taken from my live site, and it displays the hovercard just fine.

 

Posted
4 minutes ago, CodingJungle said:

i'm not sure how you put the newsletter together, if you do something like take their avatar and put it in there via html like <img src="http://mysite.com/uploads/thisuseravatar.png"> the URL to their n2a avatar (right click on the image, and go to open image in new tab, this is for chrome, might be different for firefox) and you'll have the URL for it.

i don't think that is caused by n2a:

 

this is taken from my live site, and it displays the hovercard just fine.

 

Thanks, someone pointed out (just above) that the hovercard is working correctly.  I see it is on my site too, must have been a temporary glitch.

As for the users avatar, Here is an eaxmple.
User Profile: http://squarewheelscycling.com/index.php?/profile/327-f_in-ray-of-sunshine/
Avatar: http://squarewheelscycling.com/uploads/n2a/bfb23ed1aa8a08da69928c401b3c266e119f5321_avatars_gd.png

So the image is  bfb23ed1aa8a08da69928c401b3c266e119f5321_avatars_gd.png

Is this somewhere in the database that I can find?

Here is the code I am using to generate the text for the newsletter:

<cfquery datasource="#DSN5#" name="NewPosts" maxrows="10">
SELECT
    tid,
    title AS ThreadTitle,
    last_poster_name,
    last_post,
    title_seo,
    pp_main_photo,
    starter_name,
    last_poster_name,
    forums_topics.posts AS PostCount,
    CASE WHEN core_sys_lang_words.word_custom IS NULL THEN core_sys_lang_words.word_default ELSE core_sys_lang_words.word_custom END AS ForumTitle
FROM
    forums_topics
INNER JOIN
core_members
ON
forums_topics.last_poster_id=core_members.member_id
INNER JOIN
core_sys_lang_words
ON
core_members.language=core_sys_lang_words.lang_id AND core_sys_lang_words.word_key=CONCAT('forums_forum_', forums_topics.forum_id)
WHERE
    forum_id NOT IN(29, 31, 27, 30, 28)
ORDER BY
    last_post DESC
</cfquery>

Again, thanks!

Posted

oh god, people still use coldfusion? lol...

the name of the avatar is a hash generated by the n2a settings used to create, the username or Letter/letters (depending on if unique colors are enabled) and/or the color override, along with if gd or imagemagick was used to generated. its not too complicated of a process, i just wouldn't know how to translate it over to CF. this would be an easier way, just upload this to applications/n2a/interface/image (you will need to create the image folder).

 image.php

then you can do something like this:

http://mysite.com/applications/n2a/interface/image/image.php?member=codingjungle

and it will act just like an image would if you access it. so you can put it in a html img tag to have it display. note: you will need to URL encode the username (so if it has special characters in it or spaces they get properly encoded). 

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7bdf.html

here is the doc on it for coldfusion (as i really don't know much about CF lol). I'll include this in the next version of n2a too, but this is so you can use it now :) 

 

Posted
39 minutes ago, CodingJungle said:

oh god, people still use coldfusion? lol...

:ph34r:

Thank you, this worked perfectly!  I simply put in an if statement.  If they have a "regular" avatar in the member table, display it, otherwise, use the link you gave.

Thank you!

Posted

you're welcome.

this uses the same method that it uses on the rest of the site, so it will check first to see if the avi exist, if it doesn't it will create it :) and yes good thinking about putting a check in it, as i let the ips code i hooked into decide if they have a uploaded/linked avi and if they don't, it will generate one, so it wouldn't have been in the interface file :) 

  • 1 month later...
Posted

Just read all two topics, but still have a couple of questions....

1) How does this work with Chinese, say the username 张四? Or a longer one, 我的名字叫某某? I can see people say it works with non-Latin alphabets, but this isn't really an alphabet  

2) If it doesn't work, is it an easy fix - uploading a new font, maybe. 

3) If it doesn't work, does it fail gracefully. 

The mod looks fantastic, keen to install. 

Posted

Answering some of my own questions...

1) You get a coloured circle with a couple of x's in it. It looks like an abstract but acceptable avatar

2) I don't know yet.

3) Seems to - no error messages or broken images. 

Posted

Actually, you know what'd be *awesome* - if you find a cartoon avatar generator site with an API, then randomly generate one from that. But I'm getting over excited now.

Posted
7 hours ago, rgf100 said:

1) How does this work with Chinese, say the username 张四? Or a longer one, 我的名字叫某某? I can see people say it works with non-Latin alphabets, but this isn't really an alphabet  

its mainly a font issue, you'd have to find a font that supports the character set, they are out there. something like sans or dejavu has a wide range they support.

7 hours ago, rgf100 said:

3) If it doesn't work, does it fail gracefully. 

really depends on the font, some will do a weird image, others will do like [][], but the app will work regardless, you will have a colored background but the letters will be something weird.

Posted

google noto cjk fonts work well, if anyone's looking. Large files though, so you need to upload them via ftp. 

See if you could set something up with the Cat Avatar Generator (they make the sources available) I would seriously pay for that. Not much, but like, ten bucks.

Posted

Actually, you know what would be handy (and again, I might be happy to pay for) - if the user doesn't have an avatar, then when they (and only they) are viewing one of their own posts, add the little camera icon and change the link to /profile/3-user/photo/ to encourage them to upload one.

  • 5 months later...
Posted
On 2/9/2017 at 5:25 PM, rgf100 said:

google noto cjk fonts work well, if anyone's looking. Large files though, so you need to upload them via ftp. 

See if you could set something up with the Cat Avatar Generator (they make the sources available) I would seriously pay for that. Not much, but like, ten bucks.

I've added the "cat avatar generator" and "abstract avatar generator" from that site to n2a

Posted

Please implement the methods in the FileStorage Extension.

Clients are having troubles to move their files to other FileStorage types because of the not implemented move method and the generated files are not deleted once the app is uninstalled.

Posted
1 hour ago, Daniel F said:

Please implement the methods in the FileStorage Extension.

Clients are having troubles to move their files to other FileStorage types because of the not implemented move method and the generated files are not deleted once the app is uninstalled.

first i'm hearing of it.

Posted
6 hours ago, Daniel F said:

Please implement the methods in the FileStorage Extension.

Clients are having troubles to move their files to other FileStorage types because of the not implemented move method and the generated files are not deleted once the app is uninstalled.

they've been updated, shouldn't be a problem now. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...