Page 1 of 3

Default value for custom field of date type

Posted: Jan 29, 2008 6:06 am
by dyawlak
Is there any way to set the default value of a custom field of date type to todays date?


Thanks

Re: Default value for custom field of date type

Posted: Feb 26, 2008 10:07 am
by cybernijntje
Same question here. Does anyone have an answer?

Re: Default value for custom field of date type

Posted: Mar 06, 2008 4:02 am
by dyawlak
Does any one have a solution for this?

Thanks

Re: Default value for custom field of date type

Posted: Mar 06, 2008 6:22 am
by deboutv

Re: Default value for custom field of date type

Posted: Mar 06, 2008 8:48 am
by dyawlak
Ran the Plugin Manager installer but gets as far as Check Install Script and then stops with eror

line 93
Char 1
Error Object expected
Code 0


Any ideas?


Thanks


IIS 6
MSSQL

Thanks

Re: Default value for custom field of date type

Posted: Mar 06, 2008 8:56 am
by deboutv
The PluginManager is installed or the error occurs during the pluginmanager installation?

Re: Default value for custom field of date type

Posted: Mar 06, 2008 9:32 am
by dyawlak
it's when running the plugins_page.php script before I get a chance to install.

Re: Default value for custom field of date type

Posted: Mar 06, 2008 9:47 am
by deboutv
That's strange...

Try to change the file plugins_install_page.php line 93:

$t_failed = ( !$t_error ? PLUGINS_PLUGINMANAGER_OK : PLUGINS_PLUGINMANAGER_FAIL );

becomes:

$t_failed = PLUGINS_PLUGINMANAGER_OK;

Re: Default value for custom field of date type

Posted: Mar 06, 2008 10:24 am
by dyawlak
Nope didn't work.

Now reports that there is a syntax error in line 72. URL reads:
http://mantis.echarris.com/plugins_inst ... ginmanager


Thanks

Re: Default value for custom field of date type

Posted: Mar 06, 2008 10:31 am
by deboutv
With PluginManager 0.2.1?

Re: Default value for custom field of date type

Posted: Mar 06, 2008 10:39 am
by dyawlak
downloaded from your link today pluginmanager-0.2.1.tar.gz

simply unzipped in to the mantis directory as per instructions and tried to run the page.

have re-unzipped in case of corruption

Re: Default value for custom field of date type

Posted: Mar 06, 2008 10:49 am
by dyawlak
Have done force refresh within browser. It's no longer reporting any errors. but doesn't offer option to install. the last line is Check install script OK then nothing

Re: Default value for custom field of date type

Posted: Mar 06, 2008 10:53 am
by dyawlak
have attached screenshot of what I'm getting

Re: Default value for custom field of date type

Posted: Mar 06, 2008 11:09 am
by deboutv
Do you have access to the error_log file (of your webserver)? There is probably a message.

Re: Default value for custom field of date type

Posted: Mar 06, 2008 11:26 am
by dyawlak
on an iis box, where would i find them?