Jump to content

interrobang

Members
  • Posts

    255
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by interrobang

  1. Like Willy said, you can change the outputted classNames so your jquery ui css can't find/style them. The default classes are these: /** * Classes used during the render() method - customize with InputfieldWrapper::setClasses($array) */ $defaultClasses = array( 'list' => 'Inputfields', 'list_clearfix' => 'ui-helper-clearfix', 'item' => 'Inputfield {class} Inputfield_{name} ui-widget', 'item_required' => 'InputfieldStateRequired', 'item_error' => 'ui-state-error InputfieldStateError', 'item_collapsed' => 'InputfieldStateCollapsed', 'item_column_width' => 'InputfieldColumnWidth', 'item_column_width_first' => 'InputfieldColumnWidthFirst' );
  2. You are right, Solr is based on the Lucene Java search library. I haven't seen a server myself which comes with Solr by default, but it's easy to install if you can run java on the server. And you dont't have to know any Java to use Solr. All configuration with Solr can be done with XML and the queries are done with a REST-like API. Solr is really great at getting weighted search results. And things like facets are for sure a must have for big shops or any big catalog like sites. I think your skyscraper site would be a nice example. There are many more features, have look here: http://lucene.apache.org/solr/features.html At this video you get a quick idea what facets are about: Thanks looking into it. If you need a better explanation tell me – I can ask my co-workers to post here.
  3. Would't it enough to build a md5 of the user optional options array like this $basename .= '.' . $width . 'x' . $height . "." . $this->ext() . "." . md5(implode($options)); // i.e. myfile.100x100.1f3870be274f6c49b3e31a0c6728957f.jpg; and ignore the md5 part in the getVariatons calls?
  4. Do you think it would be possible to integrate Apache Solr into PW? It seems like all major CMS have plugins for this. In the office I work I am the only one using processwire (the others use ez Publish), and whenever I want to convince them to use PW they complain that without out Solr integration they don't want to. Personally I am happy with the speed and results of the pw api. I have no idea how complicated it would be to build a SolrModule, but still I want to ask. It would be a good marketing keyword for sure
  5. Actually, I just read the docs and comments on php.net. This is the first time I have used any of the php image functions. The math part is the only thing I already was familiar with as I had to do things like that a lot back when I was making flash websites with actionscript. You are probably right, that in the moment the options don't need to be reflected in the resized image url. On the long way, if you want to implement some basic image filters like grayscale and blur it would get necessary.
  6. I just tested this proposed gravity like cropping hardcoded in ImageSizer.php I have not done any proper implementation using the options array yet, just some dirty hacking, but it seems to work. For a proper implementation we should reflect the cropping direction in the generated url too I guess? But the math part was simple like this. This code replaces line 208 - 211 in ImageSizer.php of the dev branch: btw, I replaced "imagecopyresampled()" by "imagecopyresized()", as we are not doing any resizing in this line, just cropping. The resizing is already done when this code get executed. Should give slightly better performance? // centercrop defaults: $w1 = ($gdWidth - $targetWidth ) / 2; $h1 = ($gdHeight - $targetHeight) / 2; // read the crop direction from options, hardcoded for testing only: $cropDirection = 'southeast'; switch (strtolower($cropDirection)) { case 'northwest': $w1 = 0; $h1 = 0; break; case 'north': $h1 = 0; break; case 'northeast': $w1 = $gdWidth - $targetWidth; $h1 = 0; break; case 'west': $w1 = 0; break; case 'east': $w1 = $gdWidth - $targetWidth; break; case 'southwest': $w1 = 0; $h1 = $gdHeight - $targetHeight; break; case 'south': $h1 = $gdHeight - $targetHeight; break; case 'southeast': $w1 = $gdWidth - $targetWidth; $h1 = $gdHeight - $targetHeight; break; } imagecopyresized($thumb2, $thumb, 0, 0, $w1, $h1, $targetWidth, $targetHeight, $targetWidth, $targetHeight);
  7. Ryan, I have bookmarked a ImageClass on github which has this functionality. I never used this class, your ImageSizer and Antti's Thumbnails where alwas sufficant for me, but maybe you can copy some lines from there? https://github.com/s...Images.php#L151 Edit: Now I think this class isn't very useful for this. The time I bookmarked it I thought it is great, but now with some weeks working with php and PW at least cropping part of this class looks pretty simple. It guess PW made me learn some php.
  8. I don't have this as a requirement on any current projects, but this would be a great addition! Some nice patterns: http://html5pattern.com
  9. If you want to access the processwire api from external scripts you have to include processwires index.php there see here: http://processwire.com/api/include/
  10. I jsut found this Database version control script, and thought it might be interesting for you. But to be honest, I dont't understand everything in this thread, so probably it's not so useful as it sounds to me... http://dbv.vizuina.com https://github.com/victorstanciu/dbv
  11. This is how html5boilerplate does it. the nice thing is it works without specifying your domainname and could easily included in your own default htaccess: # Rewrite "www.example.com -> example.com" <IfModule mod_rewrite.c> RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] </IfModule> https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess#L344
  12. I tested it again with the latest dev branch and it works here like expected. Thanks for the quick fix. And the previously overlaying icons in the debug accordion headers are gone too!
  13. I tried again with the latest dev branch, but it still doesn't seem to work. When I try to edit any of the json files in the backend I get this error: TemplateFile: Unable to load textdomain #0 [internal function]: ProcessLanguageTranslator->___executeEdit() #1 /htdocs/wire/core/Wire.php(271): call_user_func_array(Array, Array) #2 /htdocs/wire/core/Wire.php(229): Wire->runHooks('executeEdit', Array) #3 /htdocs/wire/core/ProcessController.php(194): Wire->__call('executeEdit', Array) #4 /htdocs/wire/core/ProcessController.php(194): ProcessLanguageTranslator->executeEdit() #5 [internal function]: ProcessController->___execute() #6 /htdocs/wire/core/Wire.php(271): call_user_func_array(Array, Array) #7 /htdocs/wire/core/Wire.php(229): Wire->runHooks('execute', Array) #8 /htdocs/wire/core/admin.php(45): Wire->__call('execute', Array) #9 /htdocs/wire/core/admin.php(45): ProcessController->execute() #10 /htdocs/wire/templates-admin/controller.php(13): require('/Users/philipp/...') #11 /htdocs/site/templates/admin.php(13): require('/Users/philipp/...') #12 /htdocs/wire/core/TemplateFile.php(92): require('/Users/philipp/...') #13 [internal function]: TemplateFile->___render() #14 /htdocs/wire/core/Wire.php(271): call_user_func_array(Array, Array) #15 /htdocs/wire/core/Wire.php(229): Wire->runHooks('render', Array) #16 /htdocs/wire/modules/PageRender.module(240): Wire->__call('render', Array) #17 /htdocs/wire/modules/PageRender.module(240): TemplateFile->render() #18 [internal function]: PageRender->___renderPage(Object(HookEvent)) #19 /htdocs/wire/core/Wire.php(271): call_user_func_array(Array, Array) #20 /htdocs/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #21 /htdocs/wire/core/Wire.php(293): Wire->__call('renderPage', Array) #22 /htdocs/wire/core/Wire.php(293): PageRender->renderPage(Object(HookEvent)) #23 /htdocs/wire/core/Wire.php(229): Wire->runHooks('render', Array) #24 /htdocs/wire/modules/Process/ProcessPageView.module(98): Wire->__call('render', Array) #25 /htdocs/wire/modules/Process/ProcessPageView.module(98): Page->render() #26 [internal function]: ProcessPageView->___execute() #27 /htdocs/wire/core/Wire.php(271): call_user_func_array(Array, Array) #28 /htdocs/wire/core/Wire.php(229): Wire->runHooks('execute', Array) #29 /htdocs/index.php(192): Wire->__call('execute', Array) #30 /htdocs/index.php(192): ProcessPageView->execute() #31 {main} EDIT: If I first install the master branch and install the language pack there, and update to the dev branch by replacing the wire folder everything seems to work. I can even add new languages. EDIT 2: It seems to be related to pagefileSecure. If I set this setting to false, uploading languages works without problems.
  14. I just installed the latest dev branch from github on my local mamp server and wanted to add the german language pack to the default language. The files uploaded, but no translated phrases are detected. This just happens with the dev branch, with the master branch everything works like expected.
  15. I am too late to see what your page looked before, but now you are including 2 different versions of jquery: line 18: <script type="text/javascript" src="/~racc/site/templates/scripts/jquery-1.4.2.min.js"></script> line 23: <script src="http://code.jquery.com/jquery-latest.js"></script>
  16. This line looks wrong to me: if($u->user_status = 'inactive') shouldn't it be like this: if($u->user_status == 'inactive')
  17. I think the best responsive gallery is royalslider, but it costs $12: http://codecanyon.net/item/royalslider-touchenabled-jquery-image-gallery/461126 For free and also quite good: http://flexslider.woothemes.com/
  18. I thinks the files are already starting in alphabetical order, at least in my browser. The only solution which comes to my mind is to populate the WireArray right after the file selection is finished with dummy images and replace these once the upload completes. But this sounds like a dirty hack to me..
  19. When setting the google preferences to english I can find processwire on page 2. But the default setting is german, and I think most german users don't change this. Translating processwire.com into german would help the most I guess
  20. http://www.simplescripts.com/articles/script_packaging http://www.simplescripts.com/developers
  21. I double checked. Searching for Open Source CMS with a german IP lists processwire on page 11, using a United States IP I see processwire on page 2. Have look yourself with foreign IPs: http://anonymizer.nntime.com/ Thanks for the additional stats. Nice to see how strong processwire is here in Germany. Do you have an idea why Finland, Netherlands and Switzerland are so strong? It's really fascinating how many users come from there.
  22. When uploading a bunch of files (via ajax / drag-and-drop) the files are added in alphabetical sort order, but as soon as a single file upload is completed order changes and the complete file is added right before the yet uncompleted files. Is it possible to change this behaviour? As a workaround i currently zip the files before uploading and check the "Decompress ZIP files?" option, which seems to add the unzipped files in alphabetical order.
  23. Thanks for the graph. I hope the visitor growth gets some exponential boost soon. I would be interested in which countries processwire is most popular. Can you give us some stats for this too? When not logged in into my google account I can't find processwire on the first 10 result pages
  24. Ryan, can you share some google analytics stats with us? This graph already looks promising, though compared to other CMS's we are still quite small: http://www.google.com...e#q=processwire
  25. The IP.Board iOS app is currently free. But I think the mobile view of the board is better than their app - though I tested it only for some minutes. https://itunes.apple.com/us/app/ips-communities/id521920635?mt=8
×
×
  • Create New...