Topbar Focusizer Download 1.1.1

5.0
us Allon Prooit 2 years ago

A small component to keep the topbar in focus. Also includes javascript that is supposed to make the topbar scroll up when scrolling down and then return after scrolling back up.
Needing help to further develop it.
V1.0 - Initial release. Keeps the topbar constantly in focus.
V1.1 - Code corrected for the community to help develop it.
V1.1.1 - Code corrected by Rafael Amorim. Code needs to be adjusted for right side buttons in CSS.

Comments
German Michael Zülsdorff Replied 2 years ago

The options to choose from are

  1. ossn_extend_view('ossn/site/head', 'js/topbarfocusizer');
    in order to get your script separated and uncached in the head area of the html

  2. ossn_extend_view('js/ossn.site', 'js/topbarfocusizer');
    in order to get your script merged with other component's javascript and being minified and cached (with Ossn cache=enabled)

us Allon Prooit Replied 2 years ago

Indeed, that is the difference. Any thoughts on what I should change to get this component working to spec? I see a few alterations i can make...

German Michael Zülsdorff Replied 2 years ago

ossn_extend_view('ossn/site/head', 'js/imagesinmessage_head');
ossn_extend_view('js/ossn/site/head', 'js/topbarfocusizer');

That's a major difference, isn't it?
And yes, the CSS part is working

us Allon Prooit Replied 2 years ago

Can someone please let me know if this component works on OSSN 6.1 or not?

us Allon Prooit Replied 2 years ago

V2.0 has it on line 163 of ossn_com.php

German Michael Zülsdorff Replied 2 years ago

running v2.0 of ImagesInMessage here,
mine doesn't have a line like that

us Allon Prooit Replied 2 years ago

It was taken from ImagesInMessage component. From the ossn_com.php file of it.

German Michael Zülsdorff Replied 2 years ago

" I gleaned that from another fully functional component..."
which one exactly?

us Allon Prooit Replied 2 years ago

Sorry Z Man, but the first version in my opinion needed to be a working version without bugs or error codes. So, I switched it out for the communities sake. Not going to have any version of any component I produce causing problems if I can help it. As for the change in the ossn_com.php file, I gleaned that from another fully functional component as a well working code snippet. The component still needs development to get it to function the way I want it. Right now it holds the topbar in focus, but will eventually have the topbar scroll up and away when you scroll down and present the topbar whenever you scroll up. This is a nice innovation to have for any OSSN installation and hope the community helps to make it happen.

German Michael Zülsdorff Replied 2 years ago

Hmm, I don't find it very helpful that you deleted the code I commented earlier today. My basic idea is always to let the whole community participate, because there's a good chance that others will make similar mistakes and can learn how to do it right this way.
Aside from that: releasing different code under the same version number is just a no-go.

Okay, but let's talk about

ossn_extend_view('js/ossn/site/head', 'js/topbarfocusizer');

in your latest code. How do you come up with a line like that? I mean, you won't find such an instruction anywhere else, that's why I'm a little surprised...

Component

Developer: Allon
License GPL v2
Type: Tools
Requires Ossn Version : 5.6
Latest Version: 1.1.1
Last Updated 2 years ago
Repository Url View Repository

Versions