Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2010-10-13 15:09:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

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

#4 2010-10-13 20:53:05

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

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

#5 2010-10-13 21:30:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

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

#7 2010-10-14 13:04:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

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 constant txp_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

#9 2010-11-29 16:40:09

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

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

#10 2010-11-29 17:04:44

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

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

#12 2010-12-01 17:10:03

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

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

Board footer

Powered by FluxBB