Welcome to Geeklog Wednesday, June 19 2013 @ 04:47 AM EDT
|
||||||||
![]() |
Forum Index > Extensions > Plugins |
New Topic
|
Post Reply
|
Caching Template Library for GL 1.6? |
|||
| tgc |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() 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 |
||||||
|
|||||||
| Anonymous: iam |
|
||||||
|
|
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. 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. |
||||||
|
|||||||
| ::Ben |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 01/14/05 Posts: 1369 |
We speak french on http://geeklog.fr |
||||||
|
|||||||
| tgc |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() 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 |
||||||
|
|||||||
| jmucchiello |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() 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.
|
||||||
|
|||||||
| tgc |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() 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 |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13035 |
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 |
||||||
|
|||||||
| jmucchiello |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() 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.) |
||||||
|
|||||||
| Laugh |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 09/27/05 Posts: 891 |
It would be nice to see it as a plugin, when you get a chance.
|
||||||
|
|||||||
| jmucchiello |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() 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.
|
||||||
|
|||||||
| tgc |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() 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. 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 |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13035 |
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) |
||||||
|
|||||||
| tgc |
|
||||||
![]() ![]() ![]() ![]() ![]() Regular Poster Status: offline ![]() 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) |
||||||
|
|||||||
| Content generated in: 1.29 seconds |
|
|
|