Visual Bug and Fix
-
First off, great plugin. Potentially the best for user profile pictures, if we can get a few issues fixed. I’m going to break them into a few posts for clarity.
The first is a simple one. Focus/active styles are messed up, because the thumbnail
img
and wrappera
aren’t set todisplay:block
. It’s a simple change in the PHP code:Line 371, 373, 377, and 378, where you are building the HTML, need to have display:block hardcoded.
In the JS file though, I think the easiest was is a third helper function, that takes the stringified HTML, converts to a DOM object, adds the styles, and then returns as a string.
function mt_display_block(htmlString) { var temp = document.createElement('div'); temp.innerHTML = htmlString; temp.firstElementChild.style.display = 'block'; temp.firstElementChild.firstElementChild.style.display = 'block'; return temp.innerHTML; }
Then:
jQuery( "#metronet-profile-image" ).html( mt_display_block( response.thumb_html ) );
https://www.ads-software.com/plugins/metronet-profile-picture/
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Visual Bug and Fix’ is closed to new replies.