This is prolly quite simple, but I'm fairly new to PHP coding. I had no trouble at all getting everything up and running on my web server and all looks ok. Created a couple pages so far, menu looks good.
But I want to remove the "Admin" link since I've already created a shortcut to the admin area of my website and use that to access it through my browser. How do I remove the Admin link from the menu? I figure it is better not to give potential trouble makers a link they can click and spend three hours trying to "crack" my username and password (my weblogs show this very thing).
Many thanks for offering me a solution and a fine THANK YOU for a fantastic job well done. After spending over 6 months trying to find a CMS that simply let me create web pages and an automated menu system, this project is precisely what I needed - couldn't ask for better! I run Gentoo Linux / FireFox and this CMS eliminates my prior need to use an HTML editor application and an FTP application. SHWEET!
Removing Admin Link On Menu?
May Have Answered Own Question...
Using an application to scan for words in text documents, I scoured the php code and came across the following code in functions.php in the PHPLayers directory:
I then deleted that code and saved functions.php and now the Admin link no longer appears on my menu. Is this ok or is there a more proper way to accomplish this? I am afraid I may break something in the PHP if somewhere it relies on the code above (which no longer exists now in functions.php).
Thanks!
Code: Select all
if ($showadmin == 1)
{
$menu .= ".|---\n";
$menu .= ".|Admin|admin/\n";
}
Thanks!
Removing Admin Link On Menu?
If you go to the Plugin Management screen and click on the Help for the phplayers module you will see that you can simply include showadmin=0 in your module definition.
eg: {cms_module module="phplayers" showadmin=0}
eg: {cms_module module="phplayers" showadmin=0}
Look for more CMS help in #cms on Freenode IRC
Removing Admin Link On Menu?
Awesome. Thanks. I usually RTM, but hadn't thought about that help link.
Cheers!
Cheers!
Re: Removing Admin Link On Menu?
There are help files for all modules in Extensions > Modules and for tags in Extensions > Tags. There you see lists of all the modules & tags that you have uploaded, with a Help link for each one of them.EsquireX wrote: Where's the manual you read?