1 (edited by ForestMist 27-01-2014 03:01:50)

Topic: Admin Plugin

Admin plugin for Nibbleblog

Display Dashboard and Edit links for logged in users.

More information, screenshot(s) and downloads via https://github.com/ForestMist/nibbleblog-plugin-admin

Details

Users who have logged in will be presented with two links when viewing their site. Dashboard and Edit.

The Dashboard link simply takes you back to the Nibbleblog Dashboard.

The Edit link is smart and will redirect you as follows.

  • Viewing a page? Redirect to editing the page.

  • Viewing a post? Redirect to editing the post.

  • Viewing a list of posts? Redirect to Manage Posts.

  • Viewing a category? Redirect to Manage Categories.

  • Viewing tags or 404 pages? Redirect to the Dashboard.

Non-logged in users will not see any output by this plugin.

Testing

This plugin is very new so any testing anyone wants to do would be much appreciated. ^_^ Should work with Nibbleblog 3.72 and higher.

Re: Admin Plugin

Hello ForestMist,
great idea to check if the user logued.

Tip to check if the user logued.

global $Login;

if( $Login->is_logued() )
echo 'yes';

Re: Admin Plugin

Ah, that is nicer. Thanks!

Updated code at https://github.com/ForestMist/nibbleblog-plugin-admin.

I really enjoy looking through the Nibbleblog code to understand things. So very organized especially when compared to other content management systems. Good job. big_smile

Re: Admin Plugin

I think the name of the method is badly written.

I will change on the next version for is_logged()

Re: Admin Plugin

Ah, that would make more sense to my english brain. big_smile

Re: Admin Plugin

Sorry for my english.

Re: Admin Plugin

No worries. big_smile

8 (edited by ethan 05-02-2014 09:14:13)

Re: Admin Plugin

Translated Admin Plugin into Chinese Traditional.

<?php

$_PLUGIN_CONFIG['LANG'] = array(
    'NAME'=>'管理選項捷徑',
    'DESCRIPTION'=>'為已登入的使用者顯示管理首頁與編輯的連結',
    'DASHBOARD'=>'管理首頁',
    'EDIT'=>'編輯'
);

?>

Thank you for made this plugin, it's very practical.

Re: Admin Plugin

Very cool ethan. Thanks!

Should I put the code in a file named zh_TW.bit ?

Re: Admin Plugin

HI, ForestMist
yes, the file is zh_TW.bit.

Thank you.

Re: Admin Plugin

Perfect. Translation added to https://github.com/ForestMist/nibbleblog-plugin-admin for everyone to enjoy.

Thanks ethan. ^_^

Re: Admin Plugin

Love this, now I all I need is a nice theme really.

13 (edited by margaretworley6 15-06-2016 10:51:05)

Re: Admin Plugin

nice theme

http://www.buzzapplications.com/gorilla-online-marketing/