Components Extended [v0.9.3] - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Components Extended [v0.9.3] (/showthread.php?tid=8503) |
Components Extended [v0.9.3] - Tyblitz - 2016-06-14 Introduction Extended functionality for GS Components: better UI with sort & search, CodeMirror support, doubleclick code snippet copy, individual component save without page reload. Components Extended saves your components as <slug>.xml files in data/components with AJAX, one component at a time (no page reload!). It replaces the components tab with a custom tab, and will automatically import existing components from components.xml on activation. Available in EN, FR, NL. Download it from Extend.Components Extension adds one PHP function for components, get_ext_component($slug, $params = array()); where $params is an array of named keys (or an object).Eg if you had the following: PHP Code: <?php get_ext_component($slug, array( PHP Code: <?php echo $params->greet . ' ' . $params->name . '!'; ?> And it would output: 'Hello world!'. Features
Be sure to set the GSTIMEZONE constant to your timezone if you wish to have meaningful timestamps for created & modified dates. NB: to other plugin developers; the standard GS hooks component-save and component-extras also work with this plugin.Screenshot RE: [NEW] Components Extended - shawn_a - 2016-06-14 Since you are doing 1 at a time maybe see if you can base64 or other encoding to bypass security fiteres RE: [NEW] Components Extended - datiswous - 2016-06-14 Nice. Just some some small things I encountered: When I try to delete a component I get an alert dialog saying: Quote:undefined: component-name I was expecting something like: Quote:Are you sure you want to delete component-name ? Maybe the (yellow) status messages could just hover on the top instead of bumping the page (it also moves the page-view down to where the status message is), I think it's suboptimal if such status messages move the page when editing code. Also, the edit-cursur should stay active at it's location. RE: [NEW] Components Extended - Tyblitz - 2016-06-18 V0.7 release 2016-06-18 - CSRF (cookie, header & nonce check) vulnerability patch - Allow changing the directory where components are saved - Make component title available in component as $params->title - Bugfix slug<->title when creating new component, labels - Added languages FR/NL - CodeMirror support RE: [NEW] Components Extended - Oleg06 - 2016-06-18 http://prntscr.com/bhnyan RE: [NEW] Components Extended - Tyblitz - 2016-06-18 v0.7.1 release - 2016-06-18 - Bugfix RE: [NEW] Components Extended - Tyblitz - 2016-06-18 @oleg, you have a very unusual GSDATAPATH . Your GSROOTPATH is set to demo.getsimplethemes.ru/uikit .I don't know how to fix it (@shawn_a any idea?), but you can do in gsconfig.php : define('GSDATACOMPONENTSPATH', str_replace('uikit/', '', GSDATAPATH . 'components/'));
RE: [NEW] Components Extended - Oleg06 - 2016-06-18 http://prntscr.com/bhpz63 RE: [NEW] Components Extended - Oleg06 - 2016-06-18 if the site is at the root http://prntscr.com/bhq1p0 RE: [NEW] Components Extended - Tyblitz - 2016-06-18 I'll have a look into this when I get some time, but your display is very, very strange. I get none of these issues on my local install. Could you have a conflict with another plugin? The file formats at bottom right, what is that? Also, the search icon is not visible.. You're not using UTF-8? RE: [NEW] Components Extended - Oleg06 - 2016-06-18 the removal of all plugins http://prntscr.com/bhufqc RE: [NEW] Components Extended - Tyblitz - 2016-06-18 (2016-06-18, 18:17:45)Oleg06 Wrote: the removal of all plugins Can you give me temporary access (with GSDEBUG on)? I have no idea how this is possible. RE: [NEW] Components Extended - Oleg06 - 2016-06-18 I'm working on a local server. After removing all of my components. http://prntscr.com/bhvp2d I could not disable any plugin. RE: [NEW] Components Extended - Oleg06 - 2016-06-18 attempt to save http://prntscr.com/bhvr9c RE: [NEW] Components Extended - datiswous - 2016-06-20 Maybe it's easier to see what's going on if you (also) test this on an English version of the admin. RE: [NEW] Components Extended - Oleg06 - 2016-06-20 http://prntscr.com/bims6w http://prntscr.com/bimsdp http://prntscr.com/bimsne RE: [NEW] Components Extended - Tyblitz - 2016-06-21 (2016-06-20, 21:06:52)Oleg06 Wrote: http://prntscr.com/bims6w I know what it is (the security check failed), but not sure how to solve it. It's the same nonce check as GS uses.. In components_ext.php , line 53 - 62 you can see this:PHP Code: <?php So either:
PHP Code: if (!isset($USR) || $USR != get_cookie('GS_ADMIN_USERNAME')) Try to save again, and see what error message is displayed, thanks RE: [NEW] Components Extended - Oleg06 - 2016-06-21 I do not know where I have to replace these lines? RE: [NEW] Components Extended - shawn_a - 2016-06-21 Gs doesnt use that... We dont even use sessions. Check_nonce() Is_logged_in() If i had to guess your origin check doesnt work on all enviroments or phpsessions were not started RE: [NEW] Components Extended - Tyblitz - 2016-06-21 (2016-06-21, 06:15:55)shawn_a Wrote: Gs doesnt use that... Hey thanks for coming in shawn, I'm not a pro at PHP security and I assumed these were de facto requirements for the session to be valid. I'll check the Is_logged_in function, didn't know about that one yet. Oleg, it's in the main plugin file components_ext.php (in your plugin folder), line 53-62.
RE: [NEW] Components Extended - shawn_a - 2016-06-21 Theres also login_cookie_check to auto handle includes w login redirect RE: [NEW] Components Extended - Oleg06 - 2016-06-21 http://prntscr.com/bj02fa http://prntscr.com/bj02lg RE: [NEW] Components Extended - shawn_a - 2016-06-22 tested with stable works for me RE: [NEW] Components Extended - shawn_a - 2016-06-22 I would clean up that code, put the native gs checking stuff first, then your secondary local stuff second, too many or strings Messages do not contain component id or title, no undo on delete Add a setting or gsconfig to auto save to components.xml, so you can use native gs getters ? Add sidebar tags back and jump to open component ? RE: [NEW] Components Extended - Tyblitz - 2016-06-22 (2016-06-22, 03:23:09)shawn_a Wrote: I would clean up that code, put the native gs checking stuff first, then your secondary local stuff second, too many or strings Glad to hear it works on your install, concerning the suggestions:
|