A few questions are in relation to the extended possibilities of Gelato

33 views
Skip to first unread message

Mixa

unread,
Aug 6, 2007, 3:47:26 AM8/6/07
to Gelato CMS
Kind day! Does interest me, is it possible somewhere to get the
version of Gelato, which is utillized on Tumblr? If no, as is it
independently possible to add small text editor, comments? And main,
that does interest me, is it possible to do so that separate posts
were hidden from all and accessible only for the proprietor of blog?

pecesama

unread,
Aug 9, 2007, 7:06:20 PM8/9/07
to Gelato CMS
Miza, gelato is not running tumblr.

Comments will be available on the next release, coming very soon.

Mixa

unread,
Aug 11, 2007, 9:17:50 AM8/11/07
to Gelato CMS
It is good! But as in relation to the hidden reports and posting by an
old date?

pecesama

unread,
Aug 11, 2007, 9:13:31 PM8/11/07
to Gelato CMS
By the moment is not possible to hidden posts, could be possible if
you touch a few the code using the users.class.php

What do you mean with posting by old date?

> > > were hidden from all and accessible only for the proprietor of blog?- Hide quoted text -
>
> - Show quoted text -

Mixa

unread,
Aug 12, 2007, 2:18:44 PM8/12/07
to Gelato CMS
> By the moment is not possible to hidden posts, could be possible if
> you touch a few the code using the users.class.php

Are there some instructions, how to realize it?

> What do you mean with posting by old date?

For example, today on August, 12, but I want to write a post for
January, 23... :)

Netfilmx

unread,
Apr 19, 2012, 4:47:13 AM4/19/12
to gela...@googlegroups.com
The hidden posts is a very good feature for take note.

The dates edition is possible touching the dbase. Is not comfortable but is a correct way to that.

Regards!

Dawid Ogiegło

unread,
Apr 23, 2012, 2:28:36 PM4/23/12
to gela...@googlegroups.com
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!

Netfilmx

unread,
Apr 23, 2012, 6:14:50 PM4/23/12
to gela...@googlegroups.com
Dawid!, in simples words: YOU RULES!!! =)

I try this in a few of minutes.

Regards and a millon of thanks!
Reply all
Reply to author
Forward
0 new messages