Jump to content

Ivan Gretsky

Members
  • Posts

    1,407
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Ivan Gretsky

  1. I just downloaded and tested Pretty Photo on Windows with Firefox. The example does work smoothly (exept for some problems with flash). On your site it does not.
  2. My bad. I thought it is out of scope error (which probably happened when majkris was performing $fields->save if I got it right). I am glad Adrian helped us here. But I want to take something out of this for myself too . As I understand, $page = $event->arguments[0]; sets $page variable in the scope of the class method. But I do not know what is $event and its arguments. Where do they come from? I would be happy to get an explanation or a link to documentation article/forum post.
  3. Welcome to the friendly forums of ProcessWire dear Majkiris! Check this out. It will probably help with you in your quest.
  4. This is what I think we should ask to be done - generate the "translation" files for the default (English) language. We surely should base all further work on that and should be able to update the base translation easilly by parsing the core with in-build tool and meging the results to github. I plead the gurus of PW forum to help us with that.
  5. Just a wild guess - try putting your main.js file under jquery link or remove it at all.
  6. Lisandi! I am sure there are some better ways to manage translations than this one used in PW now. But I think it is not wise to expect Ryan to change this system at once. You write some clever stuff, but not sure that many have enough patience to get into the topic and read so many letters . I suggest we do try to get the best out of what we have by some small enhancements at first, and plan for complete rewrite in PW 4.0. As I see it languages are pages in PW now, and translation files are stored under assets/files/#### where #### is the number of the page (can vary from installation to installation for the same languages). Each file there represents the translation for one core file where the translatable strings can be found. Those files are in JSON and do not contain the original string which is always in default language (English). We need to export the default language files with all the strings translated to github repo, import them to Weblate, do the translation, export to github repos corresponding to languages and then (for now) manually install them in manually created language pages. I am stuck on step one - "export the default language files with all the strings translated". Can get all the files without translations, but not with the default string values.
  7. I do not see any obstacles to test out weblate + github for translations. I searched weblate repo and did not find Processwire there yet. Lisandi, why don't you start the project and configure it as you are most familar with the software. If it can't be done the way PW stores translation strings please report back so we can deal with it. If the translation project grows and becomes important for the community, you could then hand off or share the administration rights with those interested (and probably Ryan first). We can deal with documentation and integration later. What do you think about it?
  8. We missed black friday, but cyber monday is still coming .
  9. I think it is a very important topic lisandi brings up. Lack of decent translation for PW (at least for languages other than Deutsch and Finnish) is the thing that could limit its propagation. There is a Russian translation module, but it is quite outdated. I still can't figure out how to easily update it - the translation workflow is complex and not documented in any way. There are probably no translations for any modules in Russian. This topic was brought up several times by many but was never made clear. Managing translations could require some adjustments to the software itself. As our community has a distinguished leader and most architectural decisions are made with some sort of his approval I would ask Ryan to step in. We are eager to solve our problems ourselves, but we want to do it together in a non-contradictory way. Let's decide on something )) Translations are a step to make PW more wide spread and therefore to make its development and support more economically advantageous, as I see it.
  10. @Alexander - Could you please share your experience with the module? If you got time.
  11. Here in Russia the price of Ryan's commercial modules just multiplied x1.5 with the rise of the dollar. And I did not manage to buy Liser Pro as I intended. I know Black Friday - the day of crazy sales - is comming tomorrow. So I just wanted to suggest PW Store to make a marketing action on this if it is possible)))
  12. You should do something like this. Of course it can be simplified and refactored, but still... echo "UPCOMING<br><br>"; foreach($page->event as $event) { $event_title = $event->event_title; $date_to = $event->getUnformatted('event_date_to'); $today = time(); $date_from_formatted = strftime('%d. %B %Y', $event->getUnformatted('event_date_from')); $date_to_formatted = strftime('%d. %B %Y', $event->getUnformatted('event_date_to')); if ($date_from_formatted == $date_to_formatted) $event_out = "{$event_title}<br>{$date_from_formatted}<br><br>"; else $event_out = "{$event_title}<br>{$date_from_formatted} to {$date_to_formatted}<br><br>"; if ($date_to > $today) echo $event_out; } Same for past events.
  13. Please provide the code you are using now to help us understand what is your problem. As I got it you want to temporary replace 2 items from the WireArray and insert 1 other instead. But it could be a css question as well, so please be a bit more precise.
  14. I am talking about social share buttons specific to country. There are a few of them in Russia. And it so happened they are not on the list of availiable icons )) I do not know if they are going to be important to someone outside Russia so would not suggest them. As it is your module, I just thought that this could be possible it already has interface for extension.
  15. Sorry for writting this without actually downloading and trying out your module, but does it allow to add other (custom) social services?
  16. It is incredible how it is in this PW forum, You go to sleep, you wake up, turn the computer on, and you find another jewel! It is all around the globe so magic just never stops! It is like a new year every day with presents under the tree. Thank you, mr. Horst! And something on the substance: 1) It would be usefull in many cases (at least for me) to have a 4th method, which would act like contain, but would fill with adjustable color spaces to the left and right (or to the up and down if it is horisontal) making the thumb a squre, but still containing the whole of the image. Like this: 2) Could you please write a bit about how you work with images. We now have options from you: pim and pia (not forgetting about core methods). How do they work together? Should we use both or just one of them and in what cases?
  17. Yes, we all know that. There are several links to this topic from this one already (just read a couple of previous posts). But I think this group is still a good idea, because: Antti's new shop offer is not out yet and is delayed (as you pointed with that link). His new shop is not going to be free (I guess still open source but not free to use). I think it is good to have a free alternative in you pocket. The communiy discussion will benefit us all (Antti's shop included) even if will not turn out as a separate product. @dazztweb - those are the same point as yours - need to learn to type faster ))
  18. Let's do it, Oliver! Why don we start with creating a separate topic for that. I do not want to steal your credit for the idea, so go ahead and do it if you will. Not sure where this shall lead us, but it is the only way possible, as noone is going to do it for us. But if someone is already doing it for us, please uncover yourself and join us (or let us join you) .
  19. The first is the description of what Antti did and the second is what he is saying he is doing (but noone is sure, 'cause it is in development for a while). So it seems like Joss is wrapping up this topic. We got what we got )) Integrating OpenCart into PW seems like a task noone is really going to do (or is sure has to be done). I was thinking about integrating the cart and checkout part from OpenCart, read some code, and realised that I am not ready for a task of such scope yet. I did not hear from anyone about development of any kind of modules, alternative to Apeisa's. I have not seen any medium-to-large retail online store built on PW. I am not sure current Shop module is suitable for that. If Antti or anyone could comment on that it would be really usefull to hear. But I'm still hoping to use PW as an E-commerce solution, because it is so good at everything else))
  20. If you mean something like this go ask the author! I'll be very interested to get the answer too so will watch on that topic.
  21. Now you have to figure out how to change that $view variable... It is possible to make those view-switch buttons a form that will set get or post variables which can be sent to the same page and caught on reload with this or this code. But you will probably want to make the layout change without the page reload via ajax which I do not know how to do. Waiting for someone with experience on that to step in ))
  22. Oh silly me) I've adjusted those settings a few times, but always thought they control maximum and minimum dimensions allowed. My only excuse is that "my can read not big white brotha letters much good" . Probably by setting minimum and maximum to the same value I can achieve the exact size needed (not that it is needed too much since we scale images via API anyway). It would be cool to be able to define width:height ratio (like 4:3) though. And/or behaviour to scale images to that ratio defining scaling options like in imagefiled $options. But all probably exeeds the scope of this topic. Thank you again, Adrian. I'll play with the newly discovered options and with your splendid module.
  23. Dear Adrian! I just updated the module and finally, for the first time in 2 years was able to just through the pictures in there instead of manally renaming and moving them to the right folder. It was such a pleasure! You + PW just gifted me a moment of true happiness. I was delighted to show this to my companion working on Joomla! And equally proud of the community to say that this was just done in few days especially for my case. Can't find any dancing emoticon so putting this one . My last challenge is to make them resize on upload.
  24. I like my images having consistent names. But I probably will live without them. So it is up to you - please consider making this if you will have a little spare time for perfection )) Thank you for your module anyway. It should be on someone's list here.
×
×
  • Create New...