Archived CMSimple Forum*

[PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#120 on 2006-11-24 15:01:00
-

[PLUGIN LOADER] Plugin Loader version 2.0 beta 7:


Changes:

1. Plugin Loader language sourced out to own "pluginloader" folder.

2. Plugin Loader CSS sourced out (and extended) to own file/folder.

3. Language should default to "en" if no file or setting/config is found.
If no language file is found, an error will be shown, even in public section of CMSimple (!)

4. When editing files (config, language, css) file permission will be checked and an error message is shown in case of file is not writeable.

5.1. Editing config, language and text (css, data) should be more comfortable now.

5.2 text boxes will resize while editing

5.3 it should be able to enter quotes (" or ') without breaking the php file and without disturbing slashes ("\")

6. Building edit forms and save their data was changed heavily.

7. If editing config, you may add a hint on what might be set with this variable.

example:

in config, this might be set:
$plugin_cf['example_plugin']['my_name']="Scotty";

normally, while editing config, the form will just show
my name: <INPUT FIELD>


If you add a hint/text to the language file, having the same key with the prefix "cf_" in front you may add some more text (to each) input field.
$plugin_tx['example_plugin']['cf_my_name']="Please enter your \"name\".;

now the form will look like:
Please enter your "name".
my name: <INPUT FIELD>





Ok, what I need you to do:

1. Test the plugin loader with all your plugins (best of all use the ones, that already have been adapted to the new plugin loader v2.0). If you are not sure which plugin to use, download the brand new "example plugin".

2. Try multi-language sites/logins to see, if plugin and pluginloader language (menu tabs) are shown correctly.

3. Please try reading and saving plugin configs, language files and CSS, data, etc.
Report back if it works, and if no disturbing quotes are added and data gets saved as expected.

4. I am sure, some language files are broken (RU, LT, SK, ...)
If you recognize this, please translate the file again, and send it to me (as zipped file please!!!).

5. Tell me, if you want to see an error message on missing language file (read above) or not.

6. If you have idead for better layout/CSS, let me know.



Download [url=http://www.internet-setup.de/abdj_download/index.php?My_Downloads:1xtuvw9k]>>here[/url:1xtuvw9k] .


djot
-

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#2547 on 2006-11-25 17:23:22
Tryed it
But getting :
Language file for Plugin Loader not found!
File: ../plugins/pluginloader/languages/en.php
whats wrong ?

(i have the folder pluginloader there.)

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#120 on 2006-11-26 08:30:42
-
I uploaded a new version, please download and try again.

djot
-

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#1991 on 2006-11-26 09:35:18
Ich habe folgende schritte gemacht:
1. Addonsbydjot basic version 2.2 installiert
2. Plugin Loader version 2.0 beta 7 in Plugins installiert
das hat die plugins/index.php ├╝berschrieben

Die gerufte Seite zeigt die Warnung:
Language file for Plugin Loader not found!
File: ../plugins/pluginloader/languages/en.php
Current Path: /addonsbydjot_26_basic_22/index.php

Wieso sucht es am ../plugins/pluginloader/languages/en.php?

Ich versuchte es auch mit anderen Sprechen, mit dem selben Ergebnis.

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#1039 on 2006-11-26 10:09:57
djot
-

[PLUGIN LOADER] Plugin Loader version 2.0 beta 7:


Changes:

........

djot
-

Hi!

I tested the new plugin loader on a german site with the following plugins:

[list:21kxmtov]AddonsByDjot 2.2 advanced ... running ... the admin panel is the AddonsByDjot specific one
Advanced News 1.0.2 ... running with the "new" admin panel css
Gallery 0.6 beta9 ... running with the "new" admin panel css
Memberpages 0.6 ... running with the "new" admin panel css
Menumanger 2006c ... running with the "new" admin panel css
SimpleRSS 0.8 ... running with the "new" admin panel css
WDir 0.1 beta2 ... running with the "new" admin panel css
WysiwygPro 1.2 ... running with the "new" admin panel css
GenizFAQ 1 beta1 ... running with the "new" admin panel css[/list:u:21kxmtov]

The Jax calendar looses the css and the connection to display the data - any ideas to handle this or implement this new? --> Corrected:

Placed the JAX File on the right place in the index.php of the loader (at the very beginning) then the JAX Calendar is also running. I changed now to this Beta.

It s a very positive step to make the plugin loader more streamlined on the panel - gratulation.

greetings
Meril[/list]

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#120 on 2006-11-26 14:13:23
-
Wieso sucht es am ../plugins/pluginloader/languages/en.php?

Weil ich einen Fehler gemacht habe ... ist aber korrigiert und sollte nicht mehr vorkommen.

djot
-

Plugin loader test

by user#1177 on 2006-11-26 18:25:59
Hi.
Plugin loader v2.0 beta 7 results:

WDir - OK
AdvancedForm - OK
AdvancedNews - OK
Poll plugin - OK
PayPal plugin - OK
Calendar - OK
MenuManager - OK

Gallery plugin ver 0.6 beta 9 - PROBLEMS:
* does not save the language changes. When trying to save the language changes, the page goes blank with only one text: page's link (http). The page name is changed into "( Image )".

That about it regarding my tests :)

By the way, djot - respect. Really, really nice work. Thank You.

BR,
MMG aka triumaz

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#120 on 2006-11-27 22:35:22
triumaz
Gallery plugin ver 0.6 beta 9 - PROBLEMS:
* does not save the language changes. When trying to save the language changes, the page goes blank with only one text: page's link (http). The page name is changed into "( Image )".

Well, this is was really hard to figure out ... it is not a real bug in the Plugin Loader but a problem with using variables that are occupied by CMSimple...
initvar('image');
if ($image!=''){if(@include($pth['file']['image']))exit;}


Gallery contains this in en.php:
$plugin_tx['gallery']['image']="Picture";
which is pretty much the same as initvar(image) from the code above.
When editing language, the form input name is 'image' for this part of language and therefor is mistreated as CMSimples own "image" variable.


I did release a new version, with a unique (at least I hope so) naming space, please test again.

If anyone starts using variable names starting with "PL3bbeec384_" I KILL HIM !!!


djot
-

Re: [PLUGIN LOADER] Plugin Loader version 2.0 beta 7

by user#120 on 2006-11-27 22:49:12
triumaz
Gallery plugin ver 0.6 beta 9 - PROBLEMS:
* does not save the language changes. When trying to save the language changes, the page goes blank with only one text: page's link (http). The page name is changed into "( Image )".

Forgot to say that all files of Gallery v0.6 beta 9 have emtpy lines (CR) behind "?>" which isn't really a good idea as said a hundred times already.

djot
-