Removing Admin Link On Menu?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
nosecretnow

Removing Admin Link On Menu?

Post by nosecretnow »

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!
nosecretnow

May Have Answered Own Question...

Post by nosecretnow »

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:

Code: Select all

	if ($showadmin == 1)
	{
		$menu .= ".|---\n";
		$menu .= ".|Admin|admin/\n";
	}
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!
heavy
Forum Members
Forum Members
Posts: 23
Joined: Tue Jul 13, 2004 3:13 pm

Removing Admin Link On Menu?

Post by heavy »

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}
Look for more CMS help in #cms on Freenode IRC
nosecretnow

Removing Admin Link On Menu?

Post by nosecretnow »

Awesome. Thanks. I usually RTM, but hadn't thought about that help link.

Cheers!
EsquireX

Re: Removing Admin Link On Menu?

Post by EsquireX »

Where's the manual you read?
westis

Re: Removing Admin Link On Menu?

Post by westis »

EsquireX wrote: Where's the manual you read?
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.
Locked

Return to “CMSMS Core”