Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Remove 'Change Theme' link (http://www.mysidiaadoptables.com/forum/showthread.php?t=4493)

voni 05-13-2014 06:40 AM

Remove 'Change Theme' link
 
Hi

How do i remove the link 'Change Theme' from the side panel of links? I ask this because the members view has the 'Change Theme' link also and i don't want other templates other than the one I have worked on and decided to use as main/default template to be used. The other templates are a either test templates or not very good so i wouldn't want people switching to them.

I have tried to find what file the links are situated in but so far have been unable.

Kyttias 05-13-2014 10:32 AM

If you'd like to remove people's ability to select other Mysidia themes, log into the Admin CP go to Links > Edit Links and it will open up the Site Links Manager. All you have to do is remove the link that would take visitors to changestyle.

IntoRain 05-13-2014 12:47 PM

What Kyttias said, but remember the page won't disappear, users can still access it if they have the URL (if they have experience with other mysidia websites, they might know). Add this to the changestyle.php file, to make it accessible to only admins

if(!($mysidia->user instanceof Admin)) throw new NoPermissionException("No permission to access this page.");

after this part:

PHP Code:

public function index(){
        
$mysidia Registry::get("mysidia");
//add here
... 

Quote:

Originally Posted by voni (Post 29811)
Hi

I have tried to find what file the links are situated in but so far have been unable.

Something about this, most of the site settings (such as links) and information on users/pets/items/... is not in any file at all, they are usually stored in database and then on the php side they are retrieved by the page and formatted to be displayed, that's why you couldn't find them.

voni 05-13-2014 01:27 PM

thankyou! thats sorted now. time to make me little animals :)


All times are GMT -5. The time now is 01:25 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.