Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2017, 10:34 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 157,159
Abronsyth is on a distinguished road
Default

I'm about to go to bed so I am keeping this short- I'm having an issue when trying to edit my shop where it is not recognizing that my uid is the shop_manager id, so it's telling me I don't own the shop.
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 12-30-2017, 07:43 AM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 93,350
Dinocanid is on a distinguished road
Default

Quote:
Originally Posted by Abronsyth View Post
I'm about to go to bed so I am keeping this short- I'm having an issue when trying to edit my shop where it is not recognizing that my uid is the shop_manager id, so it's telling me I don't own the shop.
I think it's because I forgot to add these variables to the "else" statement in public function edit() of shopcpview.php:
PHP Code:
$manager_id $shop->manager_id;
            
$uid $mysidia->user->uid
I re-uploaded the script in case that wasn't what was missing, but I think that's what I did.

EDIT: There's also a bug where premium currency would still subtract and proceed with giving you the pet, even if you don't have enough. Add this alongside the existing "money check" to fix it:
PHP Code:
$adopt_premium_price $_REQUEST["adopt_premium_price"];
$premium_money_check $mysidia->db->select("users", array("premiumcurrency"), "uid = '{$mysidia->user->uid}'")->fetchColumn();
elseif(
$premium_money_check $adopt_premium_price){
                    
$document->add(new Comment("<p>Whoops! You don't have enough premium currency to buy this pet!</p> <a href='/usershop/browse/{$shop_id}'>Continue shopping?</a>"));
                    return;
                } 
__________________

Last edited by Dinocanid; 12-30-2017 at 08:23 AM.
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


All times are GMT -5. The time now is 04:40 PM.

Currently Active Users: 3610 (0 members and 3610 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636