 | |  |
 |

Dave
Staff
/ Moderator

Apr 16, 2008, 1:02 PM
Post #1 of 13
(2542 views)
Shortcut
|
|
Notice: CMS Builder v1.14 released!
|
Can't Post
|
|
Hello all! We've just released v1.13, with some new features and many improvements and bug fixes. Some of the new features include: - A new "Insert Media" button on the wysiwyg that lets you insert swf, wmv, and other media files. - Multi-section Searching - you can now search multiple sections at the same time, even if they have different fields. See attached viewer (multiSearch.php) for an example of how this works. - And many other usability and compatibility improvements based on forum feedback. For a full list of changes, visit the CMS Builder changelog: http://www.interactivetools.com/products/cmsbuilder/changelog.html CMS Builder users can upgrade by donation at this page: http://www.interactivetools.com/upgrade/ Keep your feature requests and bug reports coming in! Every single release we've done is packed full of user requested changes. Post to the forum or send us an email at dave@interactivetools.com. See you in the forum! :) Dave Edis - Senior Developer interactivetools.com
(This post was edited by Dave on Apr 18, 2008, 10:04 AM)
|
|
Attachments:
|
multiSearch.php
(3.65 KB)
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 18, 2008, 10:09 AM
Post #2 of 13
(2512 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
We've just release v1.14. This is a bug fix release for an issue encountered in this thread. Here's what's changed: BUG FIXES - Viewers: Fixed undefined index error where Single Page Viewers were setting _link value even if no record was found - Home Menu: Fixed bug with optional homepage menu (enabled in /lib/menus/home.php) where it wasn't displaying Only 2 files have changed and I've attached those. So feel free to just replace these files if you want to avoid the hassle of re-uploading everything. Make a backup first (just rename the old file and add .backup on the end). /lib/viewer_functions.php /lib/menus/home.php Let me know if you have any questions. Dave Edis - Senior Developer interactivetools.com
|
|
Attachments:
|
viewer_functions.php
(20.5 KB)
|
|
|
home.php
(1.50 KB)
|
|
|  |
 |

HDBC
User
Apr 30, 2008, 10:40 PM
Post #3 of 13
(2381 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
I noticed when upgrading from v1.10 to v1.14 that the new Admin > Regional Settings menu item was squished up and super imposed on top of the General Settings item in the Admin menu. Upon further investigation I found that the upgrade directions do not tell us to upload the "cmsAdmin/images/icon" folder to get the new icon(s) added. Uploading these images took care of the spacing problem.
|
|
|  |
 |

Dave
Staff
/ Moderator

May 1, 2008, 10:49 AM
Post #4 of 13
(2364 views)
Shortcut
|
|
Re: [HDBC] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Great find! Thanks for the tip. I've updated that in the upgrade text for the next version and in the online docs here: http://www.interactivetools.com/docs/cmsbuilder/upgrade.html Thanks! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Djulia
User
Jul 15, 2008, 7:28 AM
Post #5 of 13
(1842 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Hi Dave, I try to obtain a research on several tables, but that does not function. I always have : No records matched search query! Is multiSearch.php always valid for the version 1.19 ? Thank you for your answer. Djulia
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 16, 2008, 7:03 PM
Post #6 of 13
(1802 views)
Shortcut
|
|
Re: [Djulia] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Hi Djulia, Thansk for reporting that! It looks like that get broken last release. I've fixed it for 1.21. Here's how to fix your version: - Open /lib/viewer_functions.php - Search for $subqueries[] (around line 679) - Add the line in red (below "# create query")
$subqueries[] = $subquery; } # create query $schema = array('_content' => array()); // allow this field to be searched in _getWhereForSearchQuery $where = _getWhereForSearchQuery($searchOptions['keywords'], array('_content'), $schema); Let me know if that fixes it for you! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Djulia
User
Jul 21, 2008, 12:56 PM
Post #7 of 13
(1555 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Thank you Dave, it is perfect ! I use also successfully your function to obtain the first NNN number of words : http://www.interactivetools.com/forum/forum.cgi?post=58872 It is perhaps possible to optimize it ? "remove all tags" isn't necessary any more for multiSearch.php ? // remove all tags and reutnr first NNN words of content function getTextSummary($value, $maxWords = 25) { $textOnly = preg_replace("/<(.*?)>/s", " ", $value); // strip tags $words = preg_split("/\s+/", $textOnly); $words = array_splice($words, 0, $maxWords); $summary = join(" ", $words); return $summary; } <?php $record['_summary']; print getTextSummary($record['_summary'], 25); // returns 25 words print (" ..."); ?> Thank you for your assistance. Djulia
(This post was edited by Djulia on Jul 21, 2008, 12:59 PM)
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 22, 2008, 9:51 AM
Post #8 of 13
(1504 views)
Shortcut
|
|
Re: [Djulia] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Hi Djulia, If you don't want it to strip tags you can replace this: $textOnly = preg_replace("/<(.*?)>/s", " ", $value); // strip tags With this: $textOnly = $value; Hope that helps! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Djulia
User
Jul 22, 2008, 12:53 PM
Post #9 of 13
(1496 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Thank you Dave, I have two other questions. 1) It would be possible to return an error message if the sought word is lower at 1 or 2 characters ? 2) It would be possible to prohibit words (at, the, of ...) ? Thank you for your answer. Djulia
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 23, 2008, 1:37 PM
Post #10 of 13
(1393 views)
Shortcut
|
|
Re: [Djulia] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
That's getting into custom programming but here's some code snippets that might help you: // error on short words $word = "hello"; if (strlen($word) <= 2) { die("Word is too short!"); } // error on banned words $word = "often"; $bannedWords = array('at','the','of'); if (in_array(strtolower($word), $bannedWords)) { die("Word '" .htmlspecialchars($word). "' is not allowed!"); } // remove banned words from array $bannedWords = array('at','the','of'); $myWords = array('red','blue','the','green'); $myWords = array_diff($myWords, $bannedWords); // show what's left in array print "<xmp>"; print_r($myWords); print "</xmp>"; You'd still need to write logic for cases such as when the only words users searched for were ignored or banned and what to do in that case. Hope that helps! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Djulia
User
Jul 24, 2008, 4:44 AM
Post #11 of 13
(1357 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Thanks Dave, you are a true professor !
|
|
|  |
 |

BlooFoo
User
Oct 1, 2008, 6:22 PM
Post #12 of 13
(572 views)
Shortcut
|
|
Re: [Dave] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Hi there, The multisearch.php file seems to be having an XML issue..
Ignore that - it appears IE7 is the one with the isse Firefox was able to retrieve it.
(This post was edited by BlooFoo on Oct 1, 2008, 6:52 PM)
|
|
|  |
 |

Dave
Staff
/ Moderator

Oct 2, 2008, 3:16 PM
Post #13 of 13
(541 views)
Shortcut
|
|
Re: [BlooFoo] Notice: CMS Builder v1.14 released!
[In reply to]
|
Can't Post
|
|
Ok, glad to hear it's working! :) Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|