Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2014, 06:40 AM
voni voni is offline
Member
 
Join Date: May 2014
Posts: 21
Gender: Female
Credits: 2,880
voni is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 05-13-2014, 10:32 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 87,038
Kyttias is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 05-13-2014, 12:47 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,263
IntoRain is on a distinguished road
Default

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 View Post
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.
__________________


asp.net stole my soul.
Reply With Quote
  #4  
Old 05-13-2014, 01:27 PM
voni voni is offline
Member
 
Join Date: May 2014
Posts: 21
Gender: Female
Credits: 2,880
voni is on a distinguished road
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! default theme won't change mythic Templates and Themes 3 10-05-2011 08:24 PM
how change this link ? :( kratosvr Questions and Supports 5 08-24-2011 09:09 AM
my theme no change :( kratosvr Questions and Supports 2 08-04-2011 12:24 PM
Let Guests Change Theme AlexC Questions and Supports 5 06-23-2011 06:44 PM
Change the link for adopting trollis76 Questions and Supports 3 04-20-2009 12:22 AM


All times are GMT -5. The time now is 05:19 AM.

Currently Active Users: 679 (0 members and 679 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636