Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Customisations lost
Avatar
foxy7
Member
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2014 - 5:46 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 5, 2014 - 10:07 pm

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???

Avatar
foxy7
Member
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2014 - 7:26 am

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."

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2014 - 9:49 am

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/artic.....wp-27373 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620