VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Topic started by: GixxerMKD on July 18, 2011, 19:45:34 pm

Title: Adding another menu item in vm administration?
Post by: GixxerMKD on July 18, 2011, 19:45:34 pm
Hi guys,

i wan't to add another menu in vm admin, between manufacturer and help menus. I've created new module called "transactions", then opened header.php and added this code:

Code: [Select]
case 'Transactions':
?>
<h3 class="title-smenu" title="transactions" onclick="SwitchMenu('<?php echo $modCount ?>')">
<?php echo "Transactions"
?>

</h3>
<div class="section-smenu">
<ul>

<li class="item-smenu vmicon vmicon-16-content">
<a href="<?php $sess->purl($_SERVER['PHP_SELF']."?pshop_mode=admin&amp;page=baze"?>">Transactions</a>
</li>

</ul>
</div>
<?php 
$modCount++;
break;


so now i can see the menu item, but when i click on it i get "ERROR You do not have permission to access the requested module. " even thou i have selected admin and storeadmin in "Module Perms:".

The strange thing is that i see the file (baze.php) rendered above the menu  :o

What i want to achieve is to load the file content inside virtuemart admin, if i'm doing it wrong please let me know what's the procedure..

thanks,
Gixxer
Title: Re: Adding another menu item in vm administration?
Post by: PRO on July 18, 2011, 19:52:41 pm
Did you enable it in functions?
Title: Re: Adding another menu item in vm administration?
Post by: GixxerMKD on July 18, 2011, 20:06:27 pm
nope, the functions list is empty...should i create new function? if so can i kindly ask you to let me know what should be in there?

thanks
Title: Re: Adding another menu item in vm administration?
Post by: PRO on July 18, 2011, 20:32:24 pm
I dont know exactly how to do this.

Title: Re: Adding another menu item in vm administration?
Post by: GixxerMKD on July 18, 2011, 20:41:37 pm
Thanks for your time mate, at least you tried to help ;)

anyone else knows how can i add custom menu item in administration?