forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Jeff Bailey on October 17, 2012, 11:53:16 pm

Title: Theme Editor Plugin
Post by: Jeff Bailey on October 17, 2012, 11:53:16 pm
This plugin allows you to edit theme files while logged in as an admin.

This plugin uses Ace (Ajax.org Cloud9 Editor) (http://ace.ajax.org)

Features:
Edit and save theme files within Coppermine.
Choose from a list of themes to style your editor.
Font Size option
Word Wrap option

Todo:
Dynamically update theme files list. Currently only allows theme.php, template.html, style.css
Add better search and replace.

Plugin attached.
Title: Re: Theme Editor Plugin
Post by: jimtee on August 01, 2013, 07:29:16 am
Hi
When I try to install:
Parse error: syntax error, unexpected '}' in /customers/b/c/a/free2type.se/httpd.www/plugins/theme_editor/configuration.php on line 8

What to do?
Title: Re: Theme Editor Plugin
Post by: Jeff Bailey on August 01, 2013, 09:20:16 pm
There doesn't appear to be anything wrong with the plugin or the code your error refers to, although I haven't tested it with the latest sable release.

Please make sure you are following the plugin installation instructions.
http://documentation.coppermine-gallery.net/en/plugins.htm#plugin_manager
Title: Re: Theme Editor Plugin
Post by: jimtee on August 02, 2013, 02:06:15 pm
Hi
I have A lot of plugins that works fine.
So I now ho to do this.
It must be something wrong in the code.
Title: Re: Theme Editor Plugin
Post by: Jeff Bailey on August 02, 2013, 09:17:19 pm
Try moving it up and down in the list of plugins. Or uploading a fresh copy http://documentation.coppermine-gallery.net/en/plugins.htm#plugin_manager_upload_ftp.

The error refers to:
Code: [Select]
if (!defined('IN_COPPERMINE')) {
    die('Not in Coppermine...');
}
in configuration.php
Nothing incorrect that I can see. Anyone?