forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: lamama on July 31, 2009, 01:01:20 am

Title: MiniCMS for CPG1.5?
Post by: lamama on July 31, 2009, 01:01:20 am
I fear I will get sued for starting this one here, but the 1.4 thread is locked (http://forum.coppermine-gallery.net/index.php/topic,15543.0.html), http://cpg-contrib.org/ seems to be knocked out and it looks like Donnoman hasn't been active here for several months.

From the MiniCMS thread:
Quote
The Coppermine dev team recommends using this plugin - we think that it's a great advantage to have.

Any idea if this great plugin (or something similar) will be available for cpg1.5? Any attempt to migrate any of my active galleries to 1.5.x would be quite worthless without the features of MiniCMS...  :'(
Title: Re: MiniCMS for CPG1.5?
Post by: Pascal YAP on July 31, 2009, 01:12:53 am
Yes it's true. It seem MiniCMS do'nt work as expected with CPG 1.5.1. !!!
But i remember around 1.5.x #svn 6000, MiniCMS worked perfectly  ???
Title: Re: MiniCMS for CPG1.5?
Post by: Paver on July 31, 2009, 02:07:01 am
During the alpha phase, we're hoping that plugin authors and/or any others (when authors are no longer active or are busy) will modify 1.4 plugins for use in 1.5.  Any one can contribute, so if you have the skills, take a look and see what you can do.
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on July 31, 2009, 08:25:46 am
I fear I will get sued for starting this one here, but the 1.4 thread is locked (http://forum.coppermine-gallery.net/index.php/topic,15543.0.html), http://cpg-contrib.org/ seems to be knocked out and it looks like Donnoman hasn't been active here for several months.
Hehe, you won't get sued, but actually this thread doesn't belong on the bugs board for cpg1.5.x, so I'm moving it accordingly.

Any idea if this great plugin (or something similar) will be available for cpg1.5? Any attempt to migrate any of my active galleries to 1.5.x would be quite worthless without the features of MiniCMS...  :'(
I can see the point: if the MiniCMS was not available for cpg1.5.x, that would certainly be a show-stopper for the upgrade from cpg1.4.x to cpg1.5.x for those who currently use that plugin.
However, it's beyond the scope of the dev team to convert plugins: each dev team member is free to convert plugins or come up with new ones. But as Paver suggested there's no guarantee that anyone will, so if you want to make sure, you might consider to start working on it. ;D
I can say one thing for sure: I will not port it ;).

But i remember around 1.5.x #svn 6000, MiniCMS worked perfectly  ???
I can can confirm Pascal's observation - it used to work for a while after the the Inspektification.

If you plan to actually port the plugin for cpg1.5.x I suggest to get a CVS checkout from the repository of cpg-contrib and use that as a base.

Title: Re: MiniCMS for CPG1.5?
Post by: lamama on August 01, 2009, 12:42:16 am
If you plan to actually port the plugin for cpg1.5.x I suggest to get a CVS checkout from the repository of cpg-contrib and use that as a base.

No plans, I guess thats far beyond my coding skills  ;D


Title: Re: MiniCMS for CPG1.5?
Post by: Ludo on August 04, 2009, 11:21:25 am
I asked Donnoman by email about this issue. He's going to take a look at it.
Title: Re: MiniCMS for CPG1.5?
Post by: Hein Traag on September 02, 2009, 03:53:18 pm
Any news from the miniCMS front?
Title: Re: MiniCMS for CPG1.5?
Post by: lamama on October 04, 2009, 07:44:43 pm
I asked Donnoman by email about this issue. He's going to take a look at it.

Hmmm... sure?
what if not?
Title: Re: MiniCMS for CPG1.5?
Post by: Pascal YAP on October 04, 2009, 10:52:44 pm
All Dev,

Yes, this is a very serious problem.
Personally, my gallery used very intensively MiniCMS.
MiniCMS is, in my opinion, one of the best plugin for Coppermine.
Unfortunately, i'm lacking the ability to modify the MiniCMS's code.
Because that, I know I would not upgrade to 1.5.x

I know, like all of us, I'm not the only MiniCMS's user, so I guess already that I'm not the only one who'll do'nt want to upgrade to 1.5.x.
Thus it's very important to offer this plugin in agreement with 1.5.x

IMO  ;D
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on October 05, 2009, 08:53:53 am
I never had a look at the MiniCMS code. But I think basically all $_GET/$_POST vars has to be replaced with $superCage as described here (http://documentation.coppermine-gallery.net/en/dev_superglobals.htm).
Title: Re: MiniCMS for CPG1.5?
Post by: Gene-2008 on October 09, 2009, 05:43:49 pm
Is this the best place to get the latest that there is on miniCMS since the site http://cpg-contrib.org/ is down?

Gene
Title: Re: MiniCMS for CPG1.5?
Post by: Gene-2008 on October 09, 2009, 05:55:30 pm
Is this the best place to get the latest that there is on miniCMS since the site http://cpg-contrib.org/ is down?

Gene

Forgot to add the "this" http://sourceforge.net/projects/cpg-contrib/files/MiniCMS/1.7/

Sorry,
Gene
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on October 09, 2009, 10:45:53 pm
Yes, the CVS should contain the most recent files as far as we can tell.
Title: Re: MiniCMS for CPG1.5?
Post by: lamama on October 10, 2009, 07:52:32 pm
Because that, I know I would not upgrade to 1.5.x

Me too. I'd love to upgrade my main gallery. CPG 1.5 looks great so far, but the missing MiniCMS keeps me from testing it under 'real' conditions.

Have there ever been considerations to add some basic CMS-like functionality to the CPG-core? Maybe it would make more sense - instead of riding a dead horse (I fear miniCMS is one).
Title: Re: MiniCMS for CPG1.5?
Post by: Phill Luckhurst on October 10, 2009, 08:10:22 pm
I very much doubt adding a cms to the core would ever be done. Coppermine is a photo app, not a cms. There are many fully fledged cms systems out there so let's leave those to do what they are good at and let coppermine be the best photo app out there.
Title: Re: MiniCMS for CPG1.5?
Post by: lamama on October 10, 2009, 09:12:49 pm
Not 'real' CMS stuff, were talking about miniCMS here. ;)

But adding some notes and additional text to gallery pages. I could hardly imagine working with CPG without being able to do that.
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on October 11, 2009, 08:23:52 pm
28 files in the minimcms folder that contain the strings $_GET, $_POST or $_SERVER. Just a lot of work to "inspektify"... ;)

Read http://documentation.coppermine-gallery.net/en/dev_superglobals.htm for details in case you're ready to do the job.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on October 12, 2009, 12:46:19 am
I think I'll have some spare time the next 3 days and can change the appropriate lines.
Title: Re: MiniCMS for CPG1.5?
Post by: lamama on November 20, 2009, 08:53:03 pm
any news?
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on November 21, 2009, 12:21:28 am
No
Title: Re: MiniCMS for CPG1.5?
Post by: halnat on December 26, 2009, 02:15:32 pm
28 files in the minimcms folder that contain the strings $_GET, $_POST or $_SERVER. Just a lot of work to "inspektify"... ;)

Read http://documentation.coppermine-gallery.net/en/dev_superglobals.htm for details in case you're ready to do the job.

I have a version up and running that installs and can display existing content. It needs more work to be able to create new content... anybody else working on this?
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on December 26, 2009, 02:25:31 pm
I have a version up and running that installs and can display existing content. It needs more work to be able to create new content... anybody else working on this?
Please attach that version. Thank you.
Title: Re: MiniCMS for CPG1.5?
Post by: halnat on December 26, 2009, 11:23:11 pm
Here comes....

This is an early mock-up port to 1.5.2. There are a number of things that do not work. In fact, there are only two things that I have been able to do with it: I was able to install it as a plug in, and it did display the content that I created in cpg 1.4.x. Creating content is not really possible, as all space characters get filtered away. Everythingbecomesonelargeword.

It may not be as cooperative with anyone else - and please understand that I do not provide support for this version of the port. However, anyone who like to play with fire or would like to contribute to the port is welcome to a test drive  ;)

Maybe someone could help load it up to svn - I'm not familiar with that.

The file was too large to be attached. It can be downloaded from http://www.natvik.com/bfdoc/minicms.zip (http://www.natvik.com/bfdoc/minicms.zip)
Title: Re: MiniCMS for CPG1.5?
Post by: football-pics.com on June 02, 2010, 03:18:21 pm
No news on a MiniCMS?

A plugin that could show the latest 10 galleries as links (link name = album title) could also help me out
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on June 02, 2010, 05:43:02 pm
Respect board rules if you want answers - I already told you so:
Not a valid support request (board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616)).
Title: Re: MiniCMS for CPG1.5?
Post by: Ludo on June 12, 2010, 10:57:27 am
This is an early mock-up port to 1.5.2. There are a number of things that do not work. In fact, there are only two things that I have been able to do with it: I was able to install it as a plug in, and it did display the content that I created in cpg 1.4.x. Creating content is not really possible, as all space characters get filtered away. Everythingbecomesonelargeword.
Finally I took halnat's work over, and it seems I made it out to get MiniCMS work properly on 1.5.6, by simply replacing Inspekt's getAlnum method with getRaw (disapproved, I know, but still the only way I found to make it work). There are still some minor issues, but I'm confident to fix them soon.
Title: Re: MiniCMS for CPG1.5?
Post by: football-pics.com on June 12, 2010, 12:12:59 pm
great news... thanks. When will it be available?
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on June 12, 2010, 01:30:21 pm
Instead using getAlNum or getRaw, we should us getMatched allowing alphanumeric characters, number and some other digits like whitespace and punctuation marks, or validate the input after using getRaw.
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on June 12, 2010, 05:53:06 pm
As Αndré suggested you're allowed to use getRaw if you sanitize the data afterwards really thoroughly.
Title: Re: MiniCMS for CPG1.5?
Post by: Ludo on June 14, 2010, 03:41:48 pm
Instead using getAlNum or getRaw, we should us getMatched allowing alphanumeric characters, number and some other digits like whitespace and punctuation marks, or validate the input after using getRaw.
Speaking about FCKEditor output, isn't it already sanitized enough by the editor itself?
Title: Re: MiniCMS for CPG1.5?
Post by: Ludo on June 14, 2010, 03:44:21 pm
great news... thanks. When will it be available?
You'd better subscribe this topic  ;D
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on June 15, 2010, 07:42:26 am
Speaking about FCKEditor output, isn't it already sanitized enough by the editor itself?
I have no idea, sorry.
Title: Re: MiniCMS for CPG1.5?
Post by: schnurzeltier on June 21, 2010, 03:18:19 pm
great news... thanks. When will it be available?

Hi there, some new's about this?
Greetings
Bernd
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on June 21, 2010, 03:51:41 pm
No. There's absolutely no sense in replying to this thread asking for updates. As far as I can see nobody is working on this. If you want it badly, start working on it. Do as suggested per board rules in the future and post a link to your gallery.
Title: Re: MiniCMS for CPG1.5?
Post by: Ludo on June 22, 2010, 09:07:30 am
As far as I can see nobody is working on this.

Finally I took halnat's work over, and it seems I made it out to get MiniCMS work properly on 1.5.6, by simply replacing Inspekt's getAlnum method with getRaw (disapproved, I know, but still the only way I found to make it work). There are still some minor issues, but I'm confident to fix them soon.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on June 22, 2010, 12:25:29 pm
Where do we find your work, Ludo?
Title: Re: MiniCMS for CPG1.5?
Post by: Ludo on June 23, 2010, 10:26:04 am
On my pendrive, so far :P
Title: Re: MiniCMS for CPG1.5?
Post by: Joachim Müller on August 12, 2010, 07:25:20 am
If it is so hard to port this plugin because of the many places where you have to sanitize user inout, maybe you should circumvent the issues that using Inspekt imposes on coders in the first place. This will of course ruin the additional level of security and will make the code less well-designed, but for a port that big you might want to use the approach that extrabigmehdi used in his Joomla bridge for cpg1.5.x:
Concerning the code used in my bridge, I guess I'm not respecting the "spirit" of the  "Inspekt package" . I  got to access directly to stored superglobals with "_source" property  (especially $COOKIE) before calling Joomla .
So basically what Mehdi does is re-globalize all input that Inspekt de-globalized in the first place. Not a nice thing to do and definitely not something that should be performed lightheartedly, but given the issues that exist for this particular plugin maybe the interessted porters should take a look at that approach.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 08, 2010, 10:06:38 am
I'll port MiniCMS now, as Ludo hasn't published his port.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 08, 2010, 11:44:46 am
Added halnat's version to the svn repository (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/minicms/) and applied several fixes.

As far I can judge it's currently possible to add, delete and move entries.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 08, 2010, 03:05:43 pm
Please test that package (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/minicms/?view=tar) thoroughly and report any errors. Please also post if everything works as expected, so that I can release an official package for cpg1.5.x. Thanks.
Title: Re: MiniCMS for CPG1.5?
Post by: cavok on November 09, 2010, 01:23:48 am
Hello, I was very happy to learn that MiniCms was back for the latest versions of Coppermine.
After following the instructions in the readme file
"Unpack the archive and upload the "minicms" directory structure to your Coppermine gallery's plugins folder.
Login as an admin, go to config, then "Manage Plugins"
Find the CPG MiniCMS entry in the available plugins and click install."

Also, clicking on the icon to install the error appears:
Quote
Parse error: syntax error, unexpected '(', expecting '}' in /mnt/156/sda/e/4/mywebsite/coppermine/plugins/minicms/codebase.php on line 223

Maybe a solution ?
Title: Re: MiniCMS for CPG1.5?
Post by: cavok on November 09, 2010, 02:06:46 am
After a check I find that PHP Version is 4.
So I pass to the last version provided by my web hosting
and now PHP Version is 5.1.3RC4-dev.

But when I clicking to Install the following page appears and MiniCMS still not installed.


Quote
Performing Database Updates
CREATE TABLE `cpg132_cms` ( `ID` int(11) NOT NULL auto_increment, `catid` int(11) NOT NULL default '0', `title` varchar(255) NOT NULL default '', `content` text NOT NULL default '', PRIMARY KEY (`ID`, `catid`), FULLTEXT KEY `title` (`title`,`content`) ) TYPE=MyISAM AUTO_INCREMENT=1    Already Done
1050: Table 'cpg132_cms' already exists   MySQL Said
CREATE TABLE cpg132_cms_config ( name varchar(40) NOT NULL default '', value varchar(255) NOT NULL default '', PRIMARY KEY (name) ) TYPE=MyISAM   Already Done
1050: Table 'cpg132_cms_config' already exists   MySQL Said
ALTER TABLE `cpg132_cms` ADD `pos` int(11) NOT NULL default '0'   OK
ALTER TABLE `cpg132_cms` ADD `type` int(11) NOT NULL default '0'   Already Done
1060: Duplicate column name 'type'   MySQL Said
ALTER TABLE `cpg132_cms` CHANGE `catid` `conid` int(11) NOT NULL default '0'   Already Done
1054: Unknown column 'catid' in 'cpg132_cms'   MySQL Said
ALTER TABLE `cpg132_cms` CHANGE `pos` `cpos` int(11) NOT NULL default '0'   Already Done
1060: Duplicate column name 'cpos'   MySQL Said
ALTER TABLE `cpg132_cms` ADD `modified` TIMESTAMP NOT NULL   Already Done
1060: Duplicate column name 'modified'   MySQL Said
ALTER TABLE `cpg132_cms` ADD `start` DATETIME   Already Done
1060: Duplicate column name 'start'   MySQL Said
ALTER TABLE `cpg132_cms` ADD `end` DATETIME   Already Done
1060: Duplicate column name 'end'   MySQL Said
INSERT INTO `cpg132_cms` (conid,title,content,type) VALUES ('0','Welcome to Coppermine', 'Simple test of CPG MiniCMS','0')   OK
INSERT INTO `cpg132_cms_config` VALUES ('dbver', '0.0')   Already Done
1062: Duplicate entry 'dbver' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('redirect_index_php', '')   Already Done
1062: Duplicate entry 'redirect_index_php' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('related_size', 'thumb')   Already Done
1062: Duplicate entry 'related_size' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('editor', 'fckeditor')   Already Done
1062: Duplicate entry 'editor' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('rss_enabled', '0')   Already Done
1062: Duplicate entry 'rss_enabled' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('rss_description_length', '50')   Already Done
1062: Duplicate entry 'rss_description_length' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('rss_include_image', '0')   Already Done
1062: Duplicate entry 'rss_include_image' for key 1   MySQL Said
INSERT INTO `cpg132_cms_config` VALUES ('rss_image_size', 'thumb')   Already Done
1062: Duplicate entry 'rss_image_size' for key 1   MySQL Said
UPDATE `cpg132_cms` SET `modified`=NOW() WHERE `modified`='0000-00-00 00:00:00'   OK
ALTER TABLE `cpg132_cms` DROP `pos`   OK
UPDATE cpg132_cms_config SET value='1.5.8' WHERE name='dbver'   OK
Title: Re: MiniCMS for CPG1.5?
Post by: gmc on November 09, 2010, 04:26:56 am

But when I clicking to Install the following page appears and MiniCMS still not installed.


What makes you think its not installed?  This appeared to be a gallery that already had MiniCMS installed... All the SQL indicated either "Already Done" or "OK"...  So far it looks fine. Keep going.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 09, 2010, 07:53:01 am
But when I clicking to Install the following page appears and MiniCMS still not installed.
Click "OK" at the bottom of the page.
Title: Re: MiniCMS for CPG1.5?
Post by: football-pics.com on November 09, 2010, 07:54:32 am
Well I have the same problem.

I got to "Manage plugins" select Minicms and hit the install button.
Then I select "Go" and all it does is re-install over and over.
However, if I go to the front page and to my plugin section again, Minicms is shown as "not installed plugin"....
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 09, 2010, 09:02:00 am
I'll check that.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 09, 2010, 09:12:35 am
Should be fixed in revision 8019 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?revision=8019&view=revision). Download link (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/minicms/?view=tar) remains the same.
Title: Re: MiniCMS for CPG1.5?
Post by: cavok on November 09, 2010, 10:33:19 am
Hello, I change only the file codebase.php by the revision 8019.
And all seems OK
Very good job
I can update now all my coppermine web sites to the 1.5.8.

Just 1 question:
I see the minicms/lang/french.php
But how to put the French language
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 09, 2010, 10:56:24 am
I see the minicms/lang/french.php
But how to put the French language
Should be fixed in r8021 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?revision=8021&view=revision).

Additionally, that error has been fixed in r8020 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?revision=8020&view=revision)
Code: [Select]
Parse error: syntax error, unexpected '(', expecting '}' in /mnt/156/sda/e/4/mywebsite/coppermine/plugins/minicms/codebase.php on line 223

I can update now all my coppermine web sites to the 1.5.8.
I suggest to wait some days until I release an official package, as we probably detect some more small bugs.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 19, 2010, 07:33:14 pm
Just recognized that special chars like umlauts don't work with FCKeditor. Try to fix.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 19, 2010, 07:52:56 pm
Should be fixed in r8055. Can someone confirm please?
Title: Re: MiniCMS for CPG1.5?
Post by: Phill Luckhurst on November 20, 2010, 01:36:02 pm
Confirmed. Good works as usual Andre.
Title: Re: MiniCMS for CPG1.5?
Post by: Αndré on November 30, 2010, 05:55:05 pm
Plugin announcement thread (http://forum.coppermine-gallery.net/index.php/topic,68455.0.html).