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)
-   -   Adding in Adopt Shop (http://www.mysidiaadoptables.com/forum/showthread.php?t=3916)

SilverDragonTears 12-12-2012 06:30 PM

Alright, what are the shop.php edits so I can test it when I'm done?

Hall of Famer 12-12-2012 06:42 PM

Umm it seems to me that you need to overhaul the entire shop.php page. Can you notice the differences between the two versions of shop.php from Mys v1.3.1 and v1.3.2? In Mys v1.3.2, the script checks not only if a shopname is given, but also the shoptype. You need to find a way to set up if...else statement for the shoptype, otherwise you only get itemshop.

SilverDragonTears 12-12-2012 06:48 PM

Good grief. I can't do all this stuff :(

Hall of Famer 12-12-2012 07:44 PM

I am sure you are good enough to figure these out. Are you getting some specific error messages? o_o

SilverDragonTears 12-12-2012 08:19 PM

No I just don't know how to edit it.

Hall of Famer 12-12-2012 09:05 PM

Well you just need to replace some variables native to Mys v1.3.2 by their counterparts in Mys v1.3.1. But of course, with adoptshop you need to add some new if..else statement. Can be tricky, but you shouldnt have trouble with that. The logic should be something like this:

PHP Code:

if(user is not logged into the site){
    
// show error message, it's members only.
}
elseif(
user has not requested anything){
    
// show all available shops
}
elseif(
user has requested an itemshop){
    if(
user has requested an item to purchase){
       
// validate and complete transaction
    
}
    else{
       
// shows a list of items in itemshop
    
}
}
elseif(
user has requested an adoptshop){
    if(
user has requested an adoptable to buy){]
        
// validate and complete transaction
    
}
    else{
        
// shows a list of adoptables available
    
}
}
else{
    
// access denied for invalid actions



SilverDragonTears 12-12-2012 09:14 PM

I think it's just over my head at this point. Maybe I can find someone to help me at some point.

Hall of Famer 12-12-2012 10:51 PM

I will help you with that if I have time, right now I am busy working on the GUI project for Mys v1.3.3, which will take some time.


All times are GMT -5. The time now is 11:24 PM.

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