[3.3][RC] Sticky Bar

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

[3.3][RC] Sticky Bar

Post by HiFiKabin »

Extension Name: Sticky Bar Image
Author: HiFiKabin and javiexin

Extension Description: As you scroll down the page, the NavBar 'detaches' it self and stays at the top of your browsers screen. You can change the colour of the Sticky NavBar and Text if you wish. You can also replace Image that appears in the Sticky Bar with an image. This needs to be saved in your root/images directory. You MUST define its size in the ACP, otherwise it will not show.

There is no image resizing, so the image uploaded must be sized beforehand.

The Sticky Bar is shown everywhere EXCEPT FAQ. (thanks to 3Di ) I am still investigating how to implement it correctly on the FAQ and other pages using anchors

The user has the option to disable the Sticky Bar if they wish.

Written in TWIG, automatic RTL switching

Based on the code supplied by javiexin

Extension Version: 3.2.0-RC1

Language: Supported Styles:
  • prosilver (and some prosilver based styles)
Live Demo: HERE

Screenshot:

Image

Image

Image

NOTE: If you have tested this in its BETA phase you must disable and delete data before installing this.

Support:

The contact us link at the bottom of this Forum or This Topic

Download: HERE

Installation:
  • Download the latest release and unzip it.
  • Upload the folder hifikabin to root/ext/ and enable it in the ACP
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

1.0.0-RC2 Now Available.

Style tweak. The logo now will only display on the Sticky Bar, not the other NavBars

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Sticky Bar in the ACP
  • Delete stickybar folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP
User avatar
janus_zonstraal
Registered User
Posts: 6589
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.1][3.2][RC] Sticky Bar

Post by janus_zonstraal »

The "sticky bar" is on top of a post if you click a message in "for example" notifications.
Is it possible to place the bar(s) above the post?
Sorry! My English is bat ;) !!!
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

janus_zonstraal wrote: Sun Aug 27, 2017 8:30 pm The "sticky bar" is on top of a post if you click a message in "for example" notifications.
Is it possible to place the bar(s) above the post?
I find it an annoyance as well, its something I will be working on to improve useability
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

1.0.0-RC3 Now Available.

The Sticky Bar no longer hides the top of the post you are trying to read (thanks to Ger )

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Sticky Bar in the ACP
  • Delete stickybar folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP
User avatar
janus_zonstraal
Registered User
Posts: 6589
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.1][3.2][RC] Sticky Bar

Post by janus_zonstraal »

1.0.0-RC3 gives a with screen on my test board.

And sorry nothing in the error log :(
Sorry! My English is bat ;) !!!
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

Try disabling, deleting the files and re upload/enable. (I have changed several style files from RC2)

I have it working perfectly on XAMPP locally and on my on line test.

RC4 will be here shortly. Nothing major, just another slight tweak to improve usability
User avatar
janus_zonstraal
Registered User
Posts: 6589
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.1][3.2][RC] Sticky Bar

Post by janus_zonstraal »

Reloaded does not help and still no error log.
I will wait for RC4
Sorry! My English is bat ;) !!!
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

1.0.0-RC4 Now Available.

The Sticky Bar is only shown on the Index and when you are viewing a forum, topic or post.

Update from previous version:
  • Download the latest release and unzip it.
  • Disable Sticky Bar in the ACP
  • Delete stickybar folder from the server
  • Upload the folder hifikabin to root/ext/
  • Enable it in the ACP
User avatar
janus_zonstraal
Registered User
Posts: 6589
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.1][3.2][RC] Sticky Bar

Post by janus_zonstraal »

RC4 is working again :D
Thanks
Sorry! My English is bat ;) !!!
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

janus_zonstraal wrote: Mon Sep 04, 2017 11:04 am RC4 is working again :D
Thanks
PHEW! Great news. Thanks for letting me know
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm

Re: [3.1][3.2][RC] Sticky Bar

Post by </Solidjeuh> »

It works on my index.php page.
But not working in arcade, donation, pages extension etc..

JV Arcade: https://jv-arcade.com/
Donation: http://www.dmzx-web.net/viewtopic.php?f ... l+Donation
Pages: https://www.phpbb.com/customise/db/extension/pages/

And probably some other extensions..
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6767
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: [3.1][3.2][RC] Sticky Bar

Post by HiFiKabin »

Froddelaar wrote: Tue Sep 05, 2017 7:12 pm It works on my index.php page.
But not working in arcade, donation, pages extension etc..

JV Arcade: https://jv-arcade.com/
Donation: http://www.dmzx-web.net/viewtopic.php?f ... l+Donation
Pages: https://www.phpbb.com/customise/db/extension/pages/

And probably some other extensions..
It is now only shown on index, forum and topic pages. The reason for this is because of the way the sticky bar 'sticks'

In the first versions the top of the page being viewed was hidden by the bar. (not useful when you goto a post in a topic) Now the goto appears under the sticky bar, BUT ONLY on Index, forum and topic pages. I will be working on a way to make it work on all pages, but as yet I can not get my head around it.

If you want it to appear on all pages (despite the 'hiding' error)

OPEN

hifikabin/stickybar/styles/prosilver/template/event/overall_header_navbar_before.html

FIND

{% if USER_STICKYBAR and S_INDEX or S_VIEWFORUM or S_VIEWTOPIC %}

REPLACE WITH

{% if USER_STICKYBAR %}

SAVE UPLOAD and PURGE CACHE
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm

Re: [3.1][3.2][RC] Sticky Bar

Post by </Solidjeuh> »

Hmzz I better wait then, don't like errors :D
Protopia
Registered User
Posts: 20
Joined: Sun Nov 14, 2004 3:27 pm

Re: [3.1][3.2][RC] Sticky Bar

Post by Protopia »

Tried to move the settings link from General/Board Configuration to Extensions using System/Module Management and got a php eval error.

Tracked this down to /ext/hifikabin/stickybar/acp/stickybar_info.php which uses a "\" when it should use a "/":

Code: Select all

return array(
	'filename'	=> '\hifikabin\stickybar\acp\stickybar_module',
	'title'		=> 'ACP_STICKYBAR',
	'modes'		=> array(
	'settings'	=> array('title' => 'ACP_STICKYBAR_SETTINGS', 'auth' => 'ext_hifikabin\stickybar && acl_a_board', 'cat' => array('ACP_STICKYBAR')),
	),
);
should IMO read:

Code: Select all

return array(
	'filename'	=> '\hifikabin\stickybar\acp\stickybar_module',
	'title'		=> 'ACP_STICKYBAR',
	'modes'		=> array(
		'settings'	=> array(
			'title' => 'ACP_STICKYBAR_SETTINGS',
			'auth' => 'ext_hifikabin/stickybar && acl_a_board',
			'cat' => array('ACP_STICKYBAR'),
		),
	),
);
Note 1: Technical explanation - in phpbb 3.2 /includes/functions_module.php line 472 is where the error occurs because at line 415 it looks for '/' but not '\'.

Note 2: hifikabin's headerbanner extension has the same issue.

Return to “Extensions in Development”