Scroll To Top Download 7.1

5.0
German Michael Zülsdorff 8 months ago

Scroll To Top

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.


enter image description here

Comments
bm Helen Trott Replied 3 months ago

Excellent little emoji/icon. Very useful feature I just added to my ossn network. Thank you Michael👍

us John Robertson Replied 7 months ago

Cool Thanks

German Michael Zülsdorff Replied 8 months ago

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.

us Anna Ayva Replied 8 months ago

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!

us Anna Ayva Replied 8 months ago

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.

Component

Developer: Michael
License GPL v2
Type: Uncategorized
Requires Ossn Version : 7.2
Latest Version: 7.1
Last Updated 8 months ago
Repository Url View Repository

Versions