Tabbed Options

Tabbed Options

hemant_bhardwaj

Well-known member
when i try to achieve it i get this error :(
can you guide me little bit ?

An exception occurred: [TypeError] Argument 5 passed to xenbros\Super\EventListener\MacroRender::preRender() must be of the type array, string given in src\addons\xenbros\Super\EventListener\MacroRender.php on line 7

and line 7 is =

public static function preRender(\XF\Template\Templater $templater, &$type, &$template, &$name, array &$arguments, array &$globalVars)
 

robdog

Well-known member
Does this code still work? I seem to be running into issues with OPTIONS not being passed properly to the macro.
 

mazzly

Well-known member
Thanks for this awesome guide! Works like a charm and makes the settings much more intuitive to use :)

One thing one of my testers noticed.

The tabbed interface works fine when accessed through: ACP > Setup > Options > Addon name

If accessed through ACP > Add-ons > Addon name (gear icon) > Options it will render the page without any tabs/headers.
- I'm thinking maybe there is some different event listener that would need to be used here?
 

DragonByte Tech

Well-known member
Thanks for this awesome guide! Works like a charm and makes the settings much more intuitive to use :)

One thing one of my testers noticed.

The tabbed interface works fine when accessed through: ACP > Setup > Options > Addon name

If accessed through ACP > Add-ons > Addon name (gear icon) > Options it will render the page without any tabs/headers.
- I'm thinking maybe there is some different event listener that would need to be used here?
It seems to work for me 🤔 Are you using XF 2.0, 2.1 or 2.2?
 
Top