SMF Development > Applied or Declined Requests

Please define $actionArray earlier on in index.php

<< < (2/3) > >>

SoLoGHoST:
Your completely missing the point here.  If an action is not defined within the actions array, it loads up the board index, if action is not empty.  Just read my first post, it explains it all.  In all honesty, the index.php code is thrown together in a sloppy way, which makes it difficult for portals and other mods to attach to!

SoLoGHoST:
Sorry, for the double post, but all I'm really saying is, that you can combine all of the checks into 1 or 2 if... else... statement(s) and still not define the $actionsArray until it is needed.  The main problem here is that board index is being loaded SEVERAL TIMES in if... else... statements before the $actionsArray is even defined causing portals not to be able to react to all possible times when the board index is being pushed onto the page, unless the portal calls the function multiple times, or handles its function within all of the if... else... statements, which would be ridiculous.

That is all.  Do what you will with that.

Cheers :)

feline:
I don't understand, what the Action array have to do with a Portal ..
All what it's necessary can be handled by the Portal itself if it's load BEFORE SMF start his work.. note the hook integrate_pre_include   ;)
From here YOU can controll what works and what not ...
 

SoLoGHoST:
Haven't explored that possibility, but in any case, will still need to know if an action actually exists within the $actionArray.  Perhaps a combination of using the hook and in the index.php file, might actually work somehow.  Will take a look.  Thanks :)

emanuele:
* emanuele points SoLoGHoST at WrapAction() too.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version