FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 6 users online :: 0 Registered, 0 Hidden and 6 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

How to add forums to the Quick Navigation menu?

View previous topic View next topic Go down

Anonymous
Guest
Guest

PostGuest Thu 22 Dec 2016, 13:28

I'm not sure if this had been covered in another topic already. How to add forums to the Quick Navigation menu, just below 'Home' with an indent? Something like this:

How to add forums to the Quick Navigation menu? 2caa4bcb46844f3a822959d4616b0201


Paradiseng
Paradiseng

Gender : Male
Posts : 98
Points : 4082
Reputation : 19
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://www.nigerianpalace.com

PostParadiseng Thu 22 Dec 2016, 14:02

Thats what was in my mind... i love drop down menues
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5528
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Fri 23 Dec 2016, 06:17

@Samantha This is something slight I was working on.

Code:
$(function() {
    var active_tab = $('.fa_navactif').first(),
        breadcrumbs = $('.breadcrumbs').first();

    if (!active_tab.html() && breadcrumbs.html()) {
        var paths = breadcrumbs.find('span').length,
            i = 1,
            container = '',
            a, s = document.createElement('style');

        for (; i < paths; i++) {
            a = document.createElement('a');
            a.innerHTML = breadcrumbs.find('span')[i].innerHTML;
            a.className = 'mainmenu submenu' + i;
            a.href = breadcrumbs.find('a')[i].href;
            a.style = 'padding-left: ' + (10 + i * 10) + 'px';

            container += a.outerHTML;

            s.innerHTML += '#fae_sticky_nav_panel a.submenu' + i + ':after { width: ' + (5 + i * 10) + 'px; left: -' + +(5 + i * 10) + 'px; } ';
        }

        s.innerHTML += '#fae_sticky_nav_panel a[class^="mainmenu submenu"]:hover:after { left: 0; }';
        s.type = 'text/css';
        $('head').append(s.outerHTML);

        $('#fae_sticky_nav_panel a.mainmenu:has(img[alt="Home"])').after(container);
    }
});

It's not done but let me know what you think
Anonymous
Guest
Guest

PostGuest Fri 23 Dec 2016, 06:31

Yeah ty. If I can find the time and concentration I'll try it out. lol

I've got kids yelling at my head and so many tabs open, working on stuff everywhere on the test site + I've got to go out to do some shopping still lol
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5528
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Fri 23 Dec 2016, 06:33

Alright whenever you got timee How to add forums to the Quick Navigation menu? 1f60a
Anonymous
Guest
Guest

PostGuest Fri 23 Dec 2016, 06:35

yeah, that may be lots later today Confused Razz
Anonymous
Guest
Guest

PostGuest Fri 23 Dec 2016, 09:37

Ace 1 wrote:@Samantha This is something slight I was working on.

Code:
$(function() {
    var active_tab = $('.fa_navactif').first(),
        breadcrumbs = $('.breadcrumbs').first();

    if (!active_tab.html() && breadcrumbs.html()) {
        var paths = breadcrumbs.find('span').length,
            i = 1,
            container = '',
            a, s = document.createElement('style');

        for (; i < paths; i++) {
            a = document.createElement('a');
            a.innerHTML = breadcrumbs.find('span')[i].innerHTML;
            a.className = 'mainmenu submenu' + i;
            a.href = breadcrumbs.find('a')[i].href;
            a.style = 'padding-left: ' + (10 + i * 10) + 'px';

            container += a.outerHTML;

            s.innerHTML += '#fae_sticky_nav_panel a.submenu' + i + ':after { width: ' + (5 + i * 10) + 'px; left: -' + +(5 + i * 10) + 'px; } ';
        }

        s.innerHTML += '#fae_sticky_nav_panel a[class^="mainmenu submenu"]:hover:after { left: 0; }';
        s.type = 'text/css';
        $('head').append(s.outerHTML);

        $('#fae_sticky_nav_panel a.mainmenu:has(img[alt="Home"])').after(container);
    }
});

It's not done but let me know what you think

@Ace 1: I tried the script in Edge, but nothing showed...
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5528
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Fri 23 Dec 2016, 22:00

I plan to check this out when I install Edge. Sorry about that lol
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5528
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Sat 24 Dec 2016, 07:57

Wait @Samantha did you check if anything showed up while you were within a topic or forum?
Anonymous
Guest
Guest

PostGuest Sat 24 Dec 2016, 16:30

Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5528
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Sun 25 Dec 2016, 07:38

Uh...
Ace 1 wrote:Wait @Samantha did you check if anything showed up while you were within a topic or forum?
Anonymous
Guest
Guest

PostGuest Mon 26 Dec 2016, 21:10

Ace 1 wrote:Uh...
Ace 1 wrote:Wait @Samantha did you check if anything showed up while you were within a topic or forum?

Though we have just a few forums ands posts set up on our test site, I did check, even using different placements. Nothing showed. Having had a look at the script I think it's a creative thought having the breadcrumbs collected depending on the current browsing location. I still would like to know how to manually add forums to the Quick Nav though.

I think you should seriously consider creating an Edge test site for yourself to be able to better help people who are using Edge themselves Wink ty.
Ace 1
Ace 1
Valued Member
Gender : Unspecified
Age : 25
Posts : 2153
Points : 5528
Reputation : 95
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://fmdesign.forumotion.com/u190

PostAce 1 Wed 28 Dec 2016, 06:40

Like I envisioned, the script works fine in ForumActif Edge.

How to add forums to the Quick Navigation menu? Captur24
How to add forums to the Quick Navigation menu? Captur23

It's not a complex script. I know what I'm doing.

As for adding all your forums to the Quick Navigation panel, it's definitely possible, but it'll either have to be scripted heavily or you're going to have to enter every category and each one of it's forums and subforums. I could write a code that returns all forums and subforums within the category someone is within, but displaying more than one category's forums is too much.

What do you want to do @Samantha
Anonymous
Guest
Guest

PostGuest Wed 28 Dec 2016, 11:32

Uhu... And I know what's causing this not to work on my site. Compare the code below to your original code and you may want to make it a var ... Wink

Code:
$(function() {
            var active_tab = $('.fa_navactif').first(),
                breadcrumbs = $('.breadcrumbs').first();
       
            if (!active_tab.html() && breadcrumbs.html()) {
                var paths = breadcrumbs.find('span').length,
                    i = 1,
                    container = '',
                    a, s = document.createElement('style');
       
                for (; i < paths; i++) {
                    a = document.createElement('a');
                    a.innerHTML = breadcrumbs.find('span')[i].innerHTML;
                    a.className = 'mainmenu submenu' + i;
                    a.href = breadcrumbs.find('a')[i].href;
                    a.style = 'padding-left: ' + (10 + i * 10) + 'px';
       
                    container += a.outerHTML;
       
                    s.innerHTML += '#fae_sticky_nav_panel a.submenu' + i + ':after { width: ' + (5 + i * 10) + 'px; left: -' + +(5 + i * 10) + 'px; } ';
                }
       
                s.innerHTML += '#fae_sticky_nav_panel a[class^="mainmenu submenu"]:hover:after { left: 0; }';
                s.type = 'text/css';
                $('head').append(s.outerHTML);
       
                $('#fae_sticky_nav_panel a.mainmenu:has(img[alt="Index"])').after(container);
            }
        });

TY! Smile

But... there's still a challenge left. The current location hasn't been marked:

How to add forums to the Quick Navigation menu? B8f50f76f74549a8a748d4432aeaf2a4


As for adding all your forums to the Quick Navigation panel, it's definitely possible, but it'll either have to be scripted heavily or you're going to have to enter every category and each one of it's forums and subforums. I could write a code that returns all forums and subforums within the category someone is within, but displaying more than one category's forums is too much.

Yeah, I don't know. It's sad not all cats and forums can be displayed. Would be very nice to see that work. As for the current category to show all forums, I don't want this to be a personal drama for you and eat up all of your time coding it heavily. Then again, it's up to you to start working on it (or not), or wait for @Ange Tuteur or someone else to come up with a bright idea. Last resort should be the manual input, which was my original idea. To me it's still in an experimental phase at the moment and a 'very nice to have', not a 'should have'.
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum