![]() |
link reset every 24 hours
Hello fellow vbmembers,
i have been searching the internet for a link resetter. i have seen this on some forums. it works like this: you click on a certain link to vote for the site, and then its starts a countdown of 24 hours before you are able to click the link again. i am not that good of a programmer, i only know html and css and a little how php works. but thats it, i am thining that this has to be a if/else statement example if($time = "0"){ echo " the link "; } else { echo "you already have voted to day wait $time"; } mybe my example is horrible wrong, but i think it has to be something like that. is there already a code on this forum. could you give me the code if there is or a link to it. or point me into the right direction, how to create a code for what i am looking. best regards olalaaa |
That would pretty much be the idea, but you need to get the time of the last vote for the current user. That means that if you don't have it available already from somewhere, you need to save it in the db when the user votes.
I have a vague recollection of someone wanting something like this (maybe a couple years ago or something), but I have no idea if there's a mod for this already. |
All times are GMT. The time now is 07:16 AM. |
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:
|