Welcome to Geeklog, Anonymous Saturday, November 26 2022 @ 07:35 am EST

Geeklog Forums

Caching Template Library for GL 1.6?


Status: offline

tgc

Forum User
Regular Poster
Registered: 03/15/06
Posts: 82
I am upgrading to GL 1.6 from 1.41. I made a clean install in a sub directory and now I am pulling all the plugins over one after one. When I do that with Media Gallery I get the message that I need to install the Caching Template Library but it is not possible because the config file is not there anymore.
What to do? I need my installation of Media Gallery like it is right now and if I can't use it, GL 1.6 is of no use for me.

Thank you all/Frank
 Quote

iam

Anonymous
Quote by: tgc

I am upgrading to GL 1.6 from 1.41. I made a clean install in a sub directory and now I am pulling all the plugins over one after one. When I do that with Media Gallery I get the message that I need to install the Caching Template Library but it is not possible because the config file is not there anymore.
What to do? I need my installation of Media Gallery like it is right now and if I can't use it, GL 1.6 is of no use for me.

Thank you all/Frank


I think before you upgrade to 1.6.0, you have to know about the compatible Media Gallery and GL 1.6.0 first. if MG plugin not available for GL 1.6.0 than we have to wait until it available for download.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Last official Media Gallery plugin release is version 1.5.1

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

Status: offline

tgc

Forum User
Regular Poster
Registered: 03/15/06
Posts: 82
... if you don't know then please save your guessing.

I found it out by myself: I added the code which is necessary to the conf_values in the database in phpmyadmin.

Frank
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
I do plan (someday) to re-release CTL for GL 1.6. I just haven't been able to. The existing CTL release can be used with GL by hacking around the siteconfig.php if you know what you are doing. My plan is to turn it into a plugin so it will be easier to integrate into future GL code. But there is no timeline for this. Sorry.
 Quote

Status: offline

tgc

Forum User
Regular Poster
Registered: 03/15/06
Posts: 82
I wished I could get back the good old config.php file. I think this database solution sucks - this ain't progress!

Frank
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
sad
I have no idea what sort of hacking in siteconfig.php the CTL requires and why, but you can overwrite pretty much every $_CONF variable in siteconfig.php.

Taking this to the extreme, you could even use it to get your old config.php-like behaviour back if you so despise the Configuration screen ...

bye, Dirk
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
The original install instructions include a way to turn the CTL on and off and this was accomplished with a $_CONF setting that was specific to the hack. Of course the original intent for this was to handle cases where the CTL broke backward compatibility having this part of the hack left you a way to get that compatibility back. Eventually I removed all the backward compatibility issues and that part of the hack was unnecessary. Technically, one could take the exist zip, extract template_new.class.php to the classes directory and just change lib-common.php to load that file instead of template.class.php and be done with it.

The original purpose of CTL as discussed on the devel mailing list was speeding up templates in Geeklog. It expanded a lot from there. One of the main reasons I have for turning it into a plugin is to return to CTL's roots, reducing the number of extensions or making them far more optional. Of course glFusion uses the CTL as its native template engine so I'm positive now that the existing code is robust. (Although even I am out of touch with any changes that may have been by the glF team recently.)
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1444
It would be nice to see it as a plugin, when you get a chance.
One of the Geeklog Core Developers.
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
It will still require you to modify lib-common.php. Or overwrite the template.class.php file with a new one. There's no way around that.
 Quote

Status: offline

tgc

Forum User
Regular Poster
Registered: 03/15/06
Posts: 82
Quote by: Dirk

I have no idea what sort of hacking in siteconfig.php the CTL requires and why, but you can overwrite pretty much every $_CONF variable in siteconfig.php.

Taking this to the extreme, you could even use it to get your old config.php-like behaviour back if you so despise the Configuration screen ...

bye, Dirk


Does that mean I can copy the content of my old config.php into the the siteconfig.php file and I can make all changes there and not in the database? Does this also affect speed performance?

Frank
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: tgc

Does that mean I can copy the content of my old config.php into the the siteconfig.php file and I can make all changes there and not in the database?


Yes. I'm not 100% positive that it'll work for all settings, but certainly for most of them.

And no, it wouldn't affect performance. It would render the Configuration admin panel pretty much useless (at least for the core Geeklog options), of course.

bye, Dirk (who can't imagine why anyone would want to do that, but to each his own)
 Quote

Status: offline

tgc

Forum User
Regular Poster
Registered: 03/15/06
Posts: 82
Quote by: Dirk

bye, Dirk (who can't imagine why anyone would want to do that, but to each his own)


I prefer to just do the find in BBEdit for quicker configuration...

Frank (who is going to check it out asap)
 Quote

All times are EST. The time is now 07:35 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content