Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-10-04 02:17:18
- radneck
- Plugin Author
- Registered: 2005-07-03
- Posts: 109
esq_adminsplash - Admin splash page
esq_adminsplash
Admin splash page for displaying help and instructions to clients etc.
Textpattern 4.2.0+ recommended, tested and working as low as 4.0.7 however.
Download here.
Current version: 1.01, updated 2010-10-03.
For more information on how to use this plugin, please see the TXP Tip.
Last edited by radneck (2015-11-04 20:58:51)
Offline
Re: esq_adminsplash - Admin splash page
Nice idea.
Just as an FYI (in case you haven’t checked it out already), you might be interested to know that TXP 4.3.0 has a new tab that might help your plugin. There’s a Start tab (before Content) that your plugin can occupy so you don’t have to hide it among other plugins under Extensions. Ideal for dashboards and… client help information :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#3 2010-10-13 15:58:15
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: esq_adminsplash - Admin splash page
Wow! The txp community has found another prolific plugin author! :)
p.s.: very interesting, I’ll give a try.
Offline
Re: esq_adminsplash - Admin splash page
Bloke wrote:
There’s a Start tab (before Content)
Does the new tab only show up if a plugin is making use of it?
Offline
Re: esq_adminsplash - Admin splash page
maverick wrote:
Does the new tab only show up if a plugin is making use of it?
Yep.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#6 2010-10-14 01:19:03
- radneck
- Plugin Author
- Registered: 2005-07-03
- Posts: 109
Re: esq_adminsplash - Admin splash page
Bloke wrote:
There’s a Start tab (before Content) that your plugin can occupy so you don’t have to hide it among other plugins under Extensions. Ideal for dashboards and… client help information :-)
Thanks bloke, out of interest, how would I check what version of Textpattern is being used to know whether or not I can use the Start tab?
Last edited by radneck (2011-02-27 05:28:40)
Offline
Re: esq_adminsplash - Admin splash page
cain-mi wrote:
how would I check what version of Textpattern is being used
Doing a version_compare()
on the constant txp_version
should do the trick. It won’t catch SVN installs, but it’s good enough.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#8 2010-10-15 00:35:15
- radneck
- Plugin Author
- Registered: 2005-07-03
- Posts: 109
Re: esq_adminsplash - Admin splash page
Bloke wrote:
Doing a
version_compare()
on the constanttxp_version
should do the trick. It won’t catch SVN installs, but it’s good enough.
Cheers Stef, I hadn’t even heard of version_compare()
before, and I’ve been a PHP programmer for 3+ years :)
Last edited by radneck (2010-10-15 00:35:37)
Offline
Re: esq_adminsplash - Admin splash page
Ok, for cain-mi’s and everyone’s information, at this moment, you have to do the following to enable the ‘Home’ tab with this or any plugin:
1. In the plugin source, call register_tab with ‘home’ instead of ‘extensions’, so using this plugin’s code, the line would become:
register_tab('start', 'esq_adminsplash', $config['tab_name']);
2. In admin_config.php, add the following line (of course, only keep the permission levels you want to enable the home tab for)
'tab.start' => '1,2,3,4,5,6',
3. In Admin > Preferences > Advanced choose ‘Home > {your dashboard plugin}’ as the starting tab.
Note to dev team: I assume the tab.start privileges specifier is going to be part of the core privileges soon?
Kensington TXP powered rock
Offline
Re: esq_adminsplash - Admin splash page
jan wrote:
In admin_config.php, add the following line:
'tab.start' => '1,2,3,4,5,6',
Yes, or more preferable than hacking files is to add this line to the plugin instead:
add_privs('tab.start', '1,2,3,4,5,6');
I assume the tab.start privileges specifier is going to be part of the core privileges soon?
Don’t think so. Since it’s entirely optional, we don’t want to dictate the priv levels that can see it by default: only plugins can determine this, so it’s been deliberately left out of admin_config.php
. Of course I reserve the right to change my mind at some point in the future… :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#11 2010-11-30 00:52:23
- radneck
- Plugin Author
- Registered: 2005-07-03
- Posts: 109
Re: esq_adminsplash - Admin splash page
Thanks jan and Bloke, I’ll keep that in mind if I get round to a rewrite.
Last edited by radneck (2011-02-27 05:27:21)
Offline
Re: esq_adminsplash - Admin splash page
Oh in that case Bloke, never mind my endorsement of hacking… i didn’t know you could add it via add_privs() already! And that makes much more sense indeed!
Kensington TXP powered rock
Offline