Jump to content

justb3a

Members
  • Posts

    321
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by justb3a

  1. What is #processwire? It's awesome: https://t.co/bQdxOLhCKW (https://t.co/otQn47Hqon)

  2. Hi, sorry for taking that long to answer. I made a silly mistake that slipped through regarding sanitizing input. It's fixed. Thanks for reporting.
  3. No. Never. Should I? From time to time I dream about some code someone might need and put it inside a module Thanks @LostKobrakai for pointing out the sandbox mode. more about sandbox mode
  4. safari disco mode (https://t.co/ACWU5dguS9) https://t.co/OUpsZsQCGq

  5. hi @Henrik, glad you figured out yourself what caused the problem. I just wanted to test images in repeaters again. But I've got a lot of pages out there which are using images containing image extra fields inside repeaters!
  6. Hi @darcemac and welcome to ProcessWire! I assume you're using ProcessWire version 2.x. If the page reloads: are there any messages that something is missing? If there isn't any hint at all, I guess the submission is treated as spam. Please check the simplecontactform log file to receive detailed information about what's missing. I know, this isn't the best behaviour and I changed it already in the new version supporting ProcessWire 3.x.
  7. Ah, thanks for your hint. There was a missing opening `<?php` tag. I corrected the example above as well as the Github readme.
  8. building a progressive web app: don`t use IOS meta tags irresponsibly https://t.co/oDDlVME0xH (https://t.co/1Rlv102zvt) #indieweb #pwa

    1. artsemlaz

      artsemlaz

      Thanks for the info!

  9. while looking at critical.js I’ve been spotted by a furious unicorn.... (https://t.co/R81lE1sB9J) #github https://t.co/ah62k3OVGT

  10. Here you go: new InstagramFeed version 1.0.0 add required scope public_content to retrieve tagged media with getRecentMediaByTag('tag') (thanks @gebeer) add ProcessWire 3.x compatibility add endpoint to get a list of recent comments on a media object: getRecentComments($media) Example: <?php $feed = $modules->get('InstagramFeed')->getRecentMedia(); ?> <div class="instagram> <?php foreach ($feed as $media): ?> <?php if ($media['type'] === 'image'): ?> <a href="<?=$media['link']; ?>" class="instagram-item"> <img src="<?=$media['images']['thumbnail']['url']; ?>" alt=""> </a> // display comments <?php $comments = $modules->get('InstagramFeed')->getRecentComments($media); ?> <?php if ($comments): ?> <ul> <?php foreach ($comments as $comment): ?> <li><?=$comment['text']?></li> <?php endforeach; ?> </ul> <?php endif; ?> <?php endif; ?> <?php endforeach; ?> </div> A comment ($comment in the example above) contains the following data: "created_time": "1280780324", "text": "Really amazing photo!", "from": { "username": "snoopdogg", "profile_picture": "http://images.instagram.com/profiles/profile_16_75sq_1305612434.jpg", "id": "1574083", "full_name": "Snoop Dogg" }, "id": "420"
  11. Thanks for testing. Using this endpoint you just get the number of comments, not the comment itself. ["comments"]=> array(1) { ["count"]=> int(1) }
  12. It took some time but now it's possible to use a textformatter e.g. markdown parser. This is only available in branch develop for PW3.x. There is a little issue due to focus textareas, I created a PR to solve this. How to use it: go to field settings, enter some other fields, save. Reopen ImageExtra tab, now you can see a table below in which you can define one textformatter for each extra field. All installed text formatters will be listet in this dropdown.
  13. @Travo: Thanks for the PR, I applied it to the develop and master branch. If you want to use the module with ProcessWire 3.x, you have to checkout the feature/devns branch of the module.
  14. @suntrop: This is how I add a Twig Extension (in my case the Intl Extension, but this shouldn't matter): add Twig Extensions via composer { "require": { "twig/extensions": "~1.3" } } add Hook after initTwig() (as Wanze said) $this->addHookAfter('TemplateEngineTwig::initTwig', $this, 'addTranslationFunctions'); add Twig Extension public function addTranslationFunctions(HookEvent $event) { $this->twig = $event->arguments(0); if (!class_exists('Twig_Extensions_Extension_Intl')) { require(wire('config')->paths->TemplateTwigReplaceLanguageSupport . 'vendor/autoload.php'); } $this->twig->addExtension(new Twig_Extensions_Extension_Intl()); } --- To check for a multidimensional array, you could try: {% if input.post is not empty and 'name' in input.post|keys %}
  15. It works well with PW3. This is a twig issue. You have to use: {% if page['images'] %} Have a look at this page: How to check if a variable or value exists, this helped me a lot. Or try to change the Formatted value in the field settings to Array of items. Then you should be able to test using length because this way it returns an empty array.
  16. figuring out how to use a selfie stick. maybe someone is holding it wrong #btconf (https://t.co/bqbhFDhxvK) https://t.co/dmBkppk9FY

  17. hi @depone, I assume you're referring to the latest master version which is only compatible with PW 2.x. I don't want to add any features to this version anymore. Sorry for that. But I decided to add this feature to the feature/devns branch which supports PW 3.x. There is a new module setting where you're able to set a reply-to email address. If you want to use a value from the entries of the form, you have to pass this as an option to the render function: $options = array('emailReplyTo' => $input->scf_email); echo $modules->get('SimpleContactForm')->render($options);
  18. Set up SFTP users with restricted access and key authenticationYesterday I've been struggling... (https://t.co/FKNDaGtQib) #sftp #shell

  19. @saml: Have a look at the documentation. It's listed as an option and a basic example is available as well.
  20. Rarely laughed that much: Painters and Hackers https://t.co/tiMNV2UinU via @progpaintings (https://t.co/JfE3Rs2bgG)

  21. I assume you 're using PW 2.7.x and the latest stable version of the module (master branch / ProcessWire module directory). If the second form contains different fields than the first one, you need to pass a lot more params as only the 'allFields' key. (at least requiredFields, emailFields, templateName). As I said before the module for PW3 changed a lot and also got an improved Readme. If you still run into trouble, please provide an example which I can reproduce and document (Module settings for the first form and the difference to the second one).
  22. Glad I could help. Here are just two litte things I noticed The link in the first post to the current wip version is broken. It contains %C2%A0 at the end which leads to a 404 Github page. You can get the current dev version here <a href="https://github.com/somatonic/Multisite/tree/dev%C2%A0" ... The latest ProcessWire devns version 3.0.15 introduces view panels, unfortunately this module swallows them. This is no big deal, I just wanted to mention it. As soon as I uninstall the Multisite module, the panel appears instantly.
×
×
  • Create New...