Jump to content

PWaddict

Members
  • Posts

    934
  • Joined

  • Last visited

  • Days Won

    1

PWaddict last won the day on December 7 2018

PWaddict had the most liked content!

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

5,503 profile views

PWaddict's Achievements

Hero Member

Hero Member (6/6)

442

Reputation

  1. I'm testing it on a brand new website and my init.php doesn't have any other hook. If I change the hook to Page::render it works so it seems it's not a PW issue. <?php namespace ProcessWire; if(!defined("PROCESSWIRE")) die(); /** @var ProcessWire $wire */ /** * ProcessWire Bootstrap Initialization * ==================================== * This init.php file is called during ProcessWire bootstrap initialization process. * This occurs after all autoload modules have been initialized, but before the current page * has been determined. This is a good place to attach hooks. You may place whatever you'd * like in this file. For example: * * $wire->addHookAfter('Page::render', function($event) { * $event->return = str_replace("</body>", "<p>Hello World</p></body>", $event->return); * }); * */ wire()->addHookAfter('Form::render', function ($event) { $return = $event->return; $return = str_replace('<span class="asterisk">*</span>','<span class="myAsterisk">+</span>', $return); $event->return = $return; });
  2. I tried the new hook on both init.php and ready.php but still not working. wire()->addHookAfter('Form::render', function ($event) { $return = $event->return; $return = str_replace('<span class="asterisk">*</span>','<span class="myAsterisk">+</span>', $return); $event->return = $return; });
  3. No, I'm talking about the TinyMCE autolink plugin. You can find it on the Input tab.
  4. Is it possible to edit the rows attribute of the textarea? Can I add / remove input attributes? Sorry, I somehow missed the info about setAttribute() and removeAttribute().
  5. Hmm... it seems that it only works if you press "space" after typing www.example.com Back to good old TextformatterMakeLinks module 😎
  6. Hello. I have activated the "autolink" plugin on a TinyMCE textarea field but it doesn't create hyperlinks. On body I typed www.example.com and it still outputs as plain text. I'm new to TinyMCE so I'm not sure if I'm doing something wrong or autolink is broken.
  7. @Juergen congrats for your module. I installed it today for the first time and while doing some tests I noticed that hooks doesn't work. I'm trying to add a font awesome icon on the error message with the hooking example you have on readme but it's not working. I tested also the other example for hooking on label's asterisk and doesn't work either.
  8. Hi there. I'm using ProcessWire on Litespeed servers for 10+ years. There are NO compatibility issues. Everything you do with regular Apache you can do on Litespeed too. Google "Litespeed vs Apache" and you can easily find out why you should stay with Litespeed 🙂
  9. Hello, I'm outputing repeater content in ProcessWire way like this instead of the classic foreach. <?= preg_replace('/(.*),/','$1 &', $page->datetimes->implode(", ", "{day} {time_start}-{time_end}")) // Monday 19:00-21:00, Tuesday 19:00-21:00 & Wednesday 19:00-21:00 ?> Is there a ProcessWire way to output the content like below where if the time_start and time_end have the same values on all days then display them only once at the end of the string: Monday, Tuesday & Wednesday 19:00-21:00
  10. Yep, Stripe is easier because it has way much better documentation than PayPal. @bernhard You will probably get more help by checking out my PayPal module than looking at the PayPal documentation.
  11. That's great. Stripe Seamless Integration Stripe Payment Element PayPal Seamless Integration PayPal Standard Checkout PayPal Advanced Checkout
  12. @bernhard Mollie is supported ONLY on 32 countries and half of them are required to have a minimum sales volume. You will instantly exclude potential customers from many countries including USA. More info here. Stripe is supported on 50 countries and PayPal on more than 200. I think it will be better if you create a system with external payment modules where the RockCommerce clients will be able to use your ready-made payment modules for Mollie, Stripe, PayPal or they can create their own for any other payment provider. I don't know if Mollie supports it but PayPal and Stripe supports seamless integration too. The user completes the payment without leaving the client's website which is by far the best solution. I'm still a Padloper 1 user and created my own modules to do that for PayPal and Stripe (I haven't released it yet).
  13. Unfortunately that way if a site editor edit the custom page and the superuser never edited it before, the default field value from construct method will not get saved. Feel free to check my process module code here.
×
×
  • Create New...