![]() |
&action=INVALID
I'm trying to come up with a hack where if the action is invalid, it reports an error (template: error_invalidaction).
It works fine, except I've only done it for member.php. So if you go to: member.php?s=&action=getinfo&userid=1 This will work. However: member.php?s=&action=blahblah This will give a blank page. I'm trying to make it report the error_invalidaction template. And I have got it working fine, too. Trouble is, look at the amount of files there are to hack! I don't fancy making instructions to add that bit of code to the necessarry place of each and every file, and I'm positive people wouldn't want to edit each and every file just to install this hack. There must be an easier way to place it in each file, no? Dave. |
you can add a large block to global.php or the nicer way is to create a new file and just include it to global.php.
but then you must be sure to add every action which can appear on whichever file :) |
Huh?
Dave. |
*rereads own post*
hmm, should be clear.... global.php is called from every single file on the board, so if you put the invalid action handling into this file (or a file required from global.php) it would work as you want. |
Actually it's this bit I didn't understand.
Quote:
|
well, if you forgot any action which could appear, you'd get a invalid action error everytime.
for example you've added all actions just forgot the combination: editpost.php action=doeditpost. then it seems that you can edit a post, but when submitting it the error will occur.. |
Oh this seems too complicated for me at this time then.
Cheers anyway. Dave. |
All times are GMT. The time now is 09:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|