Advertisement:

Author Topic: integrate_admin_areas Hook Missing from 2.1 RC1  (Read 257 times)

Offline Randem

  • Jr. Member
  • **
  • Posts: 218
  • Gender: Male
    • Randem Systems
integrate_admin_areas Hook Missing from 2.1 RC1
« on: March 15, 2019, 07:19:46 PM »
In the Admin.php file the code for integrate_admin_areas is missing. Is this an oversight?

Code: [Select]
// Let them modify admin areas easily.
call_integration_hook('integrate_admin_areas', array(&$admin_areas));

Is there some other way to achieve what this hook was for? or do I need to put it back with a MOD?
https://randemsystems.com/support/       -   Discusware to SMF Converter / BotBanish Support
https://blaxtonjames.com                         - Money, Knowledge And Power; Why You Are Missing All Three
https://joystickgangsta.com                      - An Experience You Can't Refuse
http://botbanish.com                                 - The Ultimate BOT Defender for SMF, OpenCart, WordPress  & Websites

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,508
    • StoryBB/StoryBB on GitHub
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #1 on: March 15, 2019, 07:25:21 PM »
There's a generic hook inside the menu code instead that replaces the equivalent hooks for admin and profile.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Randem

  • Jr. Member
  • **
  • Posts: 218
  • Gender: Male
    • Randem Systems
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #2 on: March 15, 2019, 08:02:53 PM »
Would that be createMenu() in Subs-Menu.php?
https://randemsystems.com/support/       -   Discusware to SMF Converter / BotBanish Support
https://blaxtonjames.com                         - Money, Knowledge And Power; Why You Are Missing All Three
https://joystickgangsta.com                      - An Experience You Can't Refuse
http://botbanish.com                                 - The Ultimate BOT Defender for SMF, OpenCart, WordPress  & Websites

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #3 on: March 15, 2019, 10:56:38 PM »
Odd... I been using integrate_admin_areas in my mods for SMF 2.1 seems to still work for some reason...
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Randem

  • Jr. Member
  • **
  • Posts: 218
  • Gender: Male
    • Randem Systems
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #4 on: March 15, 2019, 11:10:42 PM »
It may have been there in 2.1 but the code is definitely missing in 2.1 RC1...
https://randemsystems.com/support/       -   Discusware to SMF Converter / BotBanish Support
https://blaxtonjames.com                         - Money, Knowledge And Power; Why You Are Missing All Three
https://joystickgangsta.com                      - An Experience You Can't Refuse
http://botbanish.com                                 - The Ultimate BOT Defender for SMF, OpenCart, WordPress  & Websites

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #5 on: March 15, 2019, 11:52:47 PM »
Yeah I meant RC1...
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Sesquipedalian

  • The Mad Doctor
  • Lead Developer
  • Full Member
  • *
  • Posts: 624
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #6 on: March 15, 2019, 11:53:41 PM »
It's here:
https://github.com/SimpleMachines/SMF2.1/blob/1280283d1e389fd1532f8cfa37d6e532d8777ed3/Sources/Subs-Menu.php#L67-L69

When building the admin menu, that will call the integrate_admin_menu hook. When building the moderation menu, it will call the integrate_moderate_menu hook, etc., etc.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,059
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #7 on: March 16, 2019, 12:00:27 AM »
That explains it! Thanks
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Sesquipedalian

  • The Mad Doctor
  • Lead Developer
  • Full Member
  • *
  • Posts: 624
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: integrate_admin_areas Hook Missing from 2.1 RC1
« Reply #8 on: March 16, 2019, 12:33:18 AM »
I remember being confused about that myself once when I was getting started with 2.1's code, so I've just added some comments to make it easier for others to find this in the future.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.