Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
Bloody love this plugin! Thanks Matt
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
I’m not sure what I’m doing wrong here.
I downloaded and installed the plugin, and just set the preferences to use it for the publish and expire fields. I already have glz_custom_fields installed and I’m using it’s functionality to set a date picker for a custom feld. But I also want this functionality for the core TXP fields too.
Would this be causing a conflit?
Also, in the plugin preferences do I HAVE to set a URL for the datepicker? I wasn’t sure about this bit.
Thanks.
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
aslsw66 wrote:
I’m not sure what I’m doing wrong here.
I downloaded and installed the plugin, and just set the preferences to use it for the publish and expire fields. I already have
glz_custom_fieldsinstalled and I’m using it’s functionality to set a date picker for a custom feld. But I also want this functionality for the core TXP fields too.Would this be causing a conflit?
Also, in the plugin preferences do I HAVE to set a URL for the datepicker? I wasn’t sure about this bit.
Thanks.
I’ve never used glz_custom_fields, since it’s not free, so I don’t know if that is the issue.
You MUST set jQuery UI URL and jQuery UI CSS URL because the plugin does not contain the javascript code and css for the actual datepicker. You can host these locally though and use a url to the files on your site if you’d like.
For example, you can download the files from jQuery’s Site, upload them to your site and use http://mysite.com/path/to/jquery-ui.min.js as the jQuery UI URL value.
Last edited by MattD (2010-02-08 23:26:31)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
i have this working on the posted and expire fields, but if i try to use it with a custom field, it doesn’t show up.
date custom field: #date
custom field #5 is named “date”.
thanks
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
You need to enter the html id of the custom field which is still custom-5
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
thank you my friend. now when it inserts the date it puts the year in twice:
03/13/20102010
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
For some reason jquery uses yy for a four digit year as mentioned here
Last edited by MattD (2010-02-26 17:44:58)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
Small update to allow you remove the “jQuery UI URL” value from the plugin preferences to resolve conflict with other plugins that use jQuery UI.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
Too quick to believe! Thanks, but unfortunately I can’t get this to work (even with blank jq ui url) with bot_ plugin anyway. His “choose image” is showing twice anyway AND your datepicker is not there. Knowing that I’m working with a subdir installation may help? There is something that I could try to help you?
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
You’ve hardcoded the public URL into the plugin for the icon presentation in the write tab. For folks like myself using multi-site with the admin subdomain option A this does not work. It also assumes a textpattern subdomain which does not generally work for multi-site installs.
This line:
$msd_iconpath= hu . “textpattern/?msd_dtpkr=famfam”;
changed to this:
$msd_iconpath= “?msd_dtpkr=famfam”;
resolves the issue – and I don’t see why it wouldn’t work for regular installs. Can anyone confirm?
Offline
Re: msd_admin_datepicker: jQueryUI Date Picker in the Write Tab.
Still seems to work when I change it to what you’ve suggested so I’ve implemented that change in version 0.7.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline