View Single Post
  #10  
Old 12-01-2015, 02:49 AM
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: 587,967
Hall of Famer is on a distinguished road
Default

I see, I dont think this is possible without some kind of modification to the script. You can find a list of item functions available from admin control panel, and I dont recall access to a hidden shop is one of the functionality in the default package. You can, however, enable one-time access to a custom page per item use. So there is a way to work around, as you can just create a custom page and put the link to your shop in this page.

But anyway, if you want to access a hidden shop(or any shop) by the shopname, you can change this block of code(the browse method) in shop.php:

PHP Code:
    public function browse(){
        
$mysidia Registry::get("mysidia");        
        
$shoptype $mysidia->db->select("shops", array("shoptype"), "shopname = '{$mysidia->input->get("shop")}'")->fetchColumn();
        
$shoplist = new Shoplist($shoptype);
        
$shop $shoplist->createshop($mysidia->input->get("shop"));
        
$this->setField("shop"$shop);
    } 
To this:

PHP Code:
    public function browse(){
        
$mysidia Registry::get("mysidia");        
        
$shoptype $mysidia->db->select("shops", array("shoptype"), "shopname = '{$mysidia->input->get("shop")}'")->fetchColumn();
        
$shoplist = new Shoplist($shoptype"all");
        
$shop $shoplist->createshop($mysidia->input->get("shop"));
        
$this->setField("shop"$shop);
    } 
This will create a shoplist object with fetchmode 'all', which will find even hidden shops for you. Hope it solves your problem with hidden shop display.
__________________


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