Jump to content
Hacktor

AdminStats Navigation links as QuickAccess Menu

Recommended Posts

In AdminStats is a Navigation menu with all the Statslinks (Visits and Visitors, Sales and orders, Customer accounts, Registered Customer Info, etc etc...).

I want the Statslinks in a menu like the QuickAccess menu

Can someone help me with this code plz.??? :kiss:

Share this post


Link to post
Share on other sites

To add those links to the Quick Access dropdown, go to Tools > Quick Accesses, click "Add new", then enter "Visits and visitors" as the name and "index.php?tab=AdminStatsModules&module=statsvisits" as the URL, then click Save. You can then select "Visits and visitors" in the Quick Access dropdown to go straight to that page. You can do the same with "Sales and orders" and "index.php?tab=AdminStatsModules&module=statssales", "Customer accounts" and "index.php?tab=AdminStatsModules&module=statsregistrations", "Registered customer info" and "index.php?tab=AdminStatsModules&module=statspersonalinfos", etc. Just go to the stats page and copy the "module=" part from the end of the URL for the other stats pages.

  • Like 1

Share this post


Link to post
Share on other sites

Sorry, thats not my question. I'll try it again...

In AdminStats is on the left side a "Navigation" menu with links called:
Visits and Visitors, Sales and orders, Customer accounts, Registered Customer Info, etc etc…

I want these items in a menu --like-- the QuickAccess menu

Can someone help me with this code plz.???


Visits and Visitors
Sales and orders
Customer accounts
Registered Customer Info


Sorry for my bad English...

Share this post


Link to post
Share on other sites

I don't understand. You want to replace all the links in the "Navigation" box on the Stats tab with a dropdown? Why would you want to do that? It means you have to click twice to navigate instead of once.

Share this post


Link to post
Share on other sites

If I understands correctly he wants to put drop-down in header next to Quick access links.
So you need to enter something like this in header.inc.php

            

Visitors
Online


but with changed php code from AdminStatsTab.php

    public function displayMenu($auto = true)
   {
       global $currentIndex, $cookie;
       $modules = $auto ? $this->getModules() : $this->getModules(false, false);

       echo ' '.$this->l('Navigation', 'AdminStatsTab').'';
       if (sizeof($modules))
           foreach ($modules AS $module)
           {
               $moduleInstance = Module::getInstanceByName($module['name']);
               if (!$moduleInstance)
                   continue;
               echo '
id_employee)).'&module;='.$module['name'].'">'.$moduleInstance->displayName.'';
       }
       else
           echo $this->l('No module installed', 'AdminStatsTab');
       echo ' ';
   }



But I am not sure what to import or what variables and functions you need.

28515_Ka1MW6HD3Hvma7LuuMgA_t

Share this post


Link to post
Share on other sites

Thanks Rockey, I don't have Tools > Quick Accesses in my Tool menu, how do I see that?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More