Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 191
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 196
Total: 196

Author Topic: Admin Location  (Read 444 times)

0 Members and 1 Guest are viewing this topic.

Offline PapaFrizArcade

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Admin Location
« on: March 08, 2022, 08:42:43 am »
Hi,

I have your BADGES and AWESOME RATINGS mods (and your SIMPLE VIDEO EMBEDDER MOD).  All three create their own sections in ADMIN.  Is there any way to move them to either the MODIFICATIONS section,  or the POSTS section... or at least combine them to have a SMFHACKS section? 

Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Admin Location
« Reply #1 on: March 08, 2022, 01:15:24 pm »
In SMF 2.1 not easily. The mods are now written to use hooks instead of file edits in the admin menu areas.
Would require removing the hook menu code from each mod. Then replacing it with file edits. Admin.php

For instance for awesome post ratings in admin.php
Code: [Select]
'manageboards' => array(
'label' => $txt['admin_boards'],
'file' => 'ManageBoards.php',
'function' => 'ManageBoards',
'icon' => 'boards',
'permission' => array('manage_boards'),
'subsections' => array(
'main' => array($txt['boards_edit']),
'newcat' => array($txt['mboards_new_cat']),
'settings' => array($txt['settings'], 'admin_forum'),
),
),

Add after
Code: [Select]
'awesome' => array(
'label' => $txt['awepost_admin'],
'file' => 'AwesomePostRatings2.php',
'function' => 'AwesomeMain',
'custom_url' => $scripturl . '?action=admin;area=awesome;sa=adminset',
'icon' => (!function_exists("set_tld_regex") ? 'server.gif' : 'awesome.png'),
'subsections' => array(
    'adminset' => array($txt['awepost_txt_settings']),
'ratingtypes' => array($txt['awepost_ratingstypelist']),
),
),),
),

Then delete the code inside awesomepost_admin_areas in AwesomePostRatingsHook.php

The downside is that anytime the mod updates you have to redo the change. Or if you uninstall/reinstall the mod.


Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Like Like x 1 View List

Offline PapaFrizArcade

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Admin Location
« Reply #2 on: March 08, 2022, 03:17:22 pm »
Seems like it's one of those "the amount of work necessary isn't worth the final result" kinds of things. 

Thank you...

 

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal