How to replace old DHTML_Calendar / Tip and tricks / Forums


  • DHTML Calendar is not part of e107 anymore, but there are old plugin that use it.

    1. delete old code (example, could be used different way):

    require_once(e_HANDLER."calendar/calendar_class.php");
    $cal = new DHTML_Calendar(true);
    global $cal;
    $cal->load_files();


    2. replace old code :

    $text .= $cal->make_input_field($cal_options, $cal_attrib);


    with

    $text .= e107::getForm()->datepicker($cal_attrib['name'], $cal_attrib['value']);


    or

    $eclassf_desc = $eclassf_cal->make_input_field($eclassf_cal_options, $eclassf_cal_attrib);


    with

    $eclassf_desc = e107::getForm()->datepicker($eclassf_cal_attrib['name'], $eclassf_cal_attrib['value']);


    It's all.

     

Moderator(s):
Welcome
Username or Email:

Password:







[ ]
[ ]
[ ]
Forum Statistics
Total posts:  17
Topics:  15
Forum replies:  2
Forum thread views:  5984
Average posts per day:  0
Online
  • Guests: 2
  • Members: 0
  • Members: 22
  • Newest Member: Mostafa Essam
  • Most ever online: 38
    Guests: 38 Members: 0 on Wednesday 03 August 2016 - 01:21:08