Posted on: 10/01/06 02:38am
By: mystral-kk
I have created a theme editor for Geeklog which allows you to edit template files (*.thtml) and cascading style sheets files (*.css) ONLINE.
You can download it from
here[*1] .
Include in it are the plugin files and readme files (in English and Japanese).
NOTE: This is a TEST RELEASE and there might be some unexpected bugs. So I don't recommend that you use the plugin on the "commercial" sites.
Any bug reports or suggestions will be welcome.
Theme Editor Plugin
Posted on: 10/01/06 08:08pm
By: kemal
when i installing giving this error
An error has occurred:
2 - file_get_contents(/home/httpd/vhosts/dieterbohlen.org/httpdocs/geek/layout/professional/style_jp.css): failed to open stream: No such file or directory @ /home/httpd/vhosts/dieterbohlen.org/httpdocs/geek/plugins/themedit/functions.inc line 489
and here is my error.log
Mon 02 Oct 2006 03:02:21 EEST - Attempting to install the themedit Plugin
Mon 02 Oct 2006 03:02:21 EEST - Creating thm_contents table
Mon 02 Oct 2006 03:02:21 EEST - Success - Created thm_contents table
Mon 02 Oct 2006 03:06:48 EEST - Attempting to install the themedit Plugin
Mon 02 Oct 2006 03:06:48 EEST - Creating thm_contents table
Mon 02 Oct 2006 03:06:48 EEST - 1050: Table 'gl_thm_contents' already exists. SQL in question:
Mon 02 Oct 2006 03:06:48 EEST - Error Creating thm_contents table
Mon 02 Oct 2006 03:06:48 EEST - Attempting to unregister the themedit plugin from Geeklog
Mon 02 Oct 2006 03:06:48 EEST - Removing Table gl_thm_contents
Mon 02 Oct 2006 03:06:48 EEST - Removing themedit Admin Group
Mon 02 Oct 2006 03:06:48 EEST - Removing root users from admin of themedit
Mon 02 Oct 2006 03:06:48 EEST - Removing themedit.admin feature and rights to it
Mon 02 Oct 2006 03:06:48 EEST - ...success
Mon 02 Oct 2006 03:06:59 EEST - Attempting to install the themedit Plugin
Mon 02 Oct 2006 03:06:59 EEST - Creating thm_contents table
Mon 02 Oct 2006 03:06:59 EEST - Success - Created thm_contents table
Theme Editor Plugin
Posted on: 10/01/06 11:59pm
By: Anonymous (ironmax)
I think the Theme Editor works great so far. I did have an issue with the install portion but after reading why, there were no real issues. Good going on a plugin that I think that everyone needs, atleast for the begginers out there. Page error when install went as follows:
Warning: file_get_contents(/root/public_html/layout/professional/style_jp.css) [function.file-get-contents]: failed to open stream: No such file or directory in rootpluginsthemeditfunctions.inc on line 489
Warning: file_get_contents(/root/public_html/layout/professional/style_forum.css) [function.file-get-contents]: failed to open stream: No such file or directory in rootpluginsthemeditfunctions.inc on line 489
Theme Editor Plugin
Posted on: 10/02/06 08:55am
By: mystral-kk
Thanks for reporting, kemal and ironmax.
I created the plugin initially for the Geeklog Japanese members, so I put into the $_THM_CONF['allowed_files'] var the files 'style_jp.css' and 'style_forum.css', which exist only in the Geeklog distribution customized in Japan. I'll fix the bug in the next version.
Theme Editor Plugin
Posted on: 10/28/06 02:25am
By: mrobinna
Any word on this? Sounds like a great idea, anybody get it working with the English version?
Theme Editor Plugin
Posted on: 10/28/06 04:49am
By: Anonymous (ironmax)
[QUOTE BY= mrobinna] Any word on this? Sounds like a great idea, anybody get it working with the English version?[/QUOTE]
Yes it works great...all you have to do is make sure you configure the proper settings in the config file.
// Files to be edited with this plugin
// NOTE: file names are case-sensitive
$_THM_CONF['allowed_files'] = array(
'header.thtml', 'footer.thtml', 'leftblocks.thtml', 'rightblocks.thtml',
'storybodytext.thtml', 'featuredstorybodytext.thtml', 'style.css', 'style.css',
'style_forum.css'
);
Theme Editor Plugin
Posted on: 10/28/06 06:34pm
By: mrobinna
LOL, thanx ironmax. I guess if I actually took the time and read I would have noticed that you guys posted how you got it to work.
I finally got it installed, the only problem I'm having now is actually using it, When I hit preview after making a change I still see the current theme. I'll play with it some more and see if i can get it to work. Thanks for all the help though
Theme Editor Plugin
Posted on: 11/01/06 01:41pm
By: samstone
What does "Initialize" button do and mean?
Each time I press "Preview" it adds a back-slash infront of quote signs and if I click on the "save" button, it addess three back-slashes infront of the quotes. The "Initialize" button would clean it up, but I can save the file only with three back slashes all over.
So far the only file I am able to edit successfully is the style.css file.
What am I doing wrong?
Sam
Theme Editor Plugin
Posted on: 11/01/06 07:20pm
By: mystral-kk
[QUOTE BY= samstone]
What does "Initialize" button do and mean?
Each time I press "Preview" it adds a back-slash infront of quote signs and if I click on the "save" button, it addess three back-slashes infront of the quotes. The "Initialize" button would clean it up, but I can save the file only with three back slashes all over.
So far the only file I am able to edit successfully is the style.css file.
What am I doing wrong?
Sam [/QUOTE]
Thanks for reply, Sam. When you press the "Initialize" button, the contents of the file you're editing will be reverted to the state when the Theme Editor plugin was installed. And as for the back-slash problem you reported, I guess it might have something to do with magic_quotes_gpc. I'll see if this is the case.
Theme Editor Plugin
Posted on: 11/02/06 08:29am
By: mystral-kk
I've updated the plugin to v1.0.2. Fixed the case with extra back-slashes. You can download from
HERE.
Re: Theme Editor Plugin
Posted on: 12/04/06 09:50pm
By: TechSys
I've been out of GeekLog for a while, didn't know anything about this plugin until 20 minutes ago.
Trying it on my test system now. Installed without a hitch and working great. Makes life easy as heck when working with themes. Haven't ran into any problems so far and have changed quite a bit of the professional theme (the easy stuff so far).
One thing that would be nice is a search, since the files can get rather large. If there is one, I may have overlooked it.
Not sure if there is anything else I can say about this plugin, except it's a great idea. Hopefully it can be expanded more, somehow.
Re: Theme Editor Plugin
Posted on: 12/07/06 07:17pm
By: mystral-kk
Quote by: TechSysOne thing that would be nice is a search, since the files can get rather large. If there is one, I may have overlooked it.
I haven't implemented a search feature yet. If you use Firefox or Opera as a browser, you can use each browser's built-in search function (ctrl+F).
Quote by: TechSysNot sure if there is anything else I can say about this plugin, except it's a great idea. Hopefully it can be expanded more, somehow.
Any ideas or suggestions will be welcome. Feel free to post in this forum.
Re: Theme Editor Plugin
Posted on: 12/10/06 07:24am
By: TechSys
This is probably going to be a stupid question, but, how do you add themes to the allowed themes part of of the config? I didn't see it in the readme file.
I tried adding another line with 'themename' in it, but got an error.
Re: Theme Editor Plugin
Posted on: 12/10/06 07:48am
By: mystral-kk
Quote by: TechSysThis is probably going to be a stupid question, but, how do you add themes to the allowed themes part of of the config? I didn't see it in the readme file.
I tried adding another line with 'themename' in it, but got an error.
Around line 57 in the config.php, you'll find the next line:
Text Formatted Code
$_THM_CONF['allowed_themes'] = array(
'professional'
);
If you'd like add a theme, say, 'professional_altered', add it like this:
Text Formatted Code
$_THM_CONF['allowed_themes'] = array(
'professional', 'professional_altered'
);
Re: Theme Editor Plugin
Posted on: 12/10/06 08:39am
By: TechSys
I really should have known that. It works. Thanks for the quick reply
Theme Editor Plugin
Posted on: 12/21/06 08:28am
By: mystral-kk
I've released the themedit (Theme Editor) plugin 1.0.4 for Geeklog. In this version, you can uoload image files directly to /images directories under each theme's directory. You can download it from
HERE[*2] .
Re: Theme Editor Plugin
Posted on: 12/22/06 04:54am
By: TechSys
Installed it last night without any problem. Pretty darn easy to upgrade from previous version.
Image upload works great. Only thing I didn't like is when going to the image upload it changed the theme to one I wasn't working on. I was working on my Tech theme, but it went to the professional. Not really a big problem, just got to watch and make sure it's on the correct theme.
Makes life a whole lot easier, especially for somebody learning to theme GL. I've lost count on the number of times I've changed things.
Re: Theme Editor Plugin
Posted on: 12/22/06 07:57am
By: mystral-kk
Thanks for using Theme Editor plugin, TechSys. I'll deal with the inconvenience you pointed out in the next version.
Re: Theme Editor Plugin
Posted on: 12/22/06 05:04pm
By: TechSys
Anything to help out. Not too good with php (right now), so gotta try to show some support when I can.
Re: Theme Editor Plugin
Posted on: 12/30/06 01:36pm
By: samstone
A feedback or bug.
None Themeditor adim can see the Themeditor icons in the "Command Control." Even though that user can't access the themeditor, presenting the icon to someone who can't use it seems not quite polite.
Is there an easy way to turn it off?
Sam
Re: Theme Editor Plugin
Posted on: 12/30/06 05:56pm
By: mystral-kk
Quote by: samstoneA feedback or bug.
None Themeditor adim can see the Themeditor icons in the "Command Control." Even though that user can't access the themeditor, presenting the icon to someone who can't use it seems not quite polite.
Is there an easy way to turn it off?
Sam
Thanks for the comment, Samstone. It's a bug. Please change the content of plugin_cclabel_themedit() function in /plugins/themedit/functions.inc (around line no. 170) from
function plugin_cclabel_themedit()
{
global $_CONF, $LANG_THM;
$pi_name = $LANG_THM['cc_label'];
$admin_url = $_CONF['site_admin_url'] . '/plugins/themedit/index.php';
$icon_url = $_CONF['site_admin_url'] . '/plugins/themedit/images/themedit.gif';
// $icon_url = $_CONF['site_url'] . '/themedit/images/themedit.gif';
return array( $pi_name, $admin_url, $icon_url );
}
to
function plugin_cclabel_themedit()
{
global $_CONF, $LANG_THM;
if ( !SEC_hasRights( 'themedit.admin' ) ) {
return;
}
$pi_name = $LANG_THM['cc_label'];
$admin_url = $_CONF['site_admin_url'] . '/plugins/themedit/index.php';
$icon_url = $_CONF['site_admin_url'] . '/plugins/themedit/images/themedit.gif';
// $icon_url = $_CONF['site_url'] . '/themedit/images/themedit.gif';
return array( $pi_name, $admin_url, $icon_url );
}
Sorry for the inconvenience.
Re: Theme Editor Plugin
Posted on: 12/30/06 08:39pm
By: samstone
That works. Thank you!
This plugin makes things much easier. Hope it will continue to improve.
Sam
Re: Theme Editor Plugin
Posted on: 12/30/06 09:05pm
By: Blaine
mystral-kk,
Sorry, the brackets in your code block were converted to HTML entities because your post was in HTML mode and well that was a bug which Mark and I have just been working on. I've updated the code on this site now and it should be working. The issue was not appearing if the topic was in Text mode - which is the default.
You should be able to edit your post.
Re: Theme Editor Plugin
Posted on: 12/30/06 09:10pm
By: mystral-kk
Thanks for notifying me, Blaine. I modified my previous post just now. BTW, your Forum plugin has been imroving a lot. I'm looking forward to its final 2.6 release.