Dolphin calendar bug?

Hi there,

I have a problem using the "date" option in Dolphin. The pop up calendar works only in some fields: Those who have been built already. If I try to add a new item e.g. in fields builder formatted with "date", the calender doesn't pop up anymore if a user clicks into this field. All date data has to be filled in manually now.

Any idea how to fix this or a workaround?

Thanks a bunch!

Dirk

Quote · 2 Dec 2009

did you recompile language files and did you build predefined values for this?

Regards,

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 2 Dec 2009

Hi DosDawk,

I did recompile the language files mutiple times, but I didn't built predefined values. Where can I build this?

Thanks,

Dirk

Quote · 2 Dec 2009

Admin Panel > Settings > Predefined Values :)

Chris

Nothing to see here
Quote · 2 Dec 2009

Admin Panel > Settings > Predefined Values :)

Chris

Thanks, Chris.

However; I understand those predefined values as options to pick from e.g. sex male/female. So far I use only the default values (12 items). I don't understand why I have to set predefined values for a calendar? How to set a predefined calendar value anyhow?

A vanilla installation of Dolphin doesn't need predefined values to pop up the calender in an item where "date" is selected. It worked until today, as I mentioned my old calendar items are still working. But not the new ones anymore, no more pop up calendar in those :(

Quote · 2 Dec 2009

... due to no more feedback I guess my assumption is correct: Looks like a bug.

Is there a bug report tool to submit to Boonex?

Thanks for your replies!

Dirk

Quote · 3 Dec 2009

On the pages that you see the calendar "pop out", it happens to be an actual php page. For instance the join.php page. It calls for the inc/profiles.inc.php file for assistance in the joining process. Inside that file the DateOfBirth calendar is coded to "explode". See below:

function age( $birth_date ) {
if ( $birth_date == "0000-00-00" )
return _t("_uknown");

$bd = explode( "-", $birth_date );
$age = date("Y") - $bd[0] - 1;

$arr[1] = "m";
$arr[2] = "d";

for ( $i = 1; $arr[$i]; $i++ ) {
$n = date( $arr[$i] );
if ( $n < $bd[$i] )
break;
if ( $n > $bd[$i] ) {
++$age;
break;
}
}

return $age;
}

Since you are adding a new item and NOT a new php page, Im not sure how you could get the calendar to "explode" like the way you see it on other pages. You would have to code it, like above, inside of a php page to make that function work.

Chris

Nothing to see here
Quote · 4 Dec 2009

Hi Chris and all,

the "explode" code is still present in my profiles.inc file.

There is a small misunderstanding: The problem is actually WITHIN the join.php process, not anywhere else. Calendar popup (explode) suddenly stopped working. If I call my join.php script, the calendar does not pop up anymore. Strange thing is that for example in pedit it is still working. I noticed another discussion with the same problem this week, apparently also not solved yet: http://www.boonex.com/unity/forums/#topic/Date-Calendar-Join-Page.htm

Thanks for your support,

Dirk

btw: Forgot to mention: I'm on 6.1.6

Quote · 7 Dec 2009

Hi all,

after 2 days of research I was able to isolate the problem:

Workaround: If you add to the entire source code of the join.php page the line

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

right before the datepicker script

<script type="text/javascript" language="JavaScript" src="http://www.filiyou.com/plugins/jquery/ui.datepicker.js...

THERE IS MAGICALLY YOUR CALENDAR AGAIN!!!

I noticed the jquery is already in the source code, but it has to be apparently right before the datepicker. I assume some of the aRayApps mods above screw with it.

Now my question is: How can I add this fix into the Dolphin framework? I don't want to replace the framework with a manual fix, because I have to replace the entire join page. This breaks the framework concept, e.g. switching languages is broken. Is there a way to puzzle this piece into the Dolphin framework in a smart way?

Thanks,

Dirk

Quote · 9 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.