News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Create custom actions

Started by HelAu007, May 16, 2023, 05:51:40 AM

Previous topic - Next topic

HelAu007

Hello,
In 2.0 we were using the custom action mods to define menu entries which are calling internal actions via index.php?action=
With 2.1 this mod is now longer available. Can you give me a hint how I can add actions with a Mod ?
Thanks in advance
Helmut

Sesquipedalian

Option 1: Ask someone to take over that mod and update it for SMF 2.1, or update it yourself if you know how.

Option 2: Reimplement the custom actions that you had created with that mod as their own independent mods. Since you already have working content for those actions, you can probably use @Bugo's Simple Mod Maker to help you with that.
I promise you nothing.

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

Mightymax44

Quote from: Sesquipedalian on May 16, 2023, 12:31:27 PMOption 1: Ask someone to take over that mod and update it for SMF 2.1, or update it yourself if you know how.
Hi
Mod link?
the license is specified?
La connaissance, c'est partager le savoir qui nous fait grandir.

HelAu007

https://custom.simplemachines.org/index.php?mod=331
I managed to add it to 2.1.3 but only with PHP version 7.x

Mightymax44

ok great. you have to see if it's possible to share your work to help you with the development in php 8 or 8.1 if you want.
 ;)
La connaissance, c'est partager le savoir qui nous fait grandir.

HelAu007

I only had to change the part , where to insert the code, I didn't had to change the code itself

Mightymax44

Quote from: HelAu007 on June 01, 2023, 03:00:46 PMI only had to change the part , where to insert the code, I didn't had to change the code itself
yes it is the base after it is necessary to adapt the code for the php versions and ideally to create a hook version ;)
La connaissance, c'est partager le savoir qui nous fait grandir.

Advertisement: