Page 1 of 1

Removing Admin Link On Menu?

Posted: Wed Jan 05, 2005 3:41 pm
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!

May Have Answered Own Question...

Posted: Wed Jan 05, 2005 4:01 pm
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!

Removing Admin Link On Menu?

Posted: Wed Jan 05, 2005 4:07 pm
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}

Removing Admin Link On Menu?

Posted: Wed Jan 05, 2005 5:10 pm
by nosecretnow
Awesome. Thanks. I usually RTM, but hadn't thought about that help link.

Cheers!

Re: Removing Admin Link On Menu?

Posted: Sun Oct 09, 2005 5:18 pm
by EsquireX
Where's the manual you read?

Re: Removing Admin Link On Menu?

Posted: Mon Oct 10, 2005 2:17 am
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.