howto insert code for calender popup in join.php

How can I manually call jquery.js in join form? I need this as workaround to fix the date picker (calender popup). It suddenly stopped working for me (and others posted sudden calender popup problems, too).

If I look into the source code of the entire join page, I noticed that apparently the aRayApps screw up join.php. If I manually call again

<script src="plugins/jquery/jquery.js" type="text/javascript" language="javascript"></script>

right after ray and right before before the datepicker <script type="text/javascript" language="JavaScript" src="http://www.filiyou.com/plugins/jquery/ui.datepicker.js...

the calendar popup works again in the join form!

So my question is: Where can I edit this? Because Join.php defines mostly variables, it needs to be placed somewhere else. But where?

Thanks!!!

Dirk

Quote · 20 Dec 2009

File templates/base/_header.html

Java from join.php

$_page['extra_js']  .= '<script type="text/javascript" language="JavaScript" src="' . $site['plugins'] . 'jquery/ui.datepicker.js"></script>';
$_page['extra_js']  .= '<script type="text/javascript" language="JavaScript" src="' . $site['plugins'] . 'jquery/jquery.form.js"></script>';
$_page['extra_js']  .= '<script type="text/javascript" language="JavaScript" src="inc/js/join.js"></script>';

and

$_page['extra_js']  .= '
<script type="text/javascript" language="JavaScript">
$( document ).ready( function(){
' . $sDatepickerInit . '
} );
</script>';

You will find this as __extra_js__ inside the templates/base/_header.html

Quote · 20 Dec 2009

File templates/base/_header.html

Java from join.php

$_page['extra_js']  .= '<script type="text/javascript" language="JavaScript" src="' . $site['plugins'] . 'jquery/ui.datepicker.js"></script>';
$_page['extra_js']  .= '<script type="text/javascript" language="JavaScript" src="' . $site['plugins'] . 'jquery/jquery.form.js"></script>';
$_page['extra_js']  .= '<script type="text/javascript" language="JavaScript" src="inc/js/join.js"></script>';

and

$_page['extra_js']  .= '
<script type="text/javascript" language="JavaScript">
$( document ).ready( function(){
' . $sDatepickerInit . '
} );
</script>';

You will find this as __extra_js__ inside the templates/base/_header.html

OKWEB, YOU ROCK!!! That was the final pointer I needed for the workaround:

Finally for all those dozend topics I've seen dealing like me with the suddenly missing calendar popup function, here is the solution:

After the Ray init javascript calls jquery.js needs to be called again. To do so edit _header.html:

<your URL> /htdocs/templates/base# vi _header.html

locate

__ray_invite_js__

__extra_js__

add this line in between those ray_invite_js and extra_j

//dw: Manual bugfix for calendar popup
<script src="plugins/jquery/jquery.js" type="text/javascript" language="javascript"></script>

And magically your calendar in your join form works again!

Hope this helps!

Dirk

Quote · 20 Dec 2009

add this line in between those ray_invite_js and extra_j

//dw: Manual bugfix for calendar popup
<script src="plugins/jquery/jquery.js" type="text/javascript" language="javascript"></script>

And magically your calendar in your join form works again!

ups, final note: Ignore my first line:

//dw: Manual bugfix for calendar popup

commenting out with // doesn't work. It's just for my documentation purposes anyhow. You only need this line:

<script src="plugins/jquery/jquery.js" type="text/javascript" language="javascript"></script>

Quote · 20 Dec 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.