Allan Posted February 23, 2011 Report Share Posted February 23, 2011 I have recently installed the pilot shop, and my Admin Nav Bar is screwed any help would be appreciated. Image viewed at http://usaflightclub.com/adminnav.jpg Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 23, 2011 Report Share Posted February 23, 2011 A quick search reveals that I posted a fix to this in the Old Idea being Rehashed thread in the Addons area. To fix the admin nav, simply do the following FIND <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/layout/images/settings_icon.gif" />Addons</a> <ul style="padding: 0; margin: 0;"> <?php echo $MODULE_NAV_INC; ?> </ul> </li> ADD AFTER <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/images/shopadmin.png" />Shop Admin</a> <ul style="padding: 0; margin: 0;"> <li><a href="<?php echo SITE_URL?>/admin/index.php/ShopAdmin/shopsoverview">Overview</a></li> </ul> </li> That will fix the sidebar nav for the admin page. Realistically, this Pilot SHop module needs it's own admin module due to the fact that every single time you upgrade your website, you are going to over write that file and have to come back in later and re add that code to the admin/templates/core_navigation.tpl file. It needs to be made in the admin panel like Simpilot's Events Module. I am still trying to figure outhow to do just that. Once I do, I will fix the files and give them to the chap who reuploaded the file. I am really hoping to get everything on that module fixed so we can all have one good file and get rid of all the others that need fixing. Quote Link to comment Share on other sites More sharing options...
Allan Posted February 23, 2011 Author Report Share Posted February 23, 2011 Crap forgot to mention that I had Simpilots tour mod and staff menu install, im a noob at this stuff. Also I cant find that source in my code. Regards, Allan Quote Link to comment Share on other sites More sharing options...
Allan Posted February 23, 2011 Author Report Share Posted February 23, 2011 I found my back up file I knew I backed it up just could not find it for the life of me, Thanks for the quick response. Allan Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 23, 2011 Report Share Posted February 23, 2011 No probs. I would recommend putting the code that I gave you after the code that I showed you. I find it works best that way really. And really it has nothing to do with Simpilot's modules. I was just comparing how the author of the Pilot shop modded his module verses the correct way like Simpilot did. Hope you get it sorted out. Now please note, when you click the over view for pilot shop, you are going to get an error. That error will go away once you add a type, a shop, and a product. I think it needs coded so that it shows an error page explaining what is wrong rather than toss out a error code. Quote Link to comment Share on other sites More sharing options...
Allan Posted February 23, 2011 Author Report Share Posted February 23, 2011 Thanks Ray for all your help. Regards, Allan Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 23, 2011 Report Share Posted February 23, 2011 Thanks Ray for all your help. Regards, Allan Not a problem at all. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 24, 2011 Administrators Report Share Posted February 24, 2011 What you guys can do is restore the original core_navigation file on the admin side and then add the correct code to the pilot shop admin module file; public function NavBar() { echo '<li><a href="'.SITE_URL.'/admin/index.php/PilotShop">Pilot Shop</a></li>'; } I am not sure the "PilotShop" part is right, that should be the name of the module on the admin side, but this will add a link for it under the "AddOns" section of the menu and never be overwritten in an update. Quote Link to comment Share on other sites More sharing options...
Allan Posted February 24, 2011 Author Report Share Posted February 24, 2011 Ya thanks for the heads up I actually took it out, if its not simpilots I don't want to use it, no offense to anyone's work. I am looking for something that pilots can actually use their virtual cash on. Regards, Allan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.