collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 492
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Adding a navigation button  (Read 5782 times)

0 Members and 1 Guest are viewing this topic.

Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Adding a navigation button
« on: November 21, 2014, 03:00:50 PM »
Hi Correct me if i am wrong. Am i in the correct area for support in adding a navigation button to my forum?
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adding a navigation button
« Reply #1 on: November 21, 2014, 04:37:34 PM »
There is instruction to create a block of navigation buttons that I posted a while back if that is what you are referring to.
However, if you are referring to adding buttons to the navigation array then you will need to install a SMF modification that allows adding custom content to it.

Please read this thread for some related links to your query:
http://simpleportal.net/index.php?topic=13722.msg67584#msg67584

Regards.

Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Re: Adding a navigation button
« Reply #2 on: November 21, 2014, 06:06:45 PM »
Hi
Yes I am referring to adding a button to the main navigation page.
I have tried adding this mod to my site but it didn't work.
So I was thinking about manually adding this to the page script myself with the guidance of someone more experienced than myself.
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”

Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Re: Adding a navigation button
« Reply #3 on: November 21, 2014, 08:12:35 PM »
Hi Again
Not to confuse matters here but somehow i have managed to install this mod ( 6 custom buttons ) in my forum and now i do have the button in the navigation bar.
However i am trying to enable this so i can add this as a separate page to the tree.
I have named the button FAQ
All i need now is to be able to place my content in it.
Any ideas on how?
Thanks
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adding a navigation button
« Reply #4 on: November 21, 2014, 08:16:56 PM »

That mod will allow 4 sub-menu entries for each button within its settings.
After applying any changes it may be necessary to clear your SMF cache to see the effects.

Regards.

Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Re: Adding a navigation button
« Reply #5 on: November 22, 2014, 08:32:38 AM »
I have looked to see if i could set the tab button but no such lucky.
I need to edit the page but in what area i am still confused.
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adding a navigation button
« Reply #6 on: November 22, 2014, 08:59:50 AM »
Tonymura,

  That mod works as expected and will allow you to enter your FAQ button to the navigation bar along with 4 entries in its sub-menu. You just need to clear the SMF cache in SMF Admin Maintenance to see the results of your changes. If you wish to edit the SMF file manually you will need to look in ../Sources/Subs.php

Do a search (ctrl-f or cmd-f) for the word help or home wthin the Subs.php file and you will find the array you need to edit. Make sure to make a copy of the file prior to your changes if you are not confident with being able to fix any syntax errors you may cause by making errors.

Regards.

Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Re: Adding a navigation button
« Reply #7 on: November 23, 2014, 03:41:18 AM »
Thanks for your help and all is working good.
i did what you have told me, however it does create sub menus that can be activated in the drop down list but the main tab is not active and redirect me to the home page.
I would think i am still not adding in the correct fields.
I will tinker around a bit more and keep you posted when i get this right.
Cheers
« Last Edit: November 23, 2014, 05:22:55 AM by Tonymura »
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Adding a navigation button
« Reply #8 on: November 24, 2014, 12:03:24 PM »
I'm also considering this as recent SMF themes are responsive for mobile devices. The main menu mods on SMF don't work with responsive themes!  Even so, I'm not sure how header menus would display of narrow width. Maybe someone needs to make a responsive  header menu mod.

I was surprised to see how many new menu mods there have been recently on SMF.
« Last Edit: November 25, 2014, 03:20:50 AM by andy »
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Re: Adding a navigation button
« Reply #9 on: November 24, 2014, 01:46:59 PM »
Good point i never consider this.
As i know the theme i have is a paid version and modified just for me, i was told it is a responsive theme, but having added this mod i am now considering if this will ever work.
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Adding a navigation button
« Reply #10 on: November 25, 2014, 03:24:35 AM »
Perhaps if it is limited to 1 or 2 top menu items it will work. I will try something similar by taking my extra Simple Portal page menu items out of the SMF menu and put them in the header - will be a quite long list of sub menus.

Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Adding a navigation button
« Reply #11 on: November 28, 2014, 04:57:57 PM »
Do you still require assistance with this one? The easiest way would be to create a new SimplePortal page with the content you want and manually add a link to the menu for that page. (like the ones we have in our top menu)
And slowly, you come to realize... It's all as it should be...

Offline Tonymura

  • Semi Newbie
  • *
  • Posts: 37
  • Gender: Male
  • Its always a good day when you learn something new
  • SMF Version: 2.0.9
Re: Adding a navigation button
« Reply #12 on: December 01, 2014, 06:03:13 AM »
Thank you for your help.
I have resolved this issue
« Last Edit: December 01, 2014, 01:25:41 PM by Tonymura »
And I looked into the eyes of our beloved Saint Pope John Paul the II for a sign of his blessing to my new mod and quietly he utters the silent word beneath his breath…..”Go away noob”