AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   How to change the attributes in the beforeQuestionSave event? (https://forums.alliedmods.net/showthread.php?t=330711)

sunil15 02-17-2021 11:15

How to change the attributes in the beforeQuestionSave event?
 
I wrote a plugin where I added a drop down menu based on the value selected, I would like to change the values of other attributes not present in the Question object only in QuestionAttribute.

But I don't want to call befoeQuestionAttriibuteSave because if the value of the given attribute is empty then the event for that attribute doesn't exist.

I would like to change $ _POST values somehow (or otherwise change it?) Or raise a write event for the changed attribute. Unfortunately, I don't know how to do this.

192.168.0.1
192.168.o.1
192.168.1.128

Judge_Duck 02-17-2021 11:59

Re: How to change the attributes in the beforeQuestionSave event?
 
Unfortunately, asking that question here and abusing the announce almost guarantees you wont get an answer.

headline 02-17-2021 19:17

Re: How to change the attributes in the beforeQuestionSave event?
 
Moved from the plugins submission forum to the scripting forum.

Please do be more careful of where you post threads.


All times are GMT -4. The time now is 01:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.