Status: offline

remy

Forum User
Full Member
Registered: 06/09/03
Posts: 162
The downloads plugin 1.1 from geeklog.fr happens to use a gltext class, which does perfectly co-exist in geeklog 2.0.
Somehow geeklog 2.1 now loads by default a different gltext class, so the downloads plugin breaks with error "cannot declare GLText twice". Besides the plugin/gltext.class is quite different from system/classes/gltext.class.

Usage in geeklog2.1 is in lib-common in COM_renderWikiText and COM_checkHTML

So, what to obsolete now? lib-common or the downloads plugin?
What *standard* is followed now?

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1451
Dengen introduced the new gltext class to Geeklog 2.1.0. It now handles the rendering of the articles and comments.

Dengen is also the author of the Downloads plugin. I believe he is working on an update (hopefully he will see this post and add his comment) which will I assume use the newer Geeklog gltext class.

As a work around you could rename all instances of the gltext class in the downloads plugin to something else.

I will send him a quick email and get him to respond.

One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
You can download a working version for Downloads plugin here. Warning this is a beta provide by Ivy.

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

remy

Forum User
Full Member
Registered: 06/09/03
Posts: 162
Thanks Ben, this one works with 2 tiny corrections:

The constructor method in include/gltext.class.php should be named to the className i.e. GLTextd()

The visit.php module uses the retrieved url as opposed to the combination of secret_filename

Than, the plugin lacks the downloads folder structures, which is not a problem since they are in place.

I took the plugin without visit.php (used the original) and corrected the class constructor method name.
Works. Again, thanks.