Allon Prooit
4 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.
Allon Prooit
Replied 4 years ago
Here's the error again, hopefully easier to read...

Also, thanks Rafael! Glad to find some good code to work with. The Github repository has the V1.0 uploaded. AT3META's GitHub
Rafael [redcrested.net]
Replied 4 years ago
I'm flattered to see my component been using as inspiration to a new component :-)
If you can, put your code into GitHub to allow us improve it.
Michael Zülsdorff
Replied 4 years ago
Sorry, but I'm unable to read that. Upload that new code and we'll see ..
Allon Prooit
Replied 4 years ago
Ok, so I made a number of adjustments and ended up with the following error. Not sure how to proceed. See image for details... something about the javasript.

Michael Zülsdorff
Replied 4 years ago
The options to choose from are
ossn_extend_view('ossn/site/head', 'js/topbarfocusizer');
in order to get your script separated and uncached in the head area of the html
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)
Allon Prooit
Replied 4 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...
Michael Zülsdorff
Replied 4 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
Allon Prooit
Replied 4 years ago
Can someone please let me know if this component works on OSSN 6.1 or not?
Allon Prooit
Replied 4 years ago
V2.0 has it on line 163 of ossn_com.php
Michael Zülsdorff
Replied 4 years ago
running v2.0 of ImagesInMessage here,
mine doesn't have a line like that