Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 03:35 pm EST

Geeklog Forums

Theme Editor Plugin

Page navigation


Status: offline

mystral-kk

Site Admin
Admin
Registered: 03/19/06
Posts: 100
Location:Japan
Quote 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

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
Text Formatted Code

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
Text Formatted Code

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.
-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
That works. Thank you!

This plugin makes things much easier. Hope it will continue to improve.

Sam
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 03/19/06
Posts: 100
Location:Japan
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.


-- mystral-kk, "Every cloud has a silver lining."
 Quote

Page navigation

All times are EST. The time is now 03:35 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content