View Full Version : [SOLVED] How can i add (Start Date) in option setting and Use it
omardealo
06-09-2013, 01:25 PM
Hello ..
how can i add a date form in option setting and how i use it in plugin
i searched for thread explanation to it , but I can not find anything
https://vborg.vbsupport.ru/attachment.php?attachmentid=145324&d=1370787879
Thank you !
Lynne
06-09-2013, 06:48 PM
What template are you going to use this on? I would guess that wherever you got that from, it is just javascript and you can just look at the source code and grab it. Or, do a search on a javascript site to find the date code you want.
omardealo
06-09-2013, 08:32 PM
i will use it in plugin not template ... to use this setting option like this ..
if ($startdate<=$threadinfo[dateline])
{
//CODE
}
if there any hack use same option , u can help me only Put link here and i will take source code from it .
Lynne
06-09-2013, 11:37 PM
Since I really don't understand the purpose of this, I can't really tell you if there is a modification for it already.
omardealo
06-09-2013, 11:50 PM
Since I really don't understand the purpose of this, I can't really tell you if there is a modification for it already.
Well, Never Mind ... thanks anyway
--------------- Added 1370878004 at 1370878004 ---------------
okay ... that's worked good
//convert from threads unix time to normal date
$date=date("d/m/Y",$threadinfo['dateline']);
// normal option setting , u will put in date like 11/06/2013
$now = $vbulletin->options['points_alerttime'];
// now u can use it However you like
if($now <= $date)
{
//SOME CODE
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.