[buddypress-trac] [BuddyPress Trac] #6290: Avatars, an extensible UI
buddypress-trac
noreply at wordpress.org
Mon Mar 23 15:59:15 UTC 2015
#6290: Avatars, an extensible UI
------------------------------------+------------------
Reporter: imath | Owner:
Type: idea | Status: new
Priority: normal | Milestone: 2.3
Component: API - Avatars | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------
Comment (by imath):
Thanks a lot for your feedback boonebgorges.
I was hesitating about the best place for the javascript templates. Maybe
because they are templates, i've put them there. But i agree that putting
them elsewhere has a sense considering bp-templates as the specific place
for template packs.
> It's a bit of extra work for translators, but these strings should just
be included in BP.
Fine with me and i understand your point.
> should register user feedback strings, and AJAX requests should use
these feedback strings to build their return values.
I get the idea, as we are using the BP_Attachment extensions just when
needed, i wonder if we should simply use a function like
BP_Attachment->script_data() (or even use this function) to fetch the
feedback messages or fallback to generic ones into localization data
during {{{bp_attachments_enqueue_scripts()}}}.
It would look like :
{{{
feedback_messages: {
1 : 'Profile avatar successfuly uploaded',
2 : 'Uploading the profile photo failed'
}
}}}
Ajax would simply return a feedback code like 1 or 2.
> I'm not posting my selfie because the computer I'm currently on has all
webcams disabled </tinfoilhat> :)
ahaha :)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6290#comment:16>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list