So Doze feel free to chime in here, but I found by changing the maxigallery.class.inc.php line 485 from this:
$rs1=$modx->db->query("INSERT INTO " . $this->pics_tbl . "(id, gal_id, filename, title, date, own_id) VALUES(NULL,'" . $this->pageinfo['id'] . "','" . $name . "',''," . $pic_date . ",'".$modx->getLoginUserID()."')");
to this
$rs1=$modx->db->query("INSERT INTO " . $this->pics_tbl . "(id, gal_id, filename, title, date, own_id) VALUES(NULL,'" . $this->pageinfo['id'] . "','" . $name . "',''," . $pic_date . ",'"."-".$modx->getLoginUserID()."')");
and changing line 667 in the maxigallery php file:
$sql = "SELECT * FROM " . $mg->pics_tbl . " WHERE gal_id='" . $mg->pageinfo['id'] . "' AND own_id='" . $modx->getLoginUserID() . "' ORDER BY " . $orderby . " " . $mg->mgconfig['order_direction'];
to this:
$sql = "SELECT * FROM " . $mg->pics_tbl . " WHERE gal_id=’" . $mg->pageinfo[’id’] . "’ AND own_id=’-" . $modx->getLoginUserID() . "’ ORDER BY " . $orderby . " " . $mg->mgconfig[’order_direction’];
Changing the first line allows maxigallery to process uploads with a -(userid) and then the subsequent phx modifier to work. The second change allows maxigallery to read the new negative owner id when managing.
Now my question becomes, what if anything have I broken and whether or not this is the appropriate method to go about it. And two, could a simple change to the phx parser code in the chunkie directory (to read the positive UID) been a better approach (without modifying the class & snippet script)?
any insight would be great.
-P