Another example component (similar to Eighteen Male) which is making use of the ossn_extend_view
function.
This time, the footer plugin gets extended with some extra code in order to display a red Up arrow bottom right whenever the top part of the page has been scrolled out of view. When clicked the page will scroll back to top.
Excellent little emoji/icon. Very useful feature I just added to my ossn network. Thank you Michael👍
Cool Thanks
Well,
I don't think that I'll go to 'fix' something here.
My idea was just having this feature on every page that might scroll, using a minimum of code. Because sites may have other lengthy pages, like terms or privacy statements, etc.
Of course, individual requirements do vary. Thus, it's up to you to enclose the scrollback feature in a condition for example:
if (ossn_isLoggedin()) {
ossn_extend_view('theme/page/elements/footer', 'ScrollToTop/ScrollButton');
}
in order to make it available only inside of your site. Or to implement the feature on dedicated pages only. Or, to simply use any of your ready-made widgets.
Oh. I accidentally noticed that it also appears on the Home page before registration. I think this will be fixed in future updates.
Thanks again Michael, You are very kind!
WOW. )) Thank you Michael for this beautiful component. Despite the fact that I have already found ready-made widgets on the Internet, but I think it is more correct to use the OSSN component created by an OSSN specialist.