View Single Post
  #16  
Old 12-12-2012, 09:05 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 653,287
Hall of Famer is on a distinguished road
Default

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

__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote