breezingforms

Page 105

[User Guide]

[Crosstec/Breezing Forms]

$path = $baseDir.'/'.$userfile_name; if ($row->flag1) $path .= '.'.date('YmdHis'); if (file_exists($path)) { $rnd = md5( mt_rand(0, mt_getrandmax()) ); $path = $baseDir.'/'.$rnd.'_'.$userfile_name; if ($row->flag1) $path .= '.'.date('YmdHis'); if (file_exists($path)) { $this->status = _FF_STATUS_UPLOAD_FAILED; $this->message = BFText::_('PROCESS_FILEEXISTS'); return ''; } } // if

Replace it with:

if ($row->flag1) $time_path = date('YmdHis')."_"; $path = $baseDir.'/'.$time_path.$userfile_name; if (file_exists($path)) { $this->status = _FF_STATUS_UPLOAD_FAILED; $this->message = BFText::_('PROCESS_FILEEXISTS'); return ''; } // if Thanks to Stefan Mortelmans for contributing the code!

Next Page Doesn't Go to the Top of the Page When I click on the "next page" button, it doesn't return to the top of the page. How can I fix it so it does? 1. Go to Components > BreezingForms > Manage Scripts. Click on Validate and Next Page. Add self.scrollTo(0,0); at the bottom of the function, just before the } // ff_validate_nextpage line. The script should now look like this. Code:

Page 103


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.