A simple responsive theme optimized for mobile usability, featuring ...
In the end of OssnProfile/plugins/default/js/OssnProfile.php I change to
Ossn.RegisterStartupFunction(function () {
$(document).ready(function () {
window.addEventListener("orientationchange", function () {
showRotateTip();
}, false);
$('.profile-cover').on('mouseenter', function () {
showRotateTip();
$('.profile-cover-controls').show();
});
$('.profile-cover').on('mouseleave', function () {
$('.profile-cover-controls').hide();
});
});
});
and add showRotateTip function:
function showRotateTip() {
var windowsize = $(window).width();
var classTooltipPosition = '.profile-cover';
if (windowsize < 480) {
$(classTooltipPosition).attr('data-toggle', 'tooltip');
$(classTooltipPosition).attr('data-placement', 'auto');
$(classTooltipPosition).attr('title', '<?php echo ossn_print('profile:cover:rotate:mobile'); ?>');
$(classTooltipPosition).tooltip({animation: true});
$(classTooltipPosition).tooltip('enable');
} else {
$(classTooltipPosition).attr('data-toggle', 'tooltip');
$(classTooltipPosition).attr('data-placement', 'auto');
$(classTooltipPosition).attr('title','');
$(classTooltipPosition).tooltip('disable');
}
}
Also, I add profile:cover:rotate:mobile into locale\ossn.pt.php.
Can you suggest some improvements into my code? You are more familiarized with me in OSSN :-)
Regards!
~Z~ Man Thanks for a timely response. hope you feel better soon. for me my first jab was worst , got second on 12th of june . I will be eagerly looking out for updates before I consider 6.0 , the work here earns a high degree of respect for sure.
Thank you for your feedback, Jack.
Please read my lines at https://comz.z-mans.net/group/105/about
I love this theme, and so the obvious question comes in, will this be updated soon for ossn 6.0?
Hello ~Z~ Man, and thanks for theme, excellent for cell phone use. Small quibble, when you update Welcome Text, it removes our custom Logo Image. You can update Logo Image afterwards so no biggie but just a heads up.
Adding kudos to excellent work my man. Mobile friendly, very usable interface. If ever in the mood, there's room on header for menu icons (Admin defined would be awesome) since menu drops to the floor when opened ;-) Again, many thanks for an excellent addition to platform, Don.
Nice! All is good. Green by Green ROCKS!
THANK YOU... very much! I have to go out for a few hours, but I will be throwing this on the test server today, and then on to the live site. MUCH appreciated!
Okay, the issue should be fixed now. And: Phil is to blame for all that. :))
No, just kidding.
Actually it was HIS idea to change the layout of the comments text when it comes to new lines.
So I started working on that already when releasing 2.6 three weeks ago. But since the necessary changes evolved to be more difficult than expected and the magnifying glass code was ready to go, I decided to release the 'glass' in advance - not aware that the remaining code would break the group comments. Yeah, sorry - my fault.
And this is the new layout
Thanks for your feedback, Av J.
I'll look into this issue today.