[3.1][3.2][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!
Scam Warning
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: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

[3.1][3.2][RC] Sticky Bar

Post by HiFiKabin » Sat Aug 26, 2017 12:38 pm

Extension Name: Sticky Bar
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: 1.0.0-RC5

Language:
  • en
  • Additional Language Pack fr
Supported Styles:
  • prosilver (and most prosilver based styles)
Live Demo: HERE

Supported Styles:
  • prosilver (and most prosilver based styles)
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: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Sun Aug 27, 2017 10:59 am

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 the forum root
  • Enable it in the ACP

janus_zonstraal
Registered User
Posts: 1645
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » 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?
Sorry! My English is bat ;) !!!

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Mon Aug 28, 2017 9:44 am

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: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Sat Sep 02, 2017 3:16 pm

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 the forum root
  • Enable it in the ACP

janus_zonstraal
Registered User
Posts: 1645
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » Sun Sep 03, 2017 8:24 am

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: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Sun Sep 03, 2017 8:58 am

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

janus_zonstraal
Registered User
Posts: 1645
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » Sun Sep 03, 2017 10:26 am

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: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Mon Sep 04, 2017 10:51 am

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 the forum root
  • Enable it in the ACP

janus_zonstraal
Registered User
Posts: 1645
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » Mon Sep 04, 2017 11:04 am

RC4 is working again :D
Thanks
Sorry! My English is bat ;) !!!

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Mon Sep 04, 2017 11:08 am

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
Froddelaar
Registered User
Posts: 483
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post by Froddelaar » 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..
I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 2152
Joined: Wed May 14, 2014 9:10 am
Name: James
Contact:

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

Post by HiFiKabin » Wed Sep 06, 2017 10:22 am

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
Froddelaar
Registered User
Posts: 483
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post by Froddelaar » Wed Sep 06, 2017 12:01 pm

Hmzz I better wait then, don't like errors :D
I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

Protopia
Registered User
Posts: 17
Joined: Sun Nov 14, 2004 3:27 pm

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

Post by Protopia » Wed Sep 20, 2017 12:25 pm

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.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: BigRed01, david63, nou nou, remoss and 23 guests

cron