It is easy!
1) Add new link in admin/themes/admin/index.php at header of each post like:
/admin/index.php?privacy=25041&set=on
2) In header of admin/index.php add:
if (isset($_GET["privacy"]) && isset($_GET['set'])) {
if (intval($_GET["privacy"]) && ($_GET['set']=='on' || $_GET['set']=='off') ){
switch($_GET['set']){
case "on": //post
$set="1";
break;
case "off": //post
$set="0";
break;
}
$tumble->changePrivacyPost($_GET['privacy'],$set);
header("Location: index.php?changedPrivacy=true");
die();
}
}
3) In classes/gelato.class.php add function:
function changePrivacyPost($idPost,$set) {
$this->clearCache();
$fieldsArray['priv']=$set;
$this->db->modificarDeFormulario($this->conf->tablePrefix."data", $fieldsArray, "`id_post`='".$idPost.'");
}
4) Add 'priv' field to database to table "data". Type of boolean.
5) Change theme and /index.php to support $row.priv
It should be enough!