Main Menu
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 log in.

Who's Online

  • Dot Guests: 876
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

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]


NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

New Page Identifiers

Started by freeopkiller, April 04, 2010, 10:35:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freeopkiller

I'm trying to hide the forum menu on my main index page :
index.template.php

if ( ($hidemenu=="/index.php") or (SIMPLEPORTAL PAGE INDENTIFIER) )
        echo "my new menu";
else
template_menu();


This works for me on the main page. I'm trying to find an identifier that would also hide the menu in all pages I created within the admin/simpleportal/pagelist  is there a variable I can use to globally identify these pages to prevent the main menu from displaying ?
Thanks

Nathaniel

Try using "!empty($_GET['page'])" in your if statement.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

freeopkiller

#2
 
8) EXCELLENT !  Works Great, Hides menu on every page except smf core pages. Thank You, Much appreciated..



// File index.template.php

$hidemenu = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if ( ($hidemenu==$scripturl) or (!empty($_GET['page'])) )

  echo "my new menu";
else
  template_menu();

Sam12345

Hi
I am trying to achieve this in my custom theme but it is not working. Would you be kind enough to explain this a little further.
Thanks
Sam