Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: TLM on July 31, 2006, 05:47:05 PM

Title: Admin Modification Menu Section
Post by: TLM on July 31, 2006, 05:47:05 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=405)

This mod is a dependancy for a few modifications.  It just addes a section for mods to use that have outgrown the Features and Options area and are in need of a place of their own.
Title: Re: Admin Modification Menu Section
Post by: Itchâ„¢ on July 31, 2006, 06:04:27 PM
So what does it do exactly? And if possible, post a screenshot...most members like that. ;D
Title: Re: Admin Modification Menu Section
Post by: TLM on July 31, 2006, 07:06:42 PM
If the description is not exactly spot on here is a little shot just for you.

Link to Image (http://www.mindlesstux.com/images/SMFMods/adminmodification.png)

As you can see it does nothing more add a section to the admin menu side bar like stated in description.  There is no extra things under the title right now due to the two mods I am developing are not in the menu yet.
Title: Re: Admin Modification Menu Section
Post by: Niteblade on July 31, 2006, 07:32:59 PM
In other words, the two mods that he is developing right now are dependent upon this mod being installed first. In other other words, if you install the two mods he is developing right now without first installing this one, a planet in another galaxy will explode.
Title: Re: Admin Modification Menu Section
Post by: TLM on August 01, 2006, 01:45:45 AM
There is one other mod I do know about that is going to be using this.
Title: Re: Admin Modification Menu Section
Post by: Vinspire on August 01, 2006, 04:33:43 AM
I've still got no idea what does this mod do  :-\

I saw there is a new "modifications" section in the admin cp but what is it for ?

Sorry if i sounds dumb asking this kinda question  :'(
Title: Re: Admin Modification Menu Section
Post by: TLM on August 01, 2006, 01:00:20 PM
Quote from: Vinspire on August 01, 2006, 04:33:43 AM
I've still got no idea what does this mod do  :-\

I saw there is a new "modifications" section in the admin cp but what is it for ?

Sorry if i sounds dumb asking this kinda question  :'(

Quote from: TLM on July 31, 2006, 05:47:05 PM
This mod is a dependancy for a few modifications.

There is your answer.
To further drive in the point, Admin Area - Default View Area Finalized (http://www.mindlesstux.com/images/SMFMods/gmemmap2-final.png) for my Member Map. This mod is no where close to being a final state though, I want to put in about 2-3 more tabs of settings for people to use.  I could not really have done this in features and options.
Title: Re: Admin Modification Menu Section
Post by: Vinspire on August 01, 2006, 06:26:37 PM
Quote from: TLM on August 01, 2006, 01:00:20 PM
There is your answer.
To further drive in the point, Admin Area - Default View Area Finalized (http://www.mindlesstux.com/images/SMFMods/gmemmap2-final.png) for my Member Map. This mod is no where close to being a final state though, I want to put in about 2-3 more tabs of settings for people to use.  I could not really have done this in features and options.
Hmm .... Now i understand. The new printscreen of the mod which is the member map look awesome ... Anyway, i will take a look at it once this mod is completed so i will have the clear idea of what it does  :D ;D
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on August 03, 2006, 02:43:25 AM
The latest beta of my Global Announcements 0.3 mod uses this mod if it's installed.  It's not 100% dependant of this mod though.  Just uses it, if it's installed.
Title: Re: Admin Modification Menu Section
Post by: marinelife on September 15, 2006, 12:01:35 PM
I installed Global Announcements mod and the mod tab is now there, so should this mod be installed or is it part of the Globel Announcement mod
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on September 15, 2006, 12:10:05 PM
No this mod should be installed if you have the new verison of the Google Membermaps mod installed or the Global Announcements.  Also a new mod that I might release today uses this.
Title: Re: Admin Modification Menu Section
Post by: Skipdawg on September 15, 2006, 12:22:03 PM
I forgot about this.  ;D Should grab it so I don't get any surprises with any future mod installs  ;)
Title: Re: Admin Modification Menu Section
Post by: TLM on September 15, 2006, 12:24:06 PM
Quote from: Jay The Code Monkey on September 15, 2006, 12:10:05 PM
No this mod should be installed if you have the new verison of the Google Membermaps mod installed or the Global Announcements.  Also a new mod that I might release today uses this.
When you say new, you mean whats still in devel, had to start it from scratch, had one more extra dead drive...
Title: Re: Admin Modification Menu Section
Post by: marinelife on September 15, 2006, 12:25:26 PM
I have the global mod installed on my test site but not this mod, I was not sure if I needed this one as the global mod installed in the admin panel under a tab called mods

The latest on this site, I downloaded yesterday, it is version 1.0
Title: Re: Admin Modification Menu Section
Post by: Skipdawg on September 15, 2006, 12:30:18 PM
Grrr.... not ready for RC3 yet  ::)
Title: Re: Admin Modification Menu Section
Post by: marinelife on September 15, 2006, 12:32:37 PM
Yeah that would be a problem, But I see no need for this as the global Announcement mod added the same thing
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on September 15, 2006, 12:39:22 PM
Quote from: marinelife on September 15, 2006, 12:32:37 PM
Yeah that would be a problem, But I see no need for this as the global Announcement mod added the same thing
If you just have the GA mod you don't need this.  You need this if you have the Google Membermap mod and any other mod that adds a new category in admin panel and is compatible with this mod.

TLM are you going to update it for RC3 or you want me to?
Title: Re: Admin Modification Menu Section
Post by: marinelife on September 15, 2006, 12:45:22 PM
can this be installed after global announcement mod
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on September 15, 2006, 12:56:41 PM
Yea.  But since you only have GA installed no need to do so.
Title: Re: Admin Modification Menu Section
Post by: marinelife on September 15, 2006, 01:02:21 PM
ok cool so with GA install I can install Google map without any problems in it will be placed under the mods tab
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on September 15, 2006, 01:08:51 PM
Not the version of Google Map that is up now since that one still addds the tab inside the features and options area.
Title: Re: Admin Modification Menu Section
Post by: marinelife on September 15, 2006, 01:17:59 PM
ok cool, I just want to make sure I have everything in order before I take this to production
Title: Re: Admin Modification Menu Section
Post by: TLM on September 15, 2006, 02:45:02 PM
Quote from: Jay The Code Monkey on September 15, 2006, 12:39:22 PM
Quote from: marinelife on September 15, 2006, 12:32:37 PM
Yeah that would be a problem, But I see no need for this as the global Announcement mod added the same thing
If you just have the GA mod you don't need this.  You need this if you have the Google Membermap mod and any other mod that adds a new category in admin panel and is compatible with this mod.

TLM are you going to update it for RC3 or you want me to?

I dont think it would be to hard, which ever of us gets to it first, how about that...
Title: Re: Admin Modification Menu Section
Post by: Lew Cipher on September 17, 2006, 03:14:01 PM
Ready for RC3 yet?

Title: Re: Admin Modification Menu Section
Post by: winrules on September 20, 2006, 04:59:39 PM
I was just wondering, what is the setting for? I don't see any place that it can be changed, or anything that it would be effected by.
Title: Re: Admin Modification Menu Section
Post by: TLM on September 20, 2006, 05:06:23 PM
Quote from: winrules on September 20, 2006, 04:59:39 PM
I was just wondering, what is the setting for? I don't see any place that it can be changed, or anything that it would be effected by.
New version is, 1.0.2

Quote from: winrules on September 20, 2006, 04:59:39 PM
I was just wondering, what is the setting for? I don't see any place that it can be changed, or anything that it would be effected by.
Umm its not a setting, just mearly a new catagory.  It seems only me an Jay need this mod no one else has tried to make a mod that requires its own little admin page that is to big for features & options, and even a tab there!
Title: Re: Admin Modification Menu Section
Post by: winrules on September 20, 2006, 05:15:33 PM
I'm currently moving my Custom Profile Field Mod out of modsettings as it's really outgrown it and will put in in this mod's section if the mod is installed. In the mod you add a value to the settings table. What is it for?
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on September 20, 2006, 10:22:07 PM
That value is there so that your mod can be independed from this mod.  The way that I did it was that I added an if/else to check if the mod was installed.  If not installed the menu will be shown.  That way your mod is not 100% dependant from this mod.


// Category for admin panel.  Pogo Awards
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('manage_awards'))
{
$context['admin_areas']['other']['areas']['awards_admin'] = '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('manage_awards'))
{
$context['admin_areas']['awards_admin'] = array(
'title' =>  $txt['pa_mods'],
'areas' => array(
'awards_admin' => '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>',
),
);
}


Also I made a change on the mod and too off the permission for the admin_forum.  I left it w/o permission that way other mods that have custom permissions can take advantage of this.
Title: Re: Admin Modification Menu Section
Post by: winrules on September 21, 2006, 03:54:56 PM
Wouldn't if (isset($context['admin_areas']['other'])) be better? That way you don't need a extra setting.
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on September 21, 2006, 04:03:54 PM
Well then problems step in when you dont install the mods in certain orders.
Title: Re: Admin Modification Menu Section
Post by: winrules on September 21, 2006, 04:21:37 PM
Quote from: Jay The Code Monkey on September 21, 2006, 04:03:54 PM
Well then problems step in when you dont install the mods in certain orders.
If you set them earlier they will just get overwritten when the mod sets the area, so IMO that is the only way to guarentee that it will work.
Title: Re: Admin Modification Menu Section
Post by: ladyshanae on March 03, 2007, 06:36:53 PM
I'm feeling like a complete moron, but I can't get the two mods I installed to show up under this new section.  I installed both Global Announcements and Awards, and neither are showing up in that section.  I can get to them because I know the action bit to put into the url, but . . . I have looked everywhere for which file I need to fix and I can't find it.

I just upgraded to the most recent version of SMF and it uninstalled all my mods.  I was in the process of reinstalling them all and this glitch came up.  Any ideas?  Am I posting in the wrong spot?
Title: Re: Admin Modification Menu Section
Post by: JayBachatero on March 04, 2007, 01:21:30 PM
Are you use that the language strings are there?  Also are you using a custom theme?
Title: Re: Admin Modification Menu Section
Post by: ladyshanae on March 04, 2007, 04:24:20 PM
I have checked every file I can think of to check and I'm at a loss.  I'm in the process of trying to uninstall everything and reinstall it.  I've checked template files (because I assume that's why I can't see it) and the information appears to be there.  I've checked language files, and the information appears to be there as well.

I usually use a custom theme, but I've checked this in the default them and it's not their either.