Hello guys.
I did this code based on the Template Conditionals features and to contribute (little contribution) to this community that helped/is helping me a lot.
What you will need:
- Template Conditionals Plugin - Download
Step-By-Step:
- Go to AdminCP>Templates>**YOUR_THEME**>Member Templates>member_profile
(MAKE A BACKUP OF THIS TEMPLATE IF ANYTHING GOES WRONG YOU CAN GO BACK ON CHANGES)
- After the backup, search for:
Add after:
And that's it!
It will show the "Edit Profile" button in the member profile for the owner of the PROFILE ONLY. You can edit the code to fit your needs, like admin can see all buttons..
Thanks to:
- RateU - Helping me with Template Conditionals
- ZiNgA BuRgA - Helping me with Template Conditionals and the maker of Template Conditionals
- Imran - For the code base
- Skiilz (Me) - For creating the tutorial and code adaptation
Enjoy.