Support Forum

Customisations lost

FO foxy7
foxy7
Member

Before the recent update, I made a few customisations in “Profile” > “Edit Avatar”. These have unfortunately been overwritten and lost. The changes were made in location: wp-content > plugins > simple-press > forum > profile > forms > sp-form-avatar.php.

I understand that every customisation must be made in “mytheme”, but I was not able to find anything in there and then found it in the location mentioned above. Can you inform me the correct location for this or is there something else I have missed?

Thanks for your help.

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

that would be editing a core file – very bad and yes, changes will always be lost on upgrade…

we offer many options for customizing the forum…  or our api (hooks, actions and filters) are usually enough to customize…

what are you trying to change since you did not specify???

FO foxy7
foxy7
Member

I would like to remove the whole box “Current Displayed Avatar” and edit the text above “On this panel, you may update your Avatar. Depending on Forum Admin settings, you may have multiple ways to select an Avatar.”

MP Mr Papa
Mr Papa
Member

as to the text, starting with the next version (it was actually missing on this form) you can change it by using the filter sph_profile_avatar_header…

not sure I follow the rest though… you want to remove the display of the current avatar? but still have the part that allows them to upload/set an avatar?  seems like odd combination, if I am understanding…  but, its your site so if that is what you mean, you can also modify that display via the use of another filter sph_ProfileAvatarDisplay…  bit more tricky as you just want to remove the div with class spProfileDisplayAvatar, but quite doable…

do you know how to use wp filters? a couple references:

http://codex.wordpress.org/Plugin_API
http://code.tutsplus.com/articles/the-beginners-guide-to-wordpress-actions-and-filters–wp-27373