Opened 9 years ago
Last modified 8 years ago
#6563 reopened defect (bug)
index-action-change-avatar.php will not help to customize change avatar page. JS not working.
Reported by: | Jessy Marco | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8.2 |
Component: | Templates | Keywords: | reporter-feedback |
Cc: | Pokigm1986@… |
Description
How to customize “profile/change-avatar/” page?
I have used “index-action-change-avatar.php” template, but javascript is not loaded and you can not crop image by your needs. I have copied all the content from /profile/change-avatar.php default buddypress template directory.
Change History (7)
#1
@
9 years ago
- Component changed from API to Appearance - Template Parts
- Keywords reporter-feedback added
#2
@
9 years ago
Yes, I did. It works, but you can not customize whole page like "index-action-change-avatar.php", because you have other parts of the template included like "member-header.php". I would like to customize complete page. It seems like JavaScript is not loaded for cropping image in "index-action-change-avatar.php" template file.
#3
@
9 years ago
Ok, just tested and it's working just fine !
This is what i've done :
- create an empty file in
/twentytwelve/buddypress/members/single
namedindex-action-change-avatar.php
- in
/twentytwelve/buddypress/members/single/index-action-change-avatar.php
i've copied/pasted the content of thebp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php
template. - added
get_header()
before the pasted content andget_sidebar()
&get_footer()
after it. Header and footer are important to make sure scripts are loaded.
So unless you have a particularity that i haven't understood, i'd say we can close this ticket as worksforme
#4
@
9 years ago
Thank you very much.
I really apologise for this ticket.
Thank you very much and keep up awesome work as only you can :)
My mistake.
Now it works perfectly.
#5
@
9 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
yw & no problem ;)
Closing this ticket as everything is ok.
#7
@
8 years ago
- Cc Pokigm1986@… added
- Resolution worksforme deleted
- Status changed from closed to reopened
- Version set to 2.8.2
I have done this as well, I followed your steps @imath except I use the kleo-child theme.
create an empty file in /twentytwelve/buddypress/members/single named index-action-change-avatar.php
in /twentytwelve/buddypress/members/single/index-action-change-avatar.php i've copied/pasted the content of the bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php template.
added get_header() before the pasted content and get_sidebar() & get_footer() after it. Header and footer are important to make sure scripts are loaded.
The only issue I have is the upload button or anything don't work it just refreshes the page.
Did anything change within the past year or am I forgetting files?
If anyone was wondering- I'm creating a custom page.
After a user clicks on his activation link threw their email they will be redirected to my custom Avatar upload page/with an option to skip the page and continue to the activity wall.
Pretty much the steps Facebook has threw their registration process.
Hi Jesse Marco,
have you tried to copy the
change-avatar.php
template into your theme so that you have :yourtheme/buddypress/members/single/profile/change-avatar.php