Jump to content

gebeer

Members
  • Content Count

    1,027
  • Joined

  • Last visited

  • Days Won

    23

Posts posted by gebeer


  1. 5 hours ago, dotnetic said:

    Hey @flydev 👊🏻. Now that half a year has passed, any news ? A release date? Will this fieldtype be free or paid? 

    I was just about to ask for a release date, too :-) Seems I'm not the only one who is keen on getting their hands on this. As I understand it, this will be released as a paid module which is only fair. @flydev 👊🏻 mentioned that he wants to get the promoting website up and running before selling the module. Just in case that this is slowing things down, I would even be happy to pay for a pre-release version.

    • Like 2

  2. Thank you for this module!

    It was not working for me until I found out that the HTML created by CKEditor was something like

    <p style="margin-left:0cm; margin-right:0cm">https://www.youtube.com/watch?v=Lh63JcccM7k</p>

    So the <p> tag has a style attribute. The regex (line 180 in module php) does not cater for that.

    $regex = '#<p>\s*(https?://(?:www\.)?youtu(?:.be|be.com)+/(?:watch/?\?v=|v/)?([^\s&<\'"]+))(&[-_,.=&;a-zA-Z0-9]*)?.*?</p>#';

    I adjusted it, so that it also works  for paragraphs with attributes

    $regex = '#<p.*>\s*(https?://(?:www\.)?youtu(?:.be|be.com)+/(?:watch/?\?v=|v/)?([^\s&<\'"]+))(&[-_,.=&;a-zA-Z0-9]*)?.*?</p>#';

    @Lex Sanchez maybe you want to implement this in your module.


  3. On 11/1/2020 at 7:54 PM, modifiedcontent said:

    Did you find solutions for your original question from 2016, CKEditor settings per template and/or role? I'll have to figure that out next and will post here what I find out.

    Here is one possible way to go about this:

    1. add the user role and template name to the ProcessWire.config JS object with https://processwire.com/api/ref/config/js/
    2. in /site/modules/InputfieldCKEditor/config.js retrieve that information and setup different CKEditor configs depending on role/template

     


  4. On 10/19/2020 at 10:26 AM, modifiedcontent said:

    Is CKeditor now part of Processwire? I use CKeditor in a template, but using a version I downloaded in a template js folder. What is the correct way to use CKeditor in a template, on the front-end?

     

    You can load all the CKEditor assets in a template by loading the module

    $modules->get('InputfieldCKEditor');

    This will load all assets to $config->scripts and $config->styles
    Now in your main.php (or template file that renders your <head>) you need to include something like

    foreach ($config->styles as $file) echo "\n\t<link type='text/css' href='$file' rel='stylesheet' />\n";
    foreach ($config->scripts as $file) echo "\n\t<script src='$file'></script>\n";

    This approach is only working with the delayed output strategy.

    • Like 1

  5. On 9/27/2020 at 1:31 AM, hellomoto said:

    Is there a built-in way to handle incoming email?

    This module is an SMTP extension for the WireMail class. It can only handle SMTP transport which is for outgoing mail.
    There is no module that I know of which can handle incoming mail (IMAP, POP3).
    If you want to handle incoming mail, you could use a service for transactional emails like mailgun (and the WireMailgun module) and use webhooks. But this still involves quite a lot of programming.

    • Thanks 1

  6. If you are using v1 of this module and you want to auto-remove entries from the 404 monitor when you create a jumplink from an entry there, you can use this simple hook in site/templates/admin.php

    $this->addHookBefore('ProcessJumplinks::executeCommit', function(Hookevent $event){
        $input = $this->input->post;
        $sourcePath = $input->sourcePath;
    
        if($sourcePath) {
            $statement = "DELETE FROM process_jumplinks_nf WHERE request_uri = :sourcePath";
            try {
                $this->database->prepare($statement)->execute([
                    'sourcePath' => $sourcePath
                ]);
                $this->message("Eintrag '$sourcePath' wurde aus 404 Monitor Liste entfernt");
            } catch (\Throwable $th) {
                $this->error("Fehler beim Entfernen des Eintrags '$sourcePath' aus der 404- Monitor Liste: " . $th->getMessage());
            }
        }
    });

    and adapt the messages to your liking :-)


  7. On 9/11/2020 at 6:14 AM, Mike Rockett said:

    Thanks 🙂 This hasn't been addressed in v1, as the plan was to carry the behaviour into v2 (sorry it's taken so long…) by way of the separate module. I picked up the project again recently and was giving it some thought. I might just include the 404 logger in JL v2, but am still 50/50 on it.

    Thanks for clarifying. Which hook would you use to trigger deletion of logger entries, ___executeEntity or ___executeCommit?


  8. On 1/28/2016 at 8:40 PM, ceberlin said:
    • If I use the 404 monitor to fix a link the link should be removed from the 404 monitor so I do not fix it twice

    @Mike Rockett has this been addressed yet? I have a customer complaining about this. Would be really nice if those 404 entries got removed. Any plans on implementing this? And thousand thanks for this great module!


  9. On 8/27/2020 at 9:00 PM, adrian said:

    Hi @gebeer - sorry that didn't help. Looking through the module code there are only a couple of places where "/admin/module/edit?name=TracyDebugger" appears. One is in the PW Info panel, so could you please disable that and see if it fixes things. The other is in the main module file, so could you try removing this block of code: https://github.com/adrianbj/TracyDebugger/blob/c499ad75ffce7ce473dfd32ef994339a27d61b83/TracyDebugger.module.php#L1124-L1135

     

    I tried both but it didn't help. Also I uninstalled and removed the module, deleted all cookies, local storage and session storage and then reinstalled. Problem persists.
    Can't see what the invalid escape sequence could possibly be.
    On my local dev install of the website, I don't have that problem.
    I'll try to find the cause for this behaviour and will let you know here.
    Thanks again.

    • Like 1

  10. 13 hours ago, adrian said:

    Hi @gebeer - I am not really sure, but my initial hunch is that somehow the last entered code is corrupt. Could you try deleting any browser LocalStorage entries for the site. You can go through and just delete the ones that refer to Tracy if you'd prefer.

    Thanks for that hint. I already had deleted cookies and local storage. Didn't help. Problem persists across browsers, also in private mode. So it doesn't seem to be related to local storage.


  11. Hello,

    on one of my installs the editor window in the Console in the backend doesn't show up and I get this error in the JS debug console:
     

    Uncaught SyntaxError: invalid escape sequence
        evalScripts .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:514
        forEach .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:665
        evalScripts .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:508
        init .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:35
        displayTimeout .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:302
        setTimeout handler*initTabs/</< .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:297
        initTabs .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:291
        forEach .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:665
        initTabs .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:264
        init .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:254
        init .../admin/module/edit?name=TracyDebugger&collapse_info=1&_tracy_bar=js&v=2.5.9&XDEBUG_SESSION_STOP=1:388
        <anonymous> .../admin/module/edit?name=TracyDebugger&collapse_info=1:284
    edit:1:155320
    

    This has been going on for some time. Also persists after upgrade to v4.21.20. Refreshed modules, cleared all cookies and local storage related to TD to no avail.
    Console looks like this and div#tracyConsoleEditor is empty:

    console-without-editor.thumb.png.2051ddc2391b5dc18b9ee9dd4839c5f0.png
    Any help on how I can back the console editor would be much appreciated.


  12. HAving similar PHP warnings here

    PHP Warning: exif_read_data(1-transf-kosk4-min.gif): File not supported in /home/m1698/Sites/processwire/site/modules/FileValidatorImage/FileValidatorImage.module:398

    On this install I'm running images attached to a frontend form upload through the FileValidatorImage module which I installed first. This module uses PHP's exif_read_data function. And that doesn't seem to support gif. Couldn't find a list of supported file types in the PHP docs, though.

    I don't really worry too much about the warning itself. Only the mails I get from Tracydebugger get annoying after a while ;-)
    Just posting for reference.


  13. 1 hour ago, kongondo said:

    Other than that, it should go away if you add wire as a folder in the workspace.

    The wire folder is already in my workspace. Or do you mean I have to add it in VSCode in the workspace settings?

    After adding namespace ProcessWire to my template files, I got rid of these errors.

    • Like 1

  14. 8 hours ago, FlorianA said:

    it seems to be a blocker for me forcing my users to fill in all (English) default language fields if the site's text is by 95% in German.

    If I understand this correctly, then your default language should be German. What was the reasoning behind switching languages in your case?

    If you want to write a PHP script, maybe my old script can give you some pointers. I wrote that years ago when I wasn't very experienced in working with the PW API. So there sure is much room for improvement.

×
×
  • Create New...