#3217 closed enhancement (reported-upstream)
Accept default Gravatar URL/image in [camptix_attendee] shotcode
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Component: | WordCamp Site & Plugins | Keywords: | needs-patch ux-feedback needs-refresh |
Cc: |
Description
The [camptix_atteendee]
shortcode currently uses the default Gravatar setting from the WordPress Discussions page. With the prevalence of custom Wapuus and as a way to support a bit more customization, this ticket is a request for adding the ability to set a custom default Gravatar URL for those who don't have one associated with the ticket email.
As with most things there are many ways to do this. Three options I can think of are:
1) Add a custom URL parameter inside of Settings > Discussions which takes an image URL
2) Add Custom URL setting to Camptix > General
3) Pass Parameter into [camptix_atteendee defalt_gravatar="URL"]
Of those three options, I think options one or two would be the best route as shortcodes can be confusing to new users. I'm looking forward to other ideas here as well.
Change History (5)
#3
@
7 years ago
Thanks Sanyog for bringing up these questions. I originally started this ticket after the suggestion from one of our local organizers and a very quick look at the camptix plugin's code.
there will be no limited where we can control image size of it... Supposed somebody may also add a heavy image which may take site time to load or end used bandwidth
For this I was thinking that we would use either the build in size ($s=
) and default($d=
) parameters of Gravatar(#) or passing the $size
parameter to get_avatar()
(#) which is being used already by the plugin. These methods do a pretty good job of optimizing the size to make sure things load as one would expect.
if someone is trying to add image which is larger or smaller than specified it may also shrink or stretch image
The methods above will handle the larger/smaller aspect, but you bring up a good point about size shrinking/stretching based on proportions. Gravatars are set in a 1:1
ration. Gravatar.com will allow users to crop their image to the square size.
Generally speaking, I'm not too worried about that at least in the CampTix context as we can suggest that the portions are set to 1:1
and for the most part people who are supporting the WordPress community via creating WordCamp sites has some experience with WordPress and Gravatar.
With all that being said, this whole ticket can be re-thought and what could be a small change could end up being a re-write/re-thought of how the attendees shortcode works in general. For example, right now Gravatars are set to 96
pixels(#) within the [camptix_atteendee]
shortcode but even that could be an option.
For now, I'm thinking we just do this as simple as possible then expand if there's a need for that.
This ticket was mentioned in Slack in #meta-wordcamp by iandunn. View the logs.
5 years ago
#5
@
4 years ago
- Resolution set to reported-upstream
- Status changed from new to closed
This ticket has been moved to GitHub https://github.com/WordPress/wordcamp.org/issues/657
Hello @BandonRandon
Great Suggestion, but I have some more queries about it, where you may have workaround solution or you can think about it.
If we give provision for custom URL of Image, there will be no limited where we can control image size of it, as it may break site look and feel, even if we give fixed size parameter in programme then if someone is trying to add image which is larger or smaller than specified it may also shrink or stretch image. As well as supposed somebody may also add a heavy image which may take site time to load or end used bandwidth may be not controlled because of this custom URL.
Sanyog