[DEV] Sidebar Menu

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

Re: [BETA] Sidebar Menu

Post by </Solidjeuh> » Wed Apr 25, 2018 9:05 pm

Yeahhhh works now! :)
https://www.muziekpromo.net/scripts/phpbbtest/
Just to bad the board3 portal layout sucks with a smaller screen.
Image

Dutch translation (nl)

Code: Select all

<?php
/**
*
* @package phpBB Extension - Sidebar Menu
* @copyright (c) 2018 Sniper_E - http://sniper-e.com
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(
	/** UCP option sidebar */
	'SIDEBAR_POSITION'          => 'Sidebar menu positie',
	'SIDEBAR_LEFT'              => 'Links',
	'SIDEBAR_RIGHT'             => 'Rechts',
	'SIDEBAR_BOTH'              => 'Beide',
	'SIDEBAR_NONE'              => 'Geen',
	'SIDEBAR_LOCATION'          => 'Sidebar menu locatie',
	'SIDEBAR_GLOBAL'            => 'Globaal',
	'SIDEBAR_INDEX'             => 'Index',
	'SIDEBAR_WIDTH'             => 'Sidebar Breedte instellen',
	'SIDEBAR_SMALL'             => 'Smal',
	'SIDEBAR_SMALL_EXPLAIN'     => 'Links 165px - Rechts 175px',
	'SIDEBAR_MED'               => 'Medium',
	'SIDEBAR_MED_EXPLAIN'       => 'Links 165px - Rechts 190px',
	'SIDEBAR_LARGE'             => 'Groot',
	'SIDEBAR_LARGE_EXPLAIN'     => 'Links 180px - Rechts 190px',
	/** UCP extended menu */
	'USER_CONTROL_PANEL'        => 'UCP Links',
	'FRONT_PAGE'                => 'Voorpagina',
	'OVERVIEW'                  => 'Overzicht',
	'MANAGE_SUBSCRIPTIONS'      => 'Beheer Abonnementen',
	'MANAGE_BOOKMARKS'          => 'Beheer Bladwijzers',
	'MANAGE_DRAFTS'             => 'Beheer Concepten',
	'MANAGE_ATTACHMENTS'        => 'Beheer Bijlagen',
	'MANAGE_NOTIFICATIONS'      => 'Beheer Notificaties',
	'PROFILES'                  => 'Profiel',
	'EDIT_PROFILE'              => 'Bewerk Profiel',
	'EDIT_SIGNATURE'            => 'Wijzig onderschrift',
	'EDIT_AVATAR'               => 'Wijzig Avatar',
	'EDIT_ACCOUNT_SETTINGS'     => 'Wijzig Account Instellingen',
	'MANAGE_REMEMBER_ME'        => 'Beheer "Onthoud me"',
	'BOARD_PREFERENCES'         => 'Forum Voorkeuren',
	'EDIT_GLOBAL_SETTINGS'      => 'Bewerk Globale Instellingen',
	'EDIT_POSTING_DEFAULTS'     => 'Bewerk berichten Standaards',
	'EDIT_DISPLAY_OPTIONS'      => 'Bewerk weergave opties',
	'EDIT_NOTIFICATION_OPTIONS' => 'Wijzig Notificatie Opties',
	'EXTENSIONS'                => 'Extensies',
	'USER_GROUPS'               => 'Gebruikersgroepen',
	'EDIT_MEMBERSHIPS'          => 'Bewerk Lidmaatschappen',
	'MANAGE_GROUPS'             => 'Beheer Groepen',
	'FRIENDS_FOE'               => 'Vrienden & Vijanden',
	'MANAGE_FRIENDS'            => 'Beheer Vrienden',
	'MANAGE_FOES'               => 'Beheer Vijanden',
	'PRIVATE_MESSAGESS'         => 'Privé berichten',
	'COMPOSE_MESSAGE'           => 'Schrijf Bericht',
	'MANAGE_PM_DRAFTS'          => 'Beheer PB Concepten',
	'INBOX'                     => 'Postvak In',
	'OUTBOX'                    => 'Postvak Uit',
	'SENT_MESSAGES'             => 'Verzonden Berichten',
	'RULES_FOLDERS_SETTINGS'    => 'Regels, mappen & instellingen',
	'MCHAT_PREFERENCES'         => 'Mchat Voorkeuren',
	'AJAX_CHAT_SETTINGS'        => 'Ajax Chat Instellingen',
	'MANAGE_LINK_ACCOUNTS'      => 'Beheer gekoppelde accounts',
	'CREATE_LINK_ACCOUNT'       => 'Maak een gelinkte account',
	'DONATIONS'                 => 'Donaties',
	/** Sidebar menu titles */
	'STAFF_TOOLS'               => 'Beheer Tools',
));

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [BETA] Sidebar Menu

Post by Sniper_E » Wed Apr 25, 2018 9:13 pm

The blocks are fixed and they are set. There are now 3 different size blocks to choose from in ucp options.
165px left block with 175px right block
165px left block with 190px right block
180px left block with 190px right block
Now we can adjust these if anyone finds out they need to be wider for some sites.

New sidebar menus can use the event templates to add in a new sidebar menu on the right or left.
sniper_sidebarmenu_left.html and sniper_sidebarmenu_right.html

New links from other extensions can be adding in each of the 5 template events.
sniper_sidebarmenu_extensions.html
sniper_sidebarmenu_ucp_extensions.html
sniper_sidebarmenu_quick_links.html
sniper_sidebarmenu_staff_tools.html
sniper_sidebarmenu_user_links.html
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [BETA] Sidebar Menu

Post by Sniper_E » Wed Apr 25, 2018 9:17 pm

Froddelaar wrote:
Wed Apr 25, 2018 9:05 pm
Yeahhhh works now! :)
https://www.muziekpromo.net/scripts/phpbbtest/
Just to bad the board3 portal layout sucks with a smaller screen.
Image
Man your portal has sidebars in the page and now you want more sidebars outside of that?
You would need to increase your max-width of sidebars when you are in the portal.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
RomaamoR
Registered User
Posts: 150
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [BETA] Sidebar Menu

Post by RomaamoR » Wed Apr 25, 2018 9:24 pm

I talked about fixed blocks when scrolling the page to the top, down.

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [BETA] Sidebar Menu

Post by Sniper_E » Wed Apr 25, 2018 9:57 pm

@ RomaamoR, no I wasn't planning on that. I could look and see what it would take.

@ Froddelaar, I see arcade has a few links for guests. But guests can not reach the links.
Maybe I will have to put a min-width on those sub menus. Go look and test that.

Can you try there by adding min-width: 140px; under .left-sidebar .sub-sub-sidebar-link:hover ul.sub-sub-side-navlinks {
And under .right-sidebar .sub-sub-sidebar-link:hover ul.sub-sub-side-navlinks { just below the margin-bottom: 6px; lines.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
</Solidjeuh>
Registered User
Posts: 1012
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [BETA] Sidebar Menu

Post by </Solidjeuh> » Wed Apr 25, 2018 11:48 pm

Sniper_E wrote:
Wed Apr 25, 2018 9:57 pm
@ Froddelaar, I see arcade has a few links for guests. But guests can not reach the links.
Maybe I will have to put a min-width on those sub menus. Go look and test that.

Can you try there by adding min-width: 140px; under .left-sidebar .sub-sub-sidebar-link:hover ul.sub-sub-side-navlinks {
And under .right-sidebar .sub-sub-sidebar-link:hover ul.sub-sub-side-navlinks { just below the margin-bottom: 6px; lines.
Perfect! Like the overlapping :D

Image

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [BETA] Sidebar Menu

Post by Sniper_E » Thu Apr 26, 2018 1:05 am

I want to thank you for bring up the menu needed for Arcade. It forced me to create the css I needed for the sub menus.

That min-width: 140px; I'll add it in. And I'll change the 140px distance back to 120px where I started.

Code: Select all

.left-sidebar .sidebar-link:hover  ul.side-navlinks,
.left-sidebar .sub-sidebar-link:hover  ul.sub-side-navlinks,
.left-sidebar .sub-sub-sidebar-link:hover  ul.sub-sub-side-navlinks {
	display: block;
	position: absolute;
	white-space: nowrap;
	margin-top: -16px;
	margin-bottom: 6px;
	left: 120px;
	-webkit-animation-name: zoom;
	-webkit-animation-duration: 0.9s;
	animation-name: zoom;
	animation-duration: 0.9s;
	z-index: 999;
}

.right-sidebar .sidebar-link:hover  ul.side-navlinks,
.right-sidebar .sub-sidebar-link:hover  ul.sub-side-navlinks,
.right-sidebar .sub-sub-sidebar-link:hover  ul.sub-sub-side-navlinks {
	display: block;
	position: absolute;
	white-space: nowrap;
	margin-top: -16px;
	margin-bottom: 6px;
	right: 120px;
	-webkit-animation-name: zoom;
	-webkit-animation-duration: 0.9s;
	animation-name: zoom;
	animation-duration: 0.9s;
	z-index: 999;
}
Look at this section in yours. You have left: 140px; and right: 140px; Change those 2 to 120px and we're good!

I'll have another update soon because I messed up on some other css also.
And I'm still going to create a separate sidebar menu for jv arcade. sniper_sidebarmenu_left.html
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [BETA] Sidebar Menu

Post by Sniper_E » Fri Apr 27, 2018 7:07 pm

OK guys, first post updated with Sidebars 2.0.1
GitHub is updated also.

Sorry I botched the css up last time and had to pull the download off the shelf.
It's repaired and back up now. Thank you for testing! :D
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [BETA] Sidebar Menu

Post by Sniper_E » Sat Apr 28, 2018 8:23 am

First post updated to version 2.0.2

This should be a good working copy. Please see if you can break it. :D
New snapshot on first post.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
RomaamoR
Registered User
Posts: 150
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [BETA] Sidebar Menu

Post by RomaamoR » Sat Apr 28, 2018 11:44 am

Works without problems. ;)

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Sidebar Menu

Post by Sniper_E » Mon Apr 30, 2018 10:52 pm

First post updated to version 2.0.4

Added acp module to hide empty menus on fresh installs.
Added an option to display header navbar with sidebars.
Added extended ucp links dropdown in header navbar.

This version should be complete if you guys don't find anything wrong.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
RomaamoR
Registered User
Posts: 150
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [DEV] Sidebar Menu

Post by RomaamoR » Tue May 01, 2018 6:43 am

Working. Do you plan fixed blocks when scrolling the page?

User avatar
Sniper_E
Registered User
Posts: 728
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Sidebar Menu

Post by Sniper_E » Tue May 01, 2018 10:17 pm

Well I was kind of counting this extension as complete.

The thing about the sidebars is they are inside of a wrapper and the forum is inside that same wrapper.
If I made the sidebar wrapper fixed then it would fix the forum also seeing how it's in the same wrapper.

I will play around with trying to make just the side wrappers fixed when you scroll down.
If I'm able to accomplish this task I will also add a switch in acp to enable fixed sidebars.

Is there anyone else interested in fixed sidebar menus? I guess it's always best to have all the options if possible.
And I have never seen fixed sidebar menus, but I will give it a try.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
RomaamoR
Registered User
Posts: 150
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [DEV] Sidebar Menu

Post by RomaamoR » Wed May 02, 2018 10:43 am

At us, in the CIS, have got used to blocks fixed. So it is more convenient. Do not spill the page.
Google translator. :D

User avatar
RomaamoR
Registered User
Posts: 150
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [DEV] Sidebar Menu

Post by RomaamoR » Wed May 02, 2018 4:34 pm

Sniper_E wrote:
Tue May 01, 2018 10:17 pm

Is there anyone else interested in fixed sidebar menus?
I. :)

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Mannix_, Schabirosky and 26 guests