Firstly, would it be possible to automatically shrink the sidebars and top bars when opening either of the two admin options? Say as an option within the TP general settings, like the forum.
Secondly, with the addition to the buttons of the download manager, on top of two I had already added for PM's and Unread posts, I am now having problems with the button row wrapping. Could TP Admin be incorporated into the Admin section? This will become more of a problem for those using buttons when other modules are added.
i personally like it in the toolbar at the top, but maybe it could be in both places, and you can change whether the button appears in the topbar or not from the tpadmin menu.
Look at the NDT, Core, it has both the tabs I use as buttons and a Members tab as well. You translate that into buttons and you are in trouble. For admins (as one of my co-admins suggested, maybe you don't need the full text on buttons, maybe abreviations would suffice.
hi nokonium,
it's very simple to add TP in SMF Admin ...
for 1.1 rc2
open Subs.php and search for:
// Set up the administration sections.
function adminIndex($area)
{
global $txt, $context, $scripturl, $sc, $modSettings, $user_info, $settings;
// Load the language and templates....
loadLanguage('Admin');
loadTemplate('Admin');
// Admin area 'Main'.
$context['admin_areas']['forum'] = array(
'title' => $txt[427],
'areas' => array(
'index' => '<a href="' . $scripturl . '?action=admin">' . $txt[208] . '</a>',
'credits' => '<a href="' . $scripturl . '?action=admin;credits">' . $txt['support_credits_title'] . '</a>',
)
);
add after that:
// Add TiniPortal
$context['admin_areas']['other'] = array(
'title' => 'TinyPortal',
'areas' => array(
'TinyPortal' => '<a href="' . $scripturl . '?action=tpadmin">' . $txt[208] . '</a>',
)
);
thats all ::)
Fel
Excellent Fel ;)
thanks crip :)
It's good think, to add many options into Admin section ...
Fel
Thanks Feline (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.nokonium.plus.com%2Fblack-cat%2Fcatsmilies%2Fbc-cathubba.gif&hash=bdda466a9837ef225975279803db68542f23658d)
Thanks, I'd rather have it in the admin section as well.
Kudos
Good suggestion..I have been wondering about what to do about it, because with additonal modules like downlaod manager, comes more buttons...
So maybe something like this:
1.)
- keeping tpadmin button
- change "downloads" to read "modules"? And a new screen to select any modules you have active.
2.)
- move tpadmin to SMF admin , loose the button
- same as above for "downloads"
3.)
- keep everything and add new ones.. :P :)
3. def. will be crowded, so I don't think that will be good at all.
About auto-upshrinking when in special parts, that will be options available. Not in 0.8..since I will be forever in this version if I add another on top everything else..but in 0.9 for sure.
I think you should let people add buttons manually. You also gotta remember that there are other mod's added to SMF in general that add buttons, aside from any buttons that user might want to add manually like "stats", "gallery", "osstore" or "smfshop", etc.
I always find it a pain to fit in buttons into a theme.
I like option 2 the best - moving it to the Admin section.
There are, in the permissions section of SMF (IIRC), where you can set it for moderators to have access to certain portions of the Admin section. It might be an idea to look at how that is done so that the site Admin could also setup moderators with permissions to handle certain admin-type tasks relating to TP (such as Downloads).
Attached is what it looks like on Fiddlers Elbow.
I would prefer option 2 and something like this
TinyPortal
- TP Admin
- Download Mgr
- Gallery
I agree with Xarcell and if possible let peeps have an option. I don't have the buttons that he mentioned but I do have Arcade and have added PM's and Unread for my own use and that is why I asked.
[attachment deleted by admin]
Yeah, I have a couple of custom buttons as well. I have an "Unread Topics" button on my forums currently, along with a "Rules of Conduct" button. And after upgrading it to RC2 (and TP), I am planning on adding a Chat mod as well.
[attachment deleted by admin]
I'm have add all TP Options ...
// Add TiniPortal
$context['admin_areas']['tinyportal'] = array(
'title' => 'TinyPortal',
'areas' => array(
'TPAdmin' => '<a href="' . $scripturl . '?action=tpadmin">Administration</a>',
'TPDLAdm' => '<a href="' . $scripturl .'?action=tpmod;dl=admin">DL Manager Administration</a>',
'TPDownload' => '<a href="' . $scripturl .'?action=tpmod;dl=0">Download Manager</a>',
'TPUpload' => '<a href="' . $scripturl .'?action=tpmod;dl=upload">Upload Manager</a>',
)
);
by the way ..
I think it's a good idea, to change
$context['user']['is_admin']
to
allowedTo('admin_forum')
so all users with forum admin can handle TP Admin.
or better .. make it configurable ::)
Fel
[attachment deleted by admin]
Hmm... such a list could contain all of the TP related Admin pages (Edit Categories, Edit Articles, etc...)
:)
/me likes....
many Rasyr .. as you want ..
I offered another button/tpadmin suggestion in another thread.
Here's what I wrote:
1.) One of the things I noticed about TP is the button issues which have already been discussed. Sooner or later there are going to be too many buttons to fit in a theme. So here are a few suggestions...
Make the TPAdmin link appear in the "user Info" block if the user has permission to use TPAdmin. If the User isn't a administrator or moderator, the TPAdmin link doesn't appear.
I think you should let people add buttons manually. You also gotta remember that there are other mod's added to SMF in general that add buttons, aside from any buttons that user might want to add manually like "stats", "gallery", "osstore" or "smfshop", etc.
Xarcell - that was earlier in this thread...... ;)
At least the last paragraph was.... hehe
Fel, adding the permission is next on my list. :) Too much use of "is_admin" really.
All the parts should be configurable, whether its blocks/articles etc. it needs a great deal of changes, but now the time to do it as any. TP admin/module-admin sections will only get bigger.
I like the idea of "TPadmin" inside userblock, a special "admin" section could be added there with links to what you can administrate.
Only problem is that the block will be very long. Maybe the stats parts could be moved over to stats block rather, including who is online?
Quote from: Bloc on January 11, 2006, 06:22:43 PM
Only problem is that the block will be very long. Maybe the stats parts could be moved over to stats block rather, including who is online?
I agree with that Bloc.
I like the idea of moving the stats to a separate block as well. I think that makes more sense in the long run.
I think so Bloc.
Better only the Admin operations added to sms Admin section ..
Fel
Yes, and using AllowedTo more, like you suggested. :)
exactly Bloc .. good boy ;)
I think moving the stats would be better too.
I also think the "User's online" should be made into a block and maybe adding additional quicklinks beside the names like "PM" and "Add Buddy". EX:
Xarcell - PM Add Buddy
Bloc - PM Add Buddy
Or something of that nature with "PM" and "Add Buddy" in different color from the name(profile link). Maybe even use a image icon, I dunno.
What do ya think?