remove calendar popup at registration

15 years 6 months ago #74221 by Aquilasfx
remove calendar popup at registration was created by Aquilasfx
I really would like to remove completely calendar popup on registration page... only select and option value for days, months and years... how can i make this?

Now i modify file: Comprofiler.class.php

[code:1] function cbAddCalendar( $oName, $oLabel, $oReq, $oValue = "", $oReadOnly = false, $showTime = false, $yMin = null, $yMax = null ) {
[/code:1]

and on return i set my own select and option list

and then i modify plugin.class.php
[code:1] function validate( &$field, &$user, $columnName, &$value, &$postdata, $reason ) {
[/code:1]

and put && $reason != 'register'

[code:1] // Required field:
if ( ( $field->required == 1 ) && ( $value == '' ) && $reason != 'register' ) {
$this->_setValidationError( $field, $user, $reason, unHtmlspecialchars(_UE_REQUIRED_ERROR) );
return false;
}
[/code:1]

, but when i register new account, js don't take anymore my date... :S I'm frustrated by this problem!

Please Log in to join the conversation.

15 years 6 months ago #74231 by beat
Replied by beat on topic Re:remove calendar popup at registration
You would need to change the calendarinput.js file (that's javascript only).

Can't give exact instructions sorry, as it needs a thorough check of implications.

Much easier would be to check with firebug for the class or id of the small calendar icon, and add a display: none; to your site css file for that...

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 6 months ago #74264 by Aquilasfx
Replied by Aquilasfx on topic Re:remove calendar popup at registration
I think there is some problem because if I change calendarinput.js and for example delete warning message (WARNING: The supplied date is not in valid 'DD.MM.YYYY' format)

nothing happens, server continue to notify me this error...I search in all files of cb 1.2 rc2 and this warning message is displayed only on calendarinput.js...

Nowhat is the problem????

Please Log in to join the conversation.

15 years 6 months ago #74265 by Aquilasfx
Replied by Aquilasfx on topic Re:remove calendar popup at registration
this warning is also in calendardateinput.pack.js?

;) sorry I find the solution

Post edited by: Aquilasfx, at: 2008/09/14 13:23

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.193 seconds

Facebook Twitter LinkedIn