collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 142
  • Dot Hidden: 0
  • Dot Users: 5
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • Skaty: [link]
    Yesterday at 02:54:27 PM
  • Skaty: tooltip in sp block
    Yesterday at 02:54:20 PM
  • Tattoocu_CarteL: neden adres yazınca link diye çikiyor direk adres çiksa olmaz mı
    May 19, 2013, 11:54:41 AM
  • Tattoocu_CarteL: [link]
    May 19, 2013, 11:54:26 AM
  • Old Fossil: Hey Nathaniel
    May 16, 2013, 09:41:05 AM
  • Nathaniel: lurk
    May 16, 2013, 03:19:14 AM
  • omidmavi1986: :'(
    May 15, 2013, 05:51:48 AM
  • DeToX: very nice simple mod's like!
    May 09, 2013, 01:32:03 PM
  • dhayzon: ;D
    May 09, 2013, 12:38:23 PM
  • dhayzon: xd
    May 09, 2013, 12:38:19 PM
  • dhayzon: hola y les hablo en español me gusta mucho el portal
    May 09, 2013, 12:38:12 PM
  • la muerte: If only I'd know how to fix it :D
    May 06, 2013, 11:24:15 AM
  • la muerte: I might have found the reason many sites have issues with shoutbox refresh looping on post etc [link]
    May 06, 2013, 11:23:57 AM
  • apo: elinize saglik beyler
    May 03, 2013, 02:08:40 PM
  • [SiNaN]: Well, you can't do much about it. I'm sure everyone is trying their best but it's not easy. At least old solved topics may provide a clue for those having similar problems I hope.
    May 02, 2013, 11:33:00 AM
  • JohnS: Wow! visited site earlier and 3 users online - that must be a record lately. I ca't see point of support pages here as number of posts with zero replies is big!
    May 02, 2013, 08:46:34 AM
  • rocknroller: what is up
    April 30, 2013, 02:06:06 PM
  • rocknroller: hey
    April 30, 2013, 02:05:53 PM
  • dhayzon: Shoutbox in an iframe is possible
    April 27, 2013, 11:00:14 AM

* Team Blog

* Recent Posts

Re: Only certain topics by dhayzon
[Today at 03:14:29 PM]


Re: Only certain topics by Old Fossil
[Today at 12:50:12 PM]


Re: Only certain topics by DeToX
[Today at 12:47:11 PM]


Re: auto ban/rejection on new members by igirisjin
[Today at 12:15:02 PM]


auto ban/rejection on new members by monbade
[Today at 11:48:02 AM]

Join us on IRC! Come on in to #simpleportal on the irc.villageirc.net server.

Author Topic: Putting a submenu in Home?  (Read 803 times)

0 Members and 1 Guest are viewing this topic.

Offline Crozz

  • Semi Newbie
  • *
  • Posts: 7
  • Gender: Male
  • umm
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Putting a submenu in Home?
« on: November 28, 2012, 03:29:04 AM »
I have SimplePortal 2.3.5 installed on SMF 2.0.2, this is not really a problem, I just want to put a submenu
in the Home (in this forum it would be - http://simpleportal.net/index.php), the button that usually shows when the portal is installed.
So I want to put two submenus, in Home and the Home button should be redirected to "#" or nothing.
I haven't gone over posting at SMF forum thought this would be a better place.

Thanks in advance.

Offline TinMan

  • Semi Newbie
  • *
  • Posts: 43
    • RC Arcade
Re: Putting a submenu in Home?
« Reply #1 on: November 28, 2012, 10:50:00 AM »
The menu button should be in your Sources/Subs.php

Find:
Code: [Select]
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),

To add sub buttons, an example may be something like:
Code: [Select]
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
'some_button' => array(
'title' => 'Button Name',
'href' => $scripturl . '?action=profile',
'show' => true,
),
'another_button' => array(
'title' => 'Button Name 2',
'href' => $scripturl . '?action=help',
'show' => true,
'is_last' => true,
),
),
),

For more info about adding buttons, check out the SMF Wiki page for it Here.

Offline Crozz

  • Semi Newbie
  • *
  • Posts: 7
  • Gender: Male
  • umm
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Putting a submenu in Home?
« Reply #2 on: November 29, 2012, 09:18:19 AM »
Thanks that worked, is it okay if I put like an "hxxp://www.somedomain.com/" link instead $scripturl?

Offline TinMan

  • Semi Newbie
  • *
  • Posts: 43
    • RC Arcade
Re: Putting a submenu in Home?
« Reply #3 on: November 29, 2012, 09:47:00 AM »
Yeah, just make it like...
Code: [Select]
'href' => 'hxxp://www.somedomain.com',and it should work fine.
« Last Edit: November 29, 2012, 09:55:20 AM by TinMan »

Offline AngelinaBelle

  • On Leave
  • *
  • Posts: 4343
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Putting a submenu in Home?
« Reply #4 on: February 05, 2013, 03:09:19 PM »
Crozz -- did that work for you?
I am glad you found the answer you needed right here. 

If this solved your problem, can you press the "topic solved" button below this topic?

Thanks!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?