View Full Version : Admin Shortcuts
HeavyEddie
06-04-2006, 03:37 AM
This adds some very functional shortcuts to the homepage of the Admin page. I've only been using it for about a day and already am becoming dependant on having these shortcuts at the ready.
<div align="center">
http://www.thedeadrat.com/images/screenshots/admin_shortcuts.gif</div>
This plugin will allow you to place shortcuts in the admin control panel. Shortcuts can point to any plugin configuration or launch a particular function in a plugin. For instance, with a single click you can create or modify a news article!
This plugin is particularly handy for setting up a site for a customer or friend who isn't quite so computer savvy. With a single click they can edit a pre-configured custom plugin and hit update.
Version 1.0 Large number of shortcuts pre-configured
Order the shortcuts how you wish
Intelligent enough to not display a shortcut if the plugin isn't installed.
Shortcut directly to a plugin functions are capable. For instance, add a news article with a single click.
Shortcuts to external pages.
Option to launch external pages in a new window.
Additional icons are easily added by simply uploading a graphic to the plugin directory.
<div align="center">
NOTE: In order for this to work, a small 3 line hack will be required. You will receive instructions on how to apply the hack after you install.</div>
<div align="center">
Please download from SD.org: Here (http://www.subdreamer.org/sd_plugins/p13_sectionid/3/p13_fileid/79)
or
thedeadrat.com: HERE (http://www.thedeadrat.com/Files/p13_sectionid/6/p13_fileid/8)</div>
Robert_J_Ellis
06-04-2006, 04:19 AM
Wow, this is really intuitive, nice work Ed :). I think I'll use this.
jhobbs
06-04-2006, 01:17 PM
Very nice! Thanks for a job well done (well, almost done).
This should become one of the built-in "standard" SD plugins, IMHO.
77sunsetstreet
06-04-2006, 01:34 PM
great job,
i just was editing the admin-panel with the most important link.
yours is nearly perfect.
links like google should have a option to open in a _blank window.
greetz from sweden
abcohen
06-04-2006, 02:30 PM
HeavyEddie - this looks great (if you want pull some of the notepad code to intergrate with this... might make for an even better login)
HeavyEddie
06-04-2006, 02:49 PM
@ sunset... I will slip that in.
@all...
I screwed up one of the new article shortcuts. If you change the last character in the New Article (text) shortcut to a zero, it will do as advertized.
I almost forgot... There is two seperate ways that a shortcut may not display.
1) You don't have the display checkbox checked.
2) You don't have the plugin that it is associated with installed.
<div class='quotetop'>QUOTE(abcohen @ Jun 4 2006, 10:30 AM) 6515</div>
HeavyEddie - this looks great (if you want pull some of the notepad code to intergrate with this... might make for an even better login)
[/b]
Sweet! Thanks!
HeavyEddie
06-09-2006, 11:52 PM
I added a few icons and the ability to open a link in a new window. Only thing left to do is figure out a way to verify that the hack has been added to cphome.php and I will release it as 1.0. I am going to wait until 1.1 to slip the notes into mix.
> > > Download Here (http://www.thedeadrat.com/Files/p13_sectionid/1/p13_fileid/8) < < <
Oh, you folks who are building sites for clients will find this VERY handy!!! I created a couple of shortcuts to open a couple of key news articles and custom plugins for my daughter to update whenever she wants.
Single click... change some text... update.
HeavyEddie
06-10-2006, 01:22 PM
oops... I made a couple of typos... updated.
Talking about typos - have a look at this plugins download page on your site.
Spouce should be 'Spouse'..... :P
BTW: I sent a mass mail to my entire contact list declaring the placement of a dead rat on my website.
HeavyEddie
06-21-2006, 03:13 PM
Ouch... I will have to fix that tonight :)
Thanks for prompt payment :)
thomas
06-21-2006, 11:02 PM
wow - still think this should be standard :P well done heavy again, good development work
HeavyEddie
06-24-2006, 03:14 AM
Updated to 1.0... I'm pretty sure it is ready for public consumption. You can grab it from the thedeadrat.com (http://www.thedeadrat.com/p150) until it get's posted to SD.
72dpi
06-24-2006, 03:31 AM
man,
u rock heavy =)
this is fab!
I know, i know, i shouldnt be on the forum, i shood be doing the skin for ya right?
just gonna pop outside and sand the decking & oil it, now.. then i will come back in and play =)
later!
HeavyEddie
06-24-2006, 03:33 AM
One of the reasons I finished it up was so I can use it for our project 72 :) You are obviously doing research :)
Mr-ISO
06-24-2006, 03:36 PM
Installed it on two subdreamer sites.
One of them I got the message to fix cphome, but on the last one I didn't get any message. Tried it a few times, same thing.
Could you post the changes that has to be done aswell, since I actually didn't store that info?
EDIT: Tried a third site now, same thing. No info after installation.
HeavyEddie
06-24-2006, 04:03 PM
Hmmmm... do you have a standard installation? I wouldn't mind seeing your cphome.php if you could attach it or something.
The changes that needs to happen are below...
Near line 33 of cphome.php find this line...
PrintSection("Getting Started");
Just above it, place all three lines of this hack...
//p150 Hack Begin
include('../plugins/p150_admin_shortcuts/p150_admin_shortcuts.php');
//p150 Hack End
As an FYI... the script searches cphome.php for the line "//p150 Hack Begin" in order to check if it is installed.
Mighty_Mouse_2006
06-24-2006, 06:49 PM
Hey Eddie,
I'm sure there's enough to do but read this post.
http://www.subdreamer.com/forum/showthread.php?t=7465
It might be a cool option.
kitza
06-25-2006, 02:56 AM
Thanks HeavyEddie I love it :)
and Mr-ISO I was having the same problem I think the reason is a typo in the hack instructions just take the "a" out and it works
Find the following line Around line 33...
PrintSection("Getting Started");
Directly ABOVE, place the following three lines of code...
//p1a50 Hack Begin
include('../plugins/p150_admin_shortcuts/p150_admin_shortcuts.php');
//p150 Hack End
Save the file. If you had to download cphome.php with an FTP program, be sure to upload your new version back to the server.
NOTE: you may have to re-apply this hack if you upgrade your Subdreamer installation.[/b]
HeavyEddie
06-25-2006, 03:02 AM
<div class='quotetop'>QUOTE(Mighty_Mouse_2006 @ Jun 24 2006, 02:49 PM) 7130</div>
Hey Eddie,
I'm sure there's enough to do but read this post.
http://www.subdreamer.com/forum/showthread.php?t=7465
It might be a cool option.
[/b]
Cool for sure. I do plan on including abcohen's notes. I will look into these other options as well.
<div class='quotetop'>QUOTE(kitza @ Jun 24 2006, 10:56 PM) 7140</div>
Thanks HeavyEddie I love it :)
and Mr-ISO I was having the same problem I think the reason is a typo in the hack instructions just take the "a" out and it works
[/b]
That is exactly the problem kitza! Sorry I missed that folks. I will fix and put another up first thing in the morning. Darn fat fingers!
HeavyEddie
06-25-2006, 03:18 AM
OK... I've updated the plugin to fix the error. You can get 1.01 from thedeadrat.com (http://www.thedeadrat.com/Files/p13_sectionid/1/p13_fileid/8) until it is updated on this site.
kitza
06-25-2006, 06:44 AM
First let me say that Im very new at this but I was playing around with this fantastic plugin and when trying to add a new link I was getting a sql error so I changed on p150_settings.php this
function add_shortcut()
{
************global $DB;
**************$DB->query("INSERT INTO " . TABLE_PREFIX . "p150_shortcuts VALUES ('', '" . $_POST['pluginid'] . "', '" . $_POST['showshortcut'] . "', '" . $_POST['shortcut'] . "', '" . $_POST['name'] . "', '" . $_POST['sortorder'] . "', '" . $_POST['icon'] . "') ");
}
To this
function add_shortcut()
{
************global $DB;
**************$DB->query("INSERT INTO " . TABLE_PREFIX . "p150_shortcuts VALUES ('', '" . $_POST['pluginid'] . "', '" . $_POST['showshortcut'] . "', '" . $_POST['shortcut'] . "', '" . $_POST['name'] . "', '" . $_POST['sortorder'] . "', '" . $_POST['icon'] . "', '" . $_POST['newwindow'] . "') ");
}
and it looks like it is working.
And once again HeavyEddie thanks I love it and I can't wait till the notbook plugin works with it :)
HeavyEddie
06-25-2006, 02:45 PM
Thanks folks. I really owe you folks an apology, I thought I tested this out better than I did.
Latest fix out and 1.02 has been submited to SD.org. In the mean time, you can get the latest version on thedeadrat.com (http://www.thedeadrat.com/p150).
abcohen
06-25-2006, 03:25 PM
now updated on the SD.org DLM to 1.02 :D
jblackburn
06-25-2006, 05:01 PM
Great job! Great plugin!
I will note that I didn't get the "hack info" after I installed either, but did use the hack notes posted here which worked fine.
Sorry... hit new topic, rather than reply... feel free to move this to the right thread.
Jim
Mr-ISO
06-28-2006, 02:06 PM
<div class='quotetop'>QUOTE(HeavyEddie @ Jun 24 2006, 06:03 PM) 7126</div>
Hmmmm... do you have a standard installation? I wouldn't mind seeing your cphome.php if you could attach it or something.
[/b]
Thanks for the help!
I've deleted this file I'm afraid..
But the cphome.php is the same one as in a fresh subdreamer install.
valdet
07-04-2006, 08:15 AM
thanks for this great plugin
steve51184
11-13-2006, 04:45 PM
just installed this but i didn't get instructions on how to apply it after?
Terminator1138
11-13-2006, 07:27 PM
if you visit his site there steve I think you will find what you are looking for.
steve51184
11-14-2006, 10:07 AM
i've looked but i still can't find this 3 lines of code?
HeavyEddie
11-14-2006, 11:10 AM
It looks like when I edited it last, the code line was pulled out. Errrr.... tineMCE drives me nuts with that. I slipped it back into the page.
http://thedeadrat.com/p150
steve51184
11-14-2006, 11:14 AM
nice one thanks :)
Stixsmaster
11-16-2006, 12:17 AM
yea same here I have installed this once before and never got any instructions on how to complete it so yea sumone PLZ help.
---Stixsmaster
HeavyEddie
11-16-2006, 02:50 AM
Instructions are now on this page
http://thedeadrat.com/p150
jessenco
01-08-2007, 03:24 AM
Real time saver.
Thank you for this.
iDanny
02-18-2007, 11:05 PM
manage shortcuts in sections would a big approvement! like:
ADMIN SHORTCUTS
UPDATE SHORTCUTS NEW ARTICLE CREATE PLUGIN
-------------------------------------------------------------------------
CATAGORIE #1
EDIT CUSTOM PLUGIN #1 EDIT CUSTOM PLUGIN #17
-------------------------------------------------------------------------
CATAGORIE#2
EDIT CUSTOM PLUGIN #13 EDIT CUSTOM PLUGIN #2
i hope you understand it like this ;)
mohachenawi
04-04-2007, 10:46 AM
Got this error :
Subdreamer Error: The plugin could not be found.
HeavyEddie
04-06-2007, 03:56 PM
Did you actually install the plugin? Did you add the code to cphome.php.
Info here
http://thedeadrat.com/p150
Blueracer66
09-03-2007, 12:00 AM
Hey, HeavyEddie the p150 page displays an empty page. Can you please tell us where we can find the 3 lines of code? Can you post it here? Thank you!
Did you actually install the plugin? Did you add the code to cphome.php.
Info here
http://thedeadrat.com/p150
xrayhead
09-23-2007, 08:36 PM
Hey, HeavyEddie the p150 page displays an empty page. Can you please tell us where we can find the 3 lines of code? Can you post it here? Thank you!
Well I don't even have the file "cphome.php" in the zip I downloaded let alone the code after install!
I tried to follow his link but the site is down at present!!
I don't see the point of posting a plug-in if it's not 100% complete.:mad:
Looks like I will have to remove this one..........
Xray
xrayhead
09-23-2007, 08:38 PM
By the way I get this;
Subdreamer Error: The plugin could not be found.
a squared
09-25-2007, 01:37 AM
Hi, just installed and went looking for the line hack at the link and was greeted with this "Doing a wee bit of an upgrade". Can't wait for the line hack to see how this works! :D
a squared
09-25-2007, 01:42 AM
OK, just re-read the thread and found the code hack; it's on post #17 (http://www.subdreamer.org/forum/showpost.php?p=6922&postcount=17) of this very thread. It really should be added to the first post though so it's easier for people to find.
I'll repeat it here.
HeavyEddie says:
Near line 33 of cphome.php find this line...note: Prior to adding the hack it's actually line 29.
PrintSection("Getting Started");HeavyEddie says:
Just above it, place all three lines of this hack...//p150 Hack Begin
include('../plugins/p150_admin_shortcuts/p150_admin_shortcuts.php');
//p150 Hack EndWell I don't even have the file "cphome.php" in the zip I downloaded let alone the code after install!
Xray, cphome.php is in your SD admin folder. It isn't an extra file.
Upload and install the plug-in, add the line hack and upload goto admin home and be greeted with a fantastic GUI. THANKS HeavyEddie!!!! :D:D
xrayhead
09-26-2007, 01:09 PM
Ok Sorry
I changed the file and all is working cool.
Thanks!!
Kentex69
02-13-2009, 08:19 AM
Hi Community,
I agree it's really a great plug-in, especially if you have made a homepage for less IT-savvy people who needs to add content to the site.
However, it is not shown to people who isn't global administrators (Full Admin Access), but have been granted admin rights to some of the plug-ins by a global admin.
This is really a shame, since I assume most web-site owners doesn't want to give co-admins full access to the site (possibility to ruin the whole site) but want to give different usergroups, different admin rights to the available plugins.
Is there a way to fix this issue? It woud be great if "Plugin admins" also could use this awesome plugin.
Best regards
Kenny
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.