vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [SOLVED] How can i add (Start Date) in option setting and Use it (https://vborg.vbsupport.ru/showthread.php?t=298911)

omardealo 06-09-2013 01:25 PM

[SOLVED] How can i add (Start Date) in option setting and Use it
 
1 Attachment(s)
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/attachmen...4&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 ..

PHP Code:

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

Quote:

Originally Posted by Lynne (Post 2426999)
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 [DATE]1370878004[/DATE] at [TIME]1370878004[/TIME] ---------------

okay ... that's worked good

PHP Code:

//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




All times are GMT. The time now is 01:01 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
  • Page Generation 0.01106 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete