/ June 9, 2007

freewebspace writes:

The phpLD’s 3.2 version menu is some what different from it’s previous versions

The previous versions enable you to browse easily where as it is some what difficult with the latest version so I just tweaked the main.tpl so that it looks like previous versions menu

In init .php

Find

Quote:
$tpl->assign(‘menu’, $menu);


Below that there would be some codes

delete these codes

Quote:
$menu_elements = count ($menu);
$tpl->assign(‘menu_elements’, $menu_elements);

Then upload

all these files (except admin.js)

in the folder(admin/files) of the previous version to admin/files of 3.2 version

Then open templates/Core/admin/main.tpl of 3.2 version and add these codes

FIND THIS

Quote:
<link rel=”stylesheet” type=”text/css” href=”{$smarty.const.DOC_ROOT}/files/style.css” />

AND ADD this code below that

Quote:
<link rel=”stylesheet” type=”text/css” href=”{$smarty.const.DOC_ROOT}/files/menu.css” />


Then ADD this code between <!– /Header –> AND <!– Main Content –>

Then

Quote:
{* Show page title *}
{if !empty($title)}
<h1><span>{$title|escape|trim}</span></h1>
{/if}
{strip}
<DIV>
<div id=”page”>
<div class=”menugradient”>
<div id=”bar” class=”bar”>
<table cellspacing=”0″ cellpadding=”0″ id=”mainMenu” class=”XulMenu” border=”0″> <tr>
{foreach from=$menu item=mm key=mk}
<td valign=”top”>
<a class=”button” href=”{if is_array($mm)}javascript:void(0){else}{$mk}.php{/if}”>{if is_array($mm)}{$mm.label}{else}{$mm}{/if}</a>
{include file=”admin/menu.tpl” m=$mm}
</td>
{/foreach}
</tr>
</table>
</div>
</div>

 

<script type=”text/javascript”>

var mainMenu = new XulMenu(“mainMenu”);
mainMenu.arrow1 = “images/arrow1.gif”;
mainMenu.arrow2 = “images/arrow2.gif”;
mainMenu.init();

</script>

{if !empty($title)}
<h1>{$title|escape|trim}</h1>
{/if}

<div id=”content”>
<img src=”images/spacer.gif” height=”32″ width=”1″ alt=”” style=”float:left;”/>
{$content}
</div>
</div>
</DIV>
{/strip}

AND also upload menu.tpl of 3.1 version to here templates/core/admin/menu .tpl

AND DELETE the content between these tags in main.tpl of admin folder

<!– Main Content –> </!– Main Content –>

<!– Secondary Content –> <!– Secondary Content –>

Then save the file ,You are done!

Your admin panel will look like this

__________________