Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Mobile Theme] How to use a default userpicture for discussions (requires Gravatar-Plugin)
It bugged me, that in the mobile view (using the default mobile theme) no userpicture is shown if a user has not uploaded such in his profile. To clarify: a default userimage is only added in your forum, when the Gravatar-Plugin is enabled - but still this does not get applied in the mobile theme.
I fixed this behavior by modifying the mobile theme with the following code.
NOTE: this requires the "Gravatar"-Plugin to be enabled!
@Mark would be nice, if this could be added by default to the Gravatar plugin - or probably even the mobile theme.
I fixed this behavior by modifying the mobile theme with the following code.
NOTE: this requires the "Gravatar"-Plugin to be enabled!
- Open the file /themes/mobile/views/discussions/helper_functions.php
- Replace the code at Line 33 as follows:
} else { if (Gdn::Config('EnabledPlugins.Gravatar')<>'') { echo Img(Gdn::Config('Plugins.Gravatar.DefaultAvatar', 'plugins/Gravatar/default.gif'), array('alt' => $Discussion->FirstName)); } }
- Save & done
@Mark would be nice, if this could be added by default to the Gravatar plugin - or probably even the mobile theme.
0
Comments
https://github.com/vanillaforums/Garden/commit/8ed0c82b384fd732c70507ba29d4c38a511d93b0
Just add MobileFriendly = TRUE in the plugin definition, and it will no longer be disabled in mobile.