-
☆ A M B ☆
- 1,056 Posts
Quote from: rthrash at Sep 19, 2006, 12:03 PM
Mootools is the better/faster/more capable combined version of all teh moo.fx + moo.dom + moo.ajax: http://mootools.net/ (and coincidentally a strong contender for the JS-library of choice for MODx post-095).
@rthrash--
I love Moo! Please add
1 vote to the pile of moo.
Thats the problem. I can not use the SQL File and really i test it there is no way i can import it in to my phpmyadmin or even via command line
Can any one kindly please give this sql file please (Please)
-
☆ A M B ☆
- 24,524 Posts
Quote from: hgh56 at Oct 27, 2006, 08:48 AM
Thats the problem. I can not use the SQL File and really i test it there is no way i can import it in to my phpmyadmin or even via command line
Can any one kindly please give this sql file please (Please)
Just a quick fix... open the file in a text editor, and do a search-and-replace on "modx_", replacing it with whatever your table prefix really is. Then it should work.
That demo was really amazing. Great work , and maybe this could get audited by core members and get in as a default installed snippet ?
-
☆ A M B ☆
- 24,524 Posts
Why not have code like this at the beginning of the snippet:
$rs = $modx->db->select("COUNT(*)",$modx->getFullTableName('site_htmlsnippets'),"name = 'mooGallery'");
if($modx->db-getValue($rs) == 0) {
$sql = "INSERT INTO `".$modx->getFullTableName('site_htmlsnippets')."` VALUES ('mooGallery', 'chunk pour output html de mooShowGallery', 0, 0, 0, '<div id="[+id+]" class="[+class+]">\r\n[+speed+]\r\n[+fadeSpeed+]\r\n[+topNav+]\r\n[+overlayNav+]\r\n [+dropShadow+]\r\n[+captions+]\r\n[+border+]\r\n[+copyright+]\r\n[+IPTCinfo+]\r\n</div>\r\n[+galleryOutputTable+]\r\n[+mooFormEdit+]\r\n[+mooNoJS+]', 0);
";
$modx->db->query($sql);
...
}
and insert the items if necessary (the first time the snippet is run, certainly!). The .sql file could even be turned into a php file with the table name as above, and included in the if section so it would only be loaded if necessary.
Very nice work! I can feel the moo-mentum building in the MODx community. The example doesn’t work properly in IE7, but then again I’ve spent most of today fixing old sites that have glitches in IE7.
-
☆ A M B ☆
- 1,056 Posts
Quote from: ZAP at Oct 27, 2006, 04:11 PM
Very nice work! I can feel the moo-mentum building in the MODx community. The example doesn’t work properly in IE7, but then again I’ve spent most of today fixing old sites that have glitches in IE7.
ZAP... do you know if, once IE7 is installed, if you can still "test" using IE 6.0 ? ...
Unfortunately no. There are ways to install "standalone" versions of IE7, but I have only used those for previous beta versions of IE7. If you search the web you may find a standalone version of IE7 that still works with the final version, but all the ones I tried were a little quirky so I’m not sure I’d recommend this.
What I do is to keep one PC around with IE6 (and Firefox 1.5) while my main PC has IE7 (and Firefox 2.0).
Here is a list of many of the changes to CSS rendering/behavior in IE7:
http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx
-
☆ A M B ☆
- 1,056 Posts
Quote from: ZAP at Oct 27, 2006, 05:12 PM
Unfortunately no. There are ways to install "standalone" versions of IE7, but I have only used those for previous beta versions of IE7. If you search the web you may find a standalone version of IE7 that still works with the final version, but all the ones I tried were a little quirky so I’m not sure I’d recommend this.
What I do is to keep one PC around with IE6 (and Firefox 1.5) while my main PC has IE7 (and Firefox 2.0).
Here is a list of many of the changes to CSS rendering/behavior in IE7: http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx
@ZAP,
Thanks for the reply, and the link. All really good information to familiarize with. I’m so pro-firefox, I can’t get myself to even download IE7 (haven’t touched anything past 6 SP2)