3.1.x Extensions Database 3.1 / 3.2Navbar

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Navbar

Post by dmzx »

Extension Name: Navbar
Author: dmzx

Special thanks to: martin & Sniper_E

Extension Description:
Extra navbar select menu use dmzx_navbar_quick_links as event to add the links.
Change language file to whatever you want the call the navbar menu.

See "Games" menu in navbar here.



Screenshot:
Image

Extension Download:
Download-link
Navbar v1.0.0
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `navbar`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `navbar` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/navbar/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Navbar` under the Disabled Extensions list, and click its `Enable` link.

User avatar

Null
Users
Users
Posts: 125
Joined: 09 Oct 2015, 06:03
    Windows 7 Chrome

Re: Navbar

Post by Null »

Download page is down.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Navbar

Post by dmzx »

Null wrote:Download page is down.
Updated :wink:

User avatar

Ostdarva
Users
Users
Posts: 74
Joined: 18 Sep 2015, 23:46
    Windows 7 Firefox

Re: Navbar

Post by Ostdarva »

Awweee someone upload a screenie. I wanna see this in action!
Add me on Twitter[https://twitter.com/DarvaTV] ImageCheck me out on Twitch! [https://twitch.tv/darvatv] Image

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Navbar

Post by dmzx »

First post updated :wink:

User avatar

Ostdarva
Users
Users
Posts: 74
Joined: 18 Sep 2015, 23:46
    Windows 7 Firefox

Re: Navbar

Post by Ostdarva »

Awesome! :tumbsyes:

User avatar

Null
Users
Users
Posts: 125
Joined: 09 Oct 2015, 06:03
    Windows 7 Chrome

Re: Navbar

Post by Null »

Have I to install dmzx_navbar_quick_links extension too?
Last edited by Null on 19 Oct 2015, 22:50, edited 1 time in total.

User avatar

Null
Users
Users
Posts: 125
Joined: 09 Oct 2015, 06:03
    Windows 7 Chrome

Re: Navbar

Post by Null »

Translation to Portuguese-Brazil: Download pt-br.rar from Sendspace.com - send big files the easy way

Translation to Spanish: Download es.rar from Sendspace.com - send big files the easy way

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25
    Windows 10 Chrome

Re: Navbar

Post by Jaantje »

Null wrote:have I to install dmzx_navbar_quick_links extension too?
/ext/dmzx/navbar/styles/prosilver/template/event/overall_header_navigation_prepend.html
Find This may be a partial find and not the whole line

Code: Select all

<!-- EVENT dmzx_navbar_quick_links -->
and place what you want, for example:
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

			<!-- IF S_USER_LOGGED_IN -->
				<li class="small-icon icon-ucp"><a href="{U_DM_SINKSHIP}">{L_DM_SINKSHIP}</a></li>
			<!-- ENDIF -->
Last edited by Jaantje on 20 Oct 2015, 11:09, edited 1 time in total.
Grreeetttttzzzzz, Jaantje

User avatar

Nully
Users
Users
Posts: 111
Joined: 08 Sep 2015, 12:29
    Windows 7 Firefox

Re: Navbar

Post by Nully »

Is it different from arty/extranav?

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Navbar

Post by martin »

No not the same as arty's as arty uses custom event in his themes.

i just rename the overall_header_navigation_append.html of what ever ext i want to dmzx_navbar_quick_links.html or i get double nav links 1 in quick link and 1 on navbar.

Custom links like this

Code: Select all

<!-- IF S_USERNAME eq "martin" -->
<li class="small-icon icon-pm"><a href="." title="{L_}" role="menuitem">{L_}</a></li>
<!-- ENDIF -->
i had into the nav ext direct.
Last edited by martin on 20 Oct 2015, 12:39, edited 2 times in total.
Image

User avatar

Nully
Users
Users
Posts: 111
Joined: 08 Sep 2015, 12:29
    Windows 7 Firefox

Re: Navbar

Post by Nully »

martin wrote: Custom links like this

Code: Select all

<!-- IF S_USERNAME eq "martin" -->
<li class="small-icon icon-pm"><a href="." title="{L_}" role="menuitem">{L_}</a></li>
<!-- ENDIF -->
i had into the nav ext direct.
:eyes2: So, I can use this code for my self and for other people?
I add:
<!-- IF S_USERNAME eq "people 1" -->
<!-- IF S_USERNAME eq "lady 2" -->
<!-- IF S_USERNAME eq "superman" -->
:question:

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Navbar

Post by martin »

Sure you can but the correct way to link is like this

Code: Select all

<li class="small-icon icon-faq" <!-- IF not S_USER_LOGGED_IN -->data-skip-responsive="true"<!-- ELSE -->data-last-responsive="true"<!-- ENDIF -->><a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">{L_FAQ}</a></li>
there is nothing stopping you from wraping an IF statment around custom code <!-- IF S_USERNAME eq "people 1" -->stinks<!-- ENDIF -->

example

Code: Select all

<!-- IF S_USERNAME eq "people 1" --><li class="small-icon icon-faq" <!-- IF not S_USER_LOGGED_IN -->data-skip-responsive="true"<!-- ELSE -->data-last-responsive="true"<!-- ENDIF -->><a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">{L_FAQ}</a></li><!-- ENDIF -->
or

Code: Select all

<!-- IF SCRIPT_NAME == "index" --><li class="small-icon icon-faq" <!-- IF not S_USER_LOGGED_IN -->data-skip-responsive="true"<!-- ELSE -->data-last-responsive="true"<!-- ENDIF -->><a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">{L_FAQ}</a></li><!-- ENDIF -->
the list can go on and on

User avatar

Nully
Users
Users
Posts: 111
Joined: 08 Sep 2015, 12:29
    Windows 7 Firefox

Re: Navbar

Post by Nully »

Very interesting! Every day I learn something new :thumbup:

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Navbar

Post by martin »

Here is one i'm using in my mchat body

Code: Select all

<!-- IF S_USERNAME eq "Jaantje" --><span style="font-weight:bold; padding-top:-10px;">[phpBB Debug] PHP Notice: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 504: Undefined variable: status</span><!-- ELSE --><span style="font-weight:bold; padding-top:-10px;">  Jaantje is seeing a debug here only he can see it lol.</span><!-- ENDIF -->
it shows Jaantje
[phpBB Debug] PHP Notice: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 504: Undefined variable: status Fake phpbb debug error :rolling:

and every one else see's this
Jaantje is seeing a debug here only he can see it lol.

And this for a prank send button

Code: Select all

<!-- IF S_USERNAME eq "Noname" -->	<input id="submit_button" type="button" class="button2" onclick="mChat.add(); myFunctions();" value="{L_MCHAT_ADD}" /><!-- ELSE -->
				<input id="submit_button" type="button" class="button2" onclick="mChat.add();" value="{L_MCHAT_ADD}"title="{L_MCHAT_SEND}" /><!-- ENDIF -->
Last edited by martin on 20 Oct 2015, 14:49, edited 1 time in total.

Post Reply Previous topicNext topic