Notice: CMSB v2.02 Beta: Signup & Feedback thread

9 posts by 3 authors in: Forums > CMS Builder
Last Post: January 22, 2010   (RSS)

By Dave - January 18, 2010 - edited: January 20, 2010

Hi everyone,

We've just released v2.02 beta 1 (beta list members will get an email with a download link shortly).

The major new feature is a new flash based multi-file upload component. This makes it WAY easier to upload lots of files at the same time. No more clicking "Browse..." for each file. There's a few other fun new features in there as well (see below).

If you're not already on the beta tester email list and you'd like to help beta test (you must own at least 1 CMSB license) please email me at dave@interactivetools.com and I'll add you to the list.

Here's a breakdown of that notable items from the changelog:

- Uploads: You can now upload multiple files at once with uploadify flash upload component

We're using a jQuery component from uploadify.com for this. It's actually pretty fun to use. Try clicking upload and then selecting a dozen files (either by holding shift or ctrl or by selecting a box with your mouse) and clicking upload.

- Viewers: Sort ordering can now be defined in viewer urls with orderBy=fieldname or fieldname DESC

This makes it very easy to sort a viewer list page multiple ways (eg: by price, product name, etc). We've written custom code to do this many times, now you can just create a link to ?orderBy=price DESC to let the user sort viewer lists the way they want.

- Viewers: min/max date searches now support date without time formatted as: YYYY-MM-DD

If you wanted to do date min/max range searches you previously had to enter a full MySQL format date like this: ?date_min=2010-01-01 00:00:00. Now you can just enter the date part and it figures out the rest (00:00:00 for _min searches and 24:00:00 for _max searches).

- Settings: Custom settings files can be created for dev domains, such as: /data/settings.localhost.php

If you've ever had to keep a local staging/development environment in sync with a live server you've probably noticed what a hassle it is to manage the /data/settings.dat.php file. You need different mysql details, upload paths, etc for each environment.

Now CMSB will automatically check for a settings file with the current domain name in it and use that if it's available. Just copy settings.dat.php and replace "dat" with your hostname or ip.

Note: When using this feature, always setup a new file for your dev environment and let production/live use the default one. That way if a domain name is added or changed it won't break things on the live site.

- Viewers: Added the following options to getRecords() for advanced MySQL users: 'groupBy' and 'having'

For advanced MySQL users (and to make forum support easier for us). If you know what "GROUP BY" and "HAVING" are, you can now pass them to getRecords with the 'groupBy' and 'having' options.

- Viewers: Added utility function mysql_escapef(), example: mysql_escapef("num = ? AND name = ?", $num, $name);

Another one for more advanced MySQL users. When writing custom MySQL you have to be careful to escape user input to avoid "SQL Injection Attacks" (Google for details). Basically this means passing any input to mysql_real_escape_string().

This can make simple queries like this:
'where' => "city = '$city' AND year = '$year' ",

Look a lot more complicated like this:
'where' => "city = '" .mysql_real_escape_string($city). "' AND year = '" .mysql_real_escape_string($year). "' ",

We cringe when we have to post code like this to the forum because we know it can be hard to follow for those newer to php/mysql.

What mysql_escapef does is lets you do is write your query with a ? where each value goes, then automatically escapes and inserts the values (you just add them on the end).

So now we get this:
'where' => mysql_escapef("city = ? AND year = ?", $city, $year),

- Viewers: getPrevAndNextRecords() now supports 'orderBy' option

We optimized the getPrevAndNextRecords() function and added an orderBy option to it. If you'd like to display links to the previous and next record on a detail page you can do that like this:

list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array(
'tableName' => 'news',
'recordNum' => $record['num'],
'orderBy' => 'createdDate',
));


And you could display links to the previous and next record like this:
<?php echo $prevRecord['_link'] ?> or <?php echo $nextRecord['_link'] ?>

- Misc Code and other minor improvements

And there was some of that as well. :)

Please post any feedback, questions or bugs you find! Thanks!

Thanks! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: CMSB v2.02 Beta 1: Signup & Feedback thread

By Dave - January 20, 2010 - edited: January 20, 2010

We've just released beta 2, if there is no further feedback this will be the official release for 2.02 for early next week.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: CMSB v2.02 Beta 1: Signup & Feedback thread

By zip222 - January 22, 2010

There is a minor style issue in the image uploader area. See the attached screen shot. I am using Firefox 3.5.5 on a Mac.
Attachments:

style-issue.jpg 54K

Re: [zip222] Notice: CMSB v2.02 Beta 1: Signup & Feedback thread

By ross - January 22, 2010

Hi there

Thanks for posting!

I had a look at your screen shot and I didn't actually notice anything. Could you give me some more detail about what's going on? Perhaps the text for those headings is too big?

Let me know and we'll track it down for you :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Notice: CMSB v2.02 Beta 1: Signup & Feedback thread

By zip222 - January 22, 2010

That's exactly what I was pointing out. Those headings are unusually and distractingly large. In the page hierarchy they really should be fairly discreet.

Re: [zip222] Notice: CMSB v2.02 Beta 1: Signup & Feedback thread

By Dave - January 22, 2010

Hi zip222,

You can find the CSS for that in this file:
/cmsAdmin/3rdParty/SimplaAdmin/css/style.css

Search for: table.data th

table.data th {
font-weight: bold;
font-size: 15px;
border-bottom: 1px solid #ddd;
}


This style is used for headings on the record list page and on the upload list iframe. I dropped it from 15px to 14px.

Do you have any suggestions who what you'd like the CSS to be? We can add a new class for the upload table if needed.
Dave Edis - Senior Developer
interactivetools.com

Re: [zip222] Notice: CMSB v2.02 Beta 1: Signup & Feedback thread

By Dave - January 22, 2010

I like that. I've updated that for the upload headings. I agree that they're not a significant enough element on the page to warrant the size that they were! :)

Here's the new css I added (for a new class I added):

table.uploadlist th {
font-size: 10px;
text-transform: uppercase;
}


I'm not sold on the list page, though, but I've added a feature so it's easy for you to override it (from the changelog):

- Custom CSS: You can now define your own upgrade-safe CSS by creating a file named: cmsAdmin/custom.css

Just create that file and add your CSS to it.

Hope that helps! If there's anything else you want to be able to do CSS wise that you can't do with that new file just let me know. Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: CMSB v2.02 Beta: Signup & Feedback thread

By Dave - January 22, 2010

We've just sent CMSB 2.02 beta 3 to the beta list with the following changes:

- Fixed issue where Flash uploader didn't work on some Macs with Flash 10

- "Tip: hold <Ctrl> to select multiple files" show as <Command> for Macs

- Added "Server Resource Limits" under: Admin > General. Besides being
interesting, these help us debug server load and performance issues. (Not available
on Windows servers)

- Custom CSS: You can now define your own upgrade-safe CSS by creating
a file named: cmsAdmin/custom.css. It's only loaded if it exists.

Let me know any feedback, thanks!
Dave Edis - Senior Developer
interactivetools.com