Jump to content

pwired

Members
  • Posts

    2,318
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by pwired

  1. It's against policy here were I work. Lost a job in a team beginning of this year due to posting. They never told me the reason.
  2. Hi, If I check a website on my laptop with a 17 inch screen and 1024 x 768 res, everything looks ok. But, when I check the same website on a big monitor with a 25 inch screen but with also 1024 x 768 res, things look vertically stretched ! Even some stretched pictures start to overlap things underneath them. I tried to fiddle with css but without success. Anyone knows a solution ?
  3. Sunday afternoon pw art:
      • 5
      • Like
  4. I am sure that many will recognize what you are writing there. You have a good writing style. It has to do that working with processwire has a side effect: it pushes you into learning code. You can ask yourself why processwire has this side effect. But if you think about it, it is because processwire has no shell, no front (rules). You can bring together your own (any) html and css and put it as a front on processwire. With processwire you can not avoid to see that paths, values, functionality, etc, between the html tags are replaceable by php and api. So naturally you are going to fiddle around to see what is all possible. This leads in a natural way to learn coding, the side effect of pw. Of course, not every pw user will go the road of coding, that is simply up to the user, but processwire puts a big temptation on you Having said this, everybody can already make nice websites with processwire with only a few php scripts that you don't need to learn but simply save as snippets and re-use them in your websites.
  5. I thought yours was not an absolute path but yup, just tried it, it's also working.
  6. I have bxSlider finally working. My mistake was in the path to the directory bxsliderpics that holds the pictures. It has to be like this: $dir = $config->paths->site . 'templates' . '/' . 'bxsliderpics'; Also I did not have the single quotes and double quotes right Martijns example does work: echo "<img src='{$config->urls->templates}bxsliderpics/{$file}'>"; Here is the complete code with bxSlider now working: <div class="block-group"> <div class="bxsliderbox block"> <div class="slideshow"> <ul class="bxslider"> <?php $dir = $config->paths->site . 'templates' . '/' . 'bxsliderpics'; if ($handle = opendir($dir)) { while (($file = readdir($handle)) !== false){ if (strpos($file, '.') === 0) continue; // <-- add this thanks to Martijn echo '<li>'; echo "<img src='{$config->urls->templates}bxsliderpics/{$file}'>"; echo '</li>'; } closedir($handle); } ?> </ul> </div> </div> </div> Thanks everybody for posting. I can now upload many pictures and have them show up in bxSlider without using the backend. Too many pictures will take a lot of time to show up in the browser and render the browser unstable when having them in a "page" with an image field. But this way no problem.
  7. Thanks for posting your code examples, I just came home and can't wait to try them out.
  8. Welcome to the 24H economy where everything must go faster and cheaper where everything becomes targets, assets and numbers expressed in money. Anyway there is always a new door you can open on the internet and step in with pw or something else, space is endless there.
  9. Thanks Martijn and Horst. I can see in View Page Source that the php code is working perfectly now. The first two iterations with . and .. are gone and it starts correctly with the first picture. Only thing I have to solve now is that for some reason absolute paths don't seem to work with bxSlider as it doesn't show the pictures yet.
  10. It's working but having so many pictures in a page takes a long time to open in a browser, so I just want to have the pictures in a folder and use plane php in bxSlider. I made a folder bxsliderpics in site/templates/, put there all the pictures and tried following: <ul class="bxslider"> <?php $dir = $config->paths->site . 'templates' . '/' . 'bxsliderpics' . '/'; if ($handle = opendir($dir)) { while (($file = readdir($handle)) !== false){ echo '<li>'; echo '<img src="' . $dir . $file . '" />'; echo '</li>'; } closedir($handle); } ?> </ul> Just to try if it's working I have put 3 pictures inside folder bxsliderpics, pic1.jpg, pic2.jpg, pic3.jpg I have it almost working but for some reason the code is iterating first two times a dot and then iterates the 3 pictures. I can't figure out what I am doing wrong. I think there must be something wrong in the part echo '<img src="' . $dir . $file . '" />';
  11. Thanks for the code examples, will try this tonight.
  12. Hi I have about 160 pictures that I want to use in a bxSlider with a simple foreach($page->images as $image) { echo "<img src='$image->url'>"; } I can drag and drop the pictures in the backend in a page with image field. I was wondering if there is a faster or better way to get such an amount of pictures in a page. I have found this post in the forum but it would need a way to loop through the pictures in a folder inside the site folder. https://processwire.com/talk/topic/197-import-images-from-file-system-using-the-pw-api/
  13. I saw one lately when I was in a print shop. A real slick all in one monitor from Apple imax 27 inch with icore5. You can use this to get inspired for buying your next monitor. Buy a 4k monitor ultra hd Be sure though your graphics card in your computer has enough power to drive such a beauty.
  14. Yup I found that same link in less than 10 seconds.
  15. Martijn and Joss have it right. First of all processwire is kind of an engine that can drive any html, php, css, js, that you are going to use. So first step would be prototyping your website into different parts. Then assign what code is needed for what parts. Final step is to port it all into processwire => template files, your code and api and "pages" and fields in the admin. You can use wireframers to quickly prototype a website: http://pencil.evolus.vn/
  16. why not simply resize a cell in a css grid manually, it's only seconds of work.
  17. pwired

    vs Drupal 8

    As if with version 8 that all has changed.
  18. pwired

    vs Drupal 8

    Oh yes I used Drupal 6 and 7 for a while: compared to pw, drupal is bloatware and overkill. Oh then why so many people are using it ? Drupal is followed by it's status quo and because of it's huge plugin library. PW is chosen by ppl who want a cms/cmf engine stripped from all the bloat and rules. PW gives all the power back into the hands of designers and coders.
  19. Yes OpenCart 2.0 is another step forward and now comes with standard responsive front. But it has just been released and not 100% stable yet. I stick for a while with v.1.5.6.4 cause that one has been proven rock solid. (disclaimer, don't want to hijack this thread into opencart webshop) (OpenCart is worth to mention because internally it comes close to pw)
  20. Aye, I know what you mean but it might help that the inside workings and structure of opencart look very similar to processwire. It's totally open to adapt it to your needs, not bloated, flexible and fast like processwire. Plus, like processwire, it's back end is fast, complete and easy to understand for an end user. (webshop owner)
  21. Very good project to bring pw in the news. And what a surprise to see Urbanus is still doing performances after so many years.
  22. virtualbox and vmware workstation work perfectly. With it I have reduced win xp and wamp to expandable os and development assets. I can delete and start up new ones on the fly. You could do the same with a complete installed mac os.
  23. Tried many scripts but all useless. Guess cronjob / crontab is the only way.
  24. : Hi Here is the situation: For some reason our email client "Email Thunderbird" stopped receiving emails on one email account. By coincedence I send an email to this email account and all of sudden a lot of emails came in. Also "Email Thunderbird" asked again for entering the password for this email account. So, I am debugging what I can to find the cause of this behaviour. Because of this behaviour some really important emails came in 5 days too late and this can have consequences. I don't want to bash on "Email Thunderbird" because I trust this email client. It never let me down so far. But besides that, I am looking for a script that will auto send in the morning and in the afternoon a test email to many email accounts. This to check if all email accounts are still working correctly in receiving emails. Can anyone point me to a php script that I could run on any host that will auto send test emails or maybe you guys know a better solution ?
  25. Interesting that you can compete with thai coders over there.
×
×
  • Create New...