The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
no more data posts within 30 second. how to do that
Hello
I have made a mini plugin that enable my members to choose their mood directly from the a button in the header. when that button pressed the following happen: 1- a prompt box will be shown asking the member about his mood 2- if member write something, an ajax post request will be sent to the server. 3 using a plugin in misc.php, the request will be validated and processed then update the associated userfiled. I want to prevent members to change their moods frequently . I mean if any member request to change his/her mood. it will not be allowed to change it again within 30 second or less or more. how vbulletin prevent the user from writing another post with 30 second ? same idea forgive my weak English and bad title. Any small information will be helpful. |
#2
|
|||
|
|||
When a user posts, the lastpost time is saved in the user table. When the user posts again, the lastpost time is subtracted from the current time and compared with the setting.
|
#3
|
|||
|
|||
Quote:
aha .. that's mean I need to save the current timestamp along with mood data then query that value before validating the request. I thought there is a function or global value that I can check against. thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|