Easy Menu for phpBB3 Styles like proSilver

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Anti-Spam Guide
Locked
DMS|Instinct
Registered User
Posts: 28
Joined: Tue Mar 27, 2007 10:15 am

Re: Easy Menu for phpBB3 Styles like proSilver

Post by DMS|Instinct » Sat Nov 15, 2008 11:56 am

Could it be that the code is obsolete with the new phpbb 3.03 version and causes errors?

User avatar
DiegoPino
Registered User
Posts: 135
Joined: Thu Oct 27, 2005 1:30 am
Location: Colombia
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by DiegoPino » Tue Nov 18, 2008 5:20 pm

Simuzer wrote:Preview
Image

Demo
http://www.simuzer.com

Demo site is Turkish and these for English means
  • Ana Sayfa -> Home Page
  • Mesaj Panosu -> Board
  • Arama -> Search
  • Üyeler -> Member List
  • Pano Kılavuzu -> FAQ
If you have portal.php for main page

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

styles/prosilver/template/overall_header.html

#
#-----[ FIND ]---------------------------------
#

          <div class="navbar">

#
#-----[ ADD BEFORE ]------------------------------------------
#

    <div id="tabs">
       <ul>
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php' --> class="activetab"<!-- ENDIF -->><a href="{U_PORTAL}"><span>{L_PORTAL}</span></a></li>
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewforum.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewtopic.php' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>
          <!-- IF S_DISPLAY_SEARCH --><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'search.php' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH}</span></a></li><!-- ENDIF -->
          <!-- IF S_DISPLAY_MEMBERLIST --><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'memberlist.php' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'faq.php' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
       </ul>
    </div>
#
#-----[ SAVE ]------------------------------------------
#
If you have no portal.php

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

    styles/prosilver/template/overall_header.html

#
#-----[ FIND ]---------------------------------
#

          <div class="navbar">

#
#-----[ ADD BEFORE ]------------------------------------------
#

    <div id="tabs">
       <ul>
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewforum.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewtopic.php' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>
          <!-- IF S_DISPLAY_SEARCH --><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'search.php' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH}</span></a></li><!-- ENDIF -->
          <!-- IF S_DISPLAY_MEMBERLIST --><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'memberlist.php' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'faq.php' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
       </ul>
    </div>
#
#-----[ SAVE ]------------------------------------------
#
Hola.

I have tried, but I didn't get it to work. What could be the reason.... i purge the Cache via ACP and FTp but still show that error:

Code: Select all

Parse error: syntax error, unexpected '(' in /home94/su08/sc8320-OAI/www/DIM/cache/tpl_prosilver_overall_header.html.php on line 126
Demo: http://dim.we11.net/
version: phpbb 3.03


mi code in that line
<li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER[
Full Code:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!--
	phpBB style name: prosilver
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by:      
	
	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{LA_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var style_cookie_settings = '{A_COOKIE_SETTINGS}';
	var onload_functions = new Array();
	var onunload_functions = new Array();

	<!-- IF S_USER_PM_POPUP -->
		if ({S_NEW_PM})
		{
			var url = '{UA_POPUP_PM}';
			window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
		}
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username(url)
	{
		popup(url, 760, 570, '_usersearch');
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (var i = 0; i < onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

<div id="wrap">
	<a id="top" name="top" accesskey="t"></a>
	<div id="page-header">
		<div class="headerbar">
			<div class="inner"><span class="corners-top"><span></span></span>

			<div id="site-description">
				<a href="{U_PORTAL}">{L_PORTAL}</a> &#187; <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p>
				<p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
			</div>

		<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
			<div id="search-box">
				<form action="{U_SEARCH}" method="post" id="search">
				<fieldset>
					<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" /> 
					<input class="button2" value="{L_SEARCH}" type="submit" /><br />
					<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
				</fieldset>
				</form>
			</div>
		<!-- ENDIF -->

			<span class="corners-bottom"><span></span></span></div>
		</div>

		<div class="navbar">
        <div id="tabs">
       <ul>
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewforum.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewtopic.php' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>
          
          <!-- IF S_DISPLAY_SEARCH --><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'search.php' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH}</span></a></li><!-- ENDIF -->
          
          <!-- IF S_DISPLAY_MEMBERLIST --><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'memberlist.php' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
          <li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'faq.php' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
       </ul>
    </div>
        
         <div id="tabs">
       <ul>
          <!-- IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php' --> class="activetab"<!-- ENDIF -->><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php' --> class="activetab"<!-- ENDIF -->><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php' --> class="activetab"<!-- ENDIF -->><a href="{U_PORTAL}"><span>{L_PORTAL}</span></a></li>
          <!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewforum.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewtopic.php' --> class="activetab"<!-- ENDIF -->><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewforum.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewtopic.php' --> class="activetab"<!-- ENDIF -->><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'index.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewforum.php' or basename($_SERVER['SCRIPT_NAME']) == 'viewtopic.php' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>
          <!-- IF S_DISPLAY_SEARCH --><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'search.php' --> class="activetab"<!-- ENDIF -->><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'search.php' --> class="activetab"<!-- ENDIF -->><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'search.php' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH}</span></a></li><!-- ENDIF -->
          <!-- IF S_DISPLAY_MEMBERLIST --><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'memberlist.php' --> class="activetab"<!-- ENDIF -->><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'memberlist.php' --> class="activetab"<!-- ENDIF -->><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'memberlist.php' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
          <!-- IF basename($_SERVER['SCRIPT_NAME']) == 'faq.php' --> class="activetab"<!-- ENDIF -->><!-- IF basename($_SERVER['SCRIPT_NAME']) == 'faq.php' --> class="activetab"<!-- ENDIF -->><li<!-- IF basename($_SERVER['SCRIPT_NAME']) == 'faq.php' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
       </ul>
    </div>
        
			<div class="inner"><span class="corners-top"><span></span></span>

			<ul class="linklist navlinks">
				<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

				<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>

				<!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
			</ul>

			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
			<ul class="linklist leftside">
				<li class="icon-ucp">
					<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u">{L_PROFILE}</a>
						<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull; 
					<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
					<!-- IF U_RESTORE_PERMISSIONS --> &bull;
					<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
					<!-- ENDIF -->
				</li>
			</ul>
			<!-- ENDIF -->

			<ul class="linklist rightside">
				<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
				<!-- IF not S_IS_BOT -->
					<!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
					<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
					<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l">{L_LOGIN_LOGOUT}</a></li>
				<!-- ENDIF -->
			</ul>

			<span class="corners-bottom"><span></span></span></div>
		</div>

	</div>

	<a name="start_here"></a>
	<div id="page-body">
		
		 <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
		<div id="message" class="rules">
			<div class="inner"><span class="corners-top"><span></span></span>
				<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<!-- ENDIF -->

Thanks So much for the Support


:ugeek:
We11World [ Winning Eleven ] , Blog , PinoStudio1 , Archive Forums

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by Balint » Wed Nov 19, 2008 7:13 pm

Hi guys!

The code does NOT work for 3.0.3 anymore, you have to replace

Code: Select all

IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php'
with

Code: Select all

IF $_SERVER['SCRIPT_NAME'] == '/portal.php'
(remove the "basename" and the parentheses around $_SERVER['SCRIPT_NAME'] and add a "/" before the name of the script) If your forum is in a subdirectory, you may have to change the script like this:

Code: Select all

IF $_SERVER['SCRIPT_NAME'] == '/forum/portal.php'
Repeat the changes with all TABs and clear the cache, it'll work...


Greets,
Bálint

thenickdude
Registered User
Posts: 16
Joined: Mon Nov 17, 2008 6:28 am

Re: Easy Menu for phpBB3 Styles like proSilver

Post by thenickdude » Thu Nov 20, 2008 2:13 am

You can get the same effect (without having to worry about subdirectories) by replacing it with SCRIPT_NAME on its own (it has basename applied to it already)

shashasha
Registered User
Posts: 2
Joined: Thu Apr 03, 2008 3:49 am

Re: Easy Menu for phpBB3 Styles like proSilver

Post by shashasha » Sat Dec 27, 2008 8:27 pm

I have everything working with this if I use the following code. This will work regardless of the location in which the forum is installed.

Replace

Code: Select all

IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php'
with

Code: Select all

IF SCRIPT_NAME == 'portal'
Remove everything but SCRIPT_NAME (including all quotes, parens, and brackets) and remove the .php after the script name.

Repeat the changes with all TABs and clear the cache.

Doug
The Shashasha
1/4/-/5/1
Naga • Abomination • Dance Instructor • Unique
Shashasha may remain bowed.
Limited: Bow Shashasha and target any female personality in play. The target is bowed and remains bowed while Shashasha is bowed.
"I think it's cha-cha-cha, but he has a funny accent..."
Image
Image

User avatar
matt1206
Registered User
Posts: 213
Joined: Wed Mar 08, 2006 3:04 pm
Location: Sheffield, UK
Name: Matt Worthington

Re: Easy Menu for phpBB3 Styles like proSilver

Post by matt1206 » Sat Dec 27, 2008 9:56 pm

shashasha wrote:I have everything working with this if I use the following code. This will work regardless of the location in which the forum is installed.

Replace

Code: Select all

IF basename($_SERVER['SCRIPT_NAME']) == 'portal.php'
with

Code: Select all

IF SCRIPT_NAME == 'portal'
Remove everything but SCRIPT_NAME (including all quotes, parens, and brackets) and remove the .php after the script name.

Repeat the changes with all TABs and clear the cache.

Doug
Just done this to mine, and the active tabs are now working :)

User avatar
thejdm
Registered User
Posts: 438
Joined: Sun Dec 21, 2003 4:18 pm
Location: pennsylvania
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by thejdm » Thu Jan 01, 2009 6:36 pm

fresh install of latest phpbb3. and now im getting an error with this..

Parse error: syntax error, unexpected '(' in /home/thejdm/public_html/forum/includes/template.php(614) : eval()'d code on line 125

any ideas? what would cause this?
www.thejdm.com ...turn it on, y0

User avatar
thejdm
Registered User
Posts: 438
Joined: Sun Dec 21, 2003 4:18 pm
Location: pennsylvania
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by thejdm » Mon Jan 05, 2009 2:40 am

reading > me.

found out what my problem was. but im still not picking up an active tab. what would cause this? the long url name extensions?

also looking back on my 'beta' forum where i was testing all this out, before the release of the latest phpBB. i was able to make a new indextab in the colour.css file i re-did this on the latest version and its not picking it up at all?

the latest version of phpBB changed a lot. wow.

*edit*
figured all of the css edits i needed. NOW im still not picking up an active tab, anyone feel like taking a stab at this? haha.

*final edit*
FINALLY! just removed the .php haha DOH!
www.thejdm.com ...turn it on, y0

MrC
Registered User
Posts: 857
Joined: Mon Jun 30, 2003 4:11 pm
Location: The Netherlands
Name: Ivo
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by MrC » Sat Feb 21, 2009 2:02 pm

@ thejdm

Can you please post the code of the tabs you are using now?

User avatar
wads24
Registered User
Posts: 529
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: Easy Menu for phpBB3 Styles like proSilver

Post by wads24 » Wed Feb 25, 2009 9:19 am

nicholas.alipaz wrote:got the ucp to light up properly and my inbox to do the same. Had to do the following:
http://www.phpbb.com/community/viewtopi ... 5#p4527375
I tried the above link, and got the user CP to work, but still can't get the new messages to work. Below is my code, i did edit the ucp.php and still nothing.... it doesn't go active for me...

Code: Select all

<!-- IF not $S_IN_PORTAL or not S_DISPLAY_MAINMENU -->

<div id="tabs">
   <ul>
      <li<!-- IF $_SERVER['SCRIPT_NAME'] == '/portal.php' --> class="activetab"<!-- ENDIF -->><a href="{U_PORTAL}"><span>{L_PORTAL}</span></a></li>
      <li<!-- IF $_SERVER['SCRIPT_NAME'] == '/faq.php' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
<!-- IF not S_IS_BOT --><li><a href="/chat" title=" LIVE CHAT" rel="lyteframe" rev="width: 610px; height: 540px; scrolling: no;"><span>Chat</span></a></li><!-- ENDIF -->

    <!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><li class="{MAKE_UCP_ACTIVE}"><a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u"><span><img src="styles/prosilver/theme/images/icon_ucp.gif" />&nbsp;{L_PROFILE}</span></a></li>

    <!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><li class="{MAKE_INBOX_ACTIVE}"><!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}"><span><img src="styles/prosilver/theme/images/icon_sendemails.gif" />&nbsp;{PRIVATE_MESSAGE_INFO}</span></a><!-- ENDIF --></li><!-- ENDIF -->
      <li<!-- IF $_SERVER['SCRIPT_NAME'] == '/search.php' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH_SELF}"><span>{L_SEARCH_SELF}</span></a></li>
<!-- IF U_RESTORE_PERMISSIONS -->
      <li><a href="{U_RESTORE_PERMISSIONS}"><span>{L_RESTORE_PERMISSIONS}</span></a></li>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --> <li<!-- IF $_SERVER['SCRIPT_NAME'] == '/memberlist.php' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li><a href="{U_REGISTER}"><span>{L_REGISTER}</span></a></li><!-- ENDIF -->
      <li><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l"><span>{L_LOGIN_LOGOUT}</span></a></li>
<!-- ENDIF -->

   </ul>
</div>

<!-- ENDIF -->
Thanks in advance for a reply.

User avatar
dethis
Registered User
Posts: 34
Joined: Fri Oct 17, 2008 8:14 pm
Location: Lisboa, Portugal

Re: Easy Menu for phpBB3 Styles like proSilver

Post by dethis » Wed Mar 04, 2009 9:32 pm

Just to let know that i have it working on 3.0.4 using this code (no portal)

Code: Select all

    <div id="tabs">
       <ul>
          <li<!-- IF SCRIPT_NAME == 'index' or SCRIPT_NAME == 'viewforum' or SCRIPT_NAME == 'viewtopic' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>
          <!-- IF S_DISPLAY_SEARCH --><li<!-- IF SCRIPT_NAME == 'search' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH}</span></a></li><!-- ENDIF -->
          <!-- IF S_DISPLAY_MEMBERLIST --><li<!-- IF SCRIPT_NAME == 'memberlist' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
          <li<!-- IF SCRIPT_NAME == 'faq' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
       </ul>
    </div>

User avatar
thejdm
Registered User
Posts: 438
Joined: Sun Dec 21, 2003 4:18 pm
Location: pennsylvania
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by thejdm » Thu Mar 05, 2009 11:12 am

personally i like the old code batter (when it worked) where you could use the .php name to call the active tabs. the new version seems like it could interfere with other mods if they have the same name for the file.

is there a way to call it to be active on a folder? for instance..

i have a gallery installed and when i add SCRIPT_NAME == 'gallery/' nothing happens. i need to call the php file names for instance SCRIPT_NAME == 'menu' but the menu and all the other files are in the gallery folder. i know the old code you were able to jst put gallery/ or portal/ and it would work for any file in that folder. i guess thats not going to happen anymore? i found myself browsing my gallery tying to find the edits and noticed my 'forum' tab being active at certain times because of the edits not being able to be pinpointed to my gallery folder and the gallery files used the same name as the original forum files. (not really a problem, just 1 of those 'man that bugs me')
www.thejdm.com ...turn it on, y0

Trash-Master
Registered User
Posts: 20
Joined: Tue Nov 25, 2008 6:21 pm

Re: Easy Menu for phpBB3 Styles like proSilver

Post by Trash-Master » Sun Apr 19, 2009 7:01 pm

How does this work with URL Parameters?

Simply

Code: Select all

<!-- IF $_SERVER['SCRIPT_NAME'] == '/phpbb3/ucp.php?i=mypage&mode=edit' -->
does not work.

Best Regards,
Trash-Master
phpBB Version: 3.0.4
Style: Prosilver, Prosilver SE

njoob
Registered User
Posts: 56
Joined: Sat Aug 04, 2007 12:59 pm

Re: Easy Menu for phpBB3 Styles like proSilver

Post by njoob » Mon Apr 27, 2009 12:06 pm

How to place Easy Menu to the right side? Help please.

crusi
Registered User
Posts: 103
Joined: Sat May 24, 2008 1:58 pm
Location: Germany
Contact:

Re: Easy Menu for phpBB3 Styles like proSilver

Post by crusi » Sun May 03, 2009 2:16 pm

Hi all,

that menu is exactly for what i am looking for. But i have a few little problems to configure it.

I want to configure it in the same as way as the menu in the ucp works... I want to use it to switch the content from one site and not the whole site...

Is this possible and what i have to change? Maybe anybody here can help me out with this?

Example how it should work:
Link: http://www.phpbb-seo.de/downloads/mod-m ... -base.html
Best regards,
Crus

Locked

Return to “[3.0.x] Styles Support & Discussion”