• Content count

  • Joined

  • Last visited

  • Days Won


justb3a last won the day on April 26

justb3a had the most liked content!

Community Reputation

606 Excellent

1 Follower

About justb3a

  • Rank
    Sr. Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Leipzig, Germany

Recent Profile Visitors

4,303 profile views
  1. module

    @ngrmm It's never a good idea to override somehing in the core or in a third-party module because if you update it your changes are overritten again. I updated the module and added an option in module settings to set the limit. @Tacolombardi <?php $events = $modules->get('FacebookEvents')->getEvents(); ?> <ul> <?php foreach ($events as $event): ?> <li> <?=$event['name']?> <img src="<?=$event['cover']['source']?>" alt="<?=$event['name']?>" /> </li> <?php endforeach; ?> </ul>
  2. module

    Have a look at your caches table. Search for name=Module.FacebookEvents. Delete this row. Furthermore you could have a look at your modules table where class=FacebookEvents, column: data.
  3. Version 1.0.0: [New] The module contains a Fieldtype Select Options Countries:
  4. I removed the date field label some days ago (@see Github issue). I didn't know that ProcessWire provides a way to skip the label. It's added to the develop branch, so it'll published with the next release!
  5. This is not how arrays work. Each key can ony exist once. EmailAddMessage is overwritten three times. The field isn't visible by default, because I don't want to add inline styles. Just trigger the field in your .css file and add display:none; there.
  6. The scf_website field must be there! Again: this field is used for spam protection. Please read the belonging documentation as described above, all necessary informations are there: If the fields does not match, you could have a look at your database. Table modules where class equals SimpleContactForm. Column data contains json, I guess the allFields value doesn't match anymore. Otherwise just reinstall the module and start with clean settings. To format the fields, you can pass options to adapt HTML structure as well as class names. Unfortunately not everything can be achieved using this. For really special needs you have to hook into the field render function. To get an overview of what's possible, have a look at the documentation: How to overwrite classes and markup.
  7. @BFD Calendar Could you please explain what you did exactly? It doesn't matter whether the module is installed via ProcessWire Module Interface or via Github (unless you checkout develop branch). As the documentation says, the scf_website field is used as honey pot check to prevent spam. In module settings you could add any existing field or create new ones by entering the names (comma-separated). Per default no fields are added, because I do not know which fields you need Furthermore: please have a look at the log file. If the form cannot be submitted, the reason will be found there.
  8. I fixed the typo, thanks for the hint. The translation string has been changed, some may need to translate it again! It started pretty simple (for private use only). Then I did the "mistake" to put it on Github . But if you don't need something special, I think/hope it's still pretty easy.
  9. I tested 1), 2) and 3). They work all. If you want to use file_get_contents, you need to pass an URL returning the content. Otherwise the code won't be interpreted. Stackoverflow:
  10. or 3) ob_start(); include('./mess.php'); $emailMessage = ob_get_clean(); $content .= $modules->get('SimpleContactForm')->render(array('emailMessage' => $emailMessage)); // mess.php <?php namespace ProcessWire; echo $page->title . ' test3 ' . $input->post->headline;
  11. 1) $emailMessage = $page->title . ' test'; $content .= $modules->get('SimpleContactForm')->render(array('emailMessage' => $emailMessage)); 2) include('./mess.php'); $content .= $modules->get('SimpleContactForm')->render(array('emailMessage' => $emailMessage)); // mess.php <?php namespace ProcessWire; $emailMessage = $page->title . ' test2 ' . $input->post->fieldname;
  12. Using twig the following does work: {% set emailMessage %}{% include 'mails/recommend.twig' %}{% endset %} {% set options = { 'action': './#recommend', 'emailMessage': emailMessage } %} {{modules.get('SimpleContactForm').render(options)}} {# recommend.twig #} ... {{ estate.title }} {{ page.httpUrl }} {% if input.scf_salutation == 1 %}xx{% elseif input.scf_salutation == 2 %}xx{% else %}xx{% endif %} ... I thought using php should work the same.
  13. Hi #1 Do not use the email message textarea in module settings, write your own using php and access the title as you 're used to. 0) $emailMessage = file_get_contens('https://url/to/message.php'); // or include partial etc. $modules->get('SimpleContactForm')->render($array('emailMessage' => $emailMessage)); #2 Just pass an action parameter as option: $modules->get('SimpleContactForm')->render($array('action' => './#anchor'));
  14. module

    The workflow is as follows: Enter Client ID and Secret Enter Page Name OR Page ID: If you enter the Page Name, make sure to copy it from the Facebook page url similar to `https://www.facebook.com/NameWithoutSpaces` => NameWithoutSpaces would be the Page Name Add `$events = $modules->get('FacebookEvents')->getEvents();` to a template and open the belonging page (frontend) Go back to module settings and check (reload before) if a page id has been added. If not, your page name could not be resolved. Now you should be able to receive events: $events = $modules->get('FacebookEvents')->getEvents(); echo "<ul>"; foreach ($events as $event) { echo "<li>{$event['name']}</li>"; } echo "</ul>"; $events is an array, so you have to use the following syntax: `$event['propertyName']`. I found a little bug and updated the module, so please make sure to get the latest version.
  15. @maxf5 Please have a look at this post. Furthermore turning caching on could be complicated because the value of the hidden date field gets cached and this value is used for spam protection...