Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 06-09-2020, 09:28 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 29,221
kristhasirah
Default

weird the code is not working for you, i tested it many times and worked, I even manage to make it part of the options in the admin panel, like the disable user to click their own adopts.
i can't truly help you with the other option, my levelup is very edited, i did try to add the first option to the levelupview.php, and got the message i can't feed others adopts, but the click still counted and got the same result in the levelup.php the click still counted.

the code in the quotes should work, because based on something that's already in the site... the other option i can think is to edit directly the
PHP Code:
        elseif($this->settings->owner == "disabled" and $this->adopt->getOwner() == $mysidia->user->username){
             throw new 
LevelupException("owner");               
        } 
to something like this:
PHP Code:
        elseif($this->adopt->getOwner() != $mysidia->user->username){
             throw new 
LevelupException("owner");               
        } 
or like this:
PHP Code:
        elseif($this->settings->owner == "enabled" and $this->adopt->getOwner() != $mysidia->user->username){
             throw new 
LevelupException("owner");               
        } 
if one of that options works then just edit the lang_levelup $owner to the message you want to display.
The only thing about editing this code is that the option to enable/disable the user to click their own adopts will become unusable, but if the second option works, then it will become the option to enable/disable the users from clicking others adopts.

just remember to backup your file before adding/editing something.
sorry I can't be of more help in this area. and sorry if i don't make sense some times... English is not my native language, so most of the time is kind of complicated for me to explain something >_>
__________________
Reply With Quote
 


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


All times are GMT -5. The time now is 09:36 PM.

Currently Active Users: 431 (0 members and 431 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