News:

Wondering if this will always be free?  See why free is better.

Main Menu

Admin Modification Menu Section

Started by TLM, July 31, 2006, 05:47:05 PM

Previous topic - Next topic

JayBachatero

Not the version of Google Map that is up now since that one still addds the tab inside the features and options area.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

marinelife

ok cool, I just want to make sure I have everything in order before I take this to production

TLM

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...

Lew Cipher

Version: SMF 1.1.2
Many mods installed

winrules

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.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


TLM

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!

winrules

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?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

winrules

Wouldn't if (isset($context['admin_areas']['other'])) be better? That way you don't need a extra setting.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


JayBachatero

Well then problems step in when you dont install the mods in certain orders.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

winrules

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.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


ladyshanae

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?

JayBachatero

Are you use that the language strings are there?  Also are you using a custom theme?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

ladyshanae

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.

Advertisement: