Opened 11 years ago
Last modified 9 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Templates | Version: | 2.8.2 |
| Severity: | normal | 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)
#2
@
11 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
@
11 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/singlenamedindex-action-change-avatar.php - in
/twentytwelve/buddypress/members/single/index-action-change-avatar.phpi've copied/pasted the content of thebp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.phptemplate. - 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
@
11 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
@
11 years ago
- Milestone Awaiting Review
- Resolution → worksforme
- Status new → closed
yw & no problem ;)
Closing this ticket as everything is ok.
#7
@
9 years ago
- Cc added
- Resolution worksforme
- Status closed → reopened
- Version → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi Jesse Marco,
have you tried to copy the
change-avatar.phptemplate into your theme so that you have :yourtheme/buddypress/members/single/profile/change-avatar.php