Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4274
Latest: kellanphil
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43644
Total Topics: 7572
Most Online Today: 129
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 74
Total: 74

Author Topic: Opportunity to use more hooks  (Read 811 times)

0 Members and 1 Guest are viewing this topic.

Offline live627

  • SMF Hacks Staff
  • Member
  • *****
  • Posts: 5
    • View Profile
Opportunity to use more hooks
« on: July 20, 2024, 04:36:28 am »
The following integration hooks which this mod uses for SMF 2.1 are also available in 2.0:

integrate_pre_include
integrate_admin_areas
integrate_menu_buttons
integrate_actions
integrate_load_permissions

You can use integrate_load_theme to load language files so that  you don't dump your strings into the messy garbage heap known as Modifications.english.php

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: Opportunity to use more hooks
« Reply #1 on: July 20, 2024, 10:32:58 am »
Yeah have mainly focused on updating for hooks for 2.1

The one thought I had on modifications.english.php was just performance of adding another hook call, and including another language file versus just took adding it to the existing modifications.php file.
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/

Offline live627

  • SMF Hacks Staff
  • Member
  • *****
  • Posts: 5
    • View Profile
Re: Opportunity to use more hooks
« Reply #2 on: July 20, 2024, 07:36:11 pm »
That's micro optimization.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: Opportunity to use more hooks
« Reply #3 on: July 21, 2024, 11:08:45 am »
Good to know. Yeah mainly when doing mass forum hosting trying to think of ways to optimize when i have 10's of thousands of boards.


I am exploring hooks more just did my first one with SMF Gallery Pro that does a buffer replacement to not make theme edits so would be interesting to explore with ad seller pro.
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/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
3095 Views
Last post June 16, 2012, 01:02:03 pm
by SMFHacks
4 Replies
28338 Views
Last post September 22, 2023, 03:57:28 pm
by SMFHacks

+- Recent Topics

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by SMFHacks
January 21, 2025, 05:13:30 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Denying members some admin settings by rickk
November 17, 2024, 12:02:55 pm

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Move picture from main gallery to user gallery by SMFHacks
October 11, 2024, 09:11:00 pm

Powered by EzPortal