-
Posts
1,366 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Ok I understand better your issue, I don't have time to test it, but something to try is : AddHookAfter Modules::refresh to call upgrade($fromVersion, $toVersion) "This method should make any adjustments needed to support the module from one version to another." If you give a try, please report back as I am curious now ?
-
Hi @modifiedcontent It's really easy, and I suggest you to copy the MyCommentForm.php file from /wire/fieltype/fieldtypeComments, put it in your template directory then rename it to _MyCommentForm.php and modify this file to your need - for you it's the renderFormThread() function which is interesting and there to be tweaked. Then in a template, you put the following code : include("./_MyCommentForm.php"); CommentStars::setDefault('star', '<i class="fa fa-star"></i>'); //<= star item using fontawesome icon $options = array(...); // options of your form, check `myCommentForm.php` $myCommentsForm = new MyCommentForm($page, $page->comments, $options); echo $myCommentsForm->render(); You have also a good function to start here to control all the comments markup : An screenshot of what can be done (sorry for the screencast, I can't resize it.) Enregistrement #3.mp4
-
PHP Versions available on ServerPilot, if you still need 5.6 - it's also available without any CVE holes.
-
Hi @Sascha Nos take a look there : https://wire shell.readthedocs.io/en/latest/commands/module/
-
Thanks @Ivan Gretsky I will look at this and for sure update my code snippet : use PHPHtmlParser\Dom; function print_toc($html, $link = '', $depth = 1) { $dom = new Dom; $dom->loadStr($html); $headings = $dom->find('h'. $depth); $toc = ''; foreach ($headings as $h) { $name = wire('sanitizer')->pageName($h->text); $name = strtolower($name); if($name) $toc .= "<li><a href='{$link}#{$name}'>$h->text</a>"; } return "<ul>$toc</ul>"; }
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
flydev replied to ryan's topic in Modules/Plugins
I can't really give you a solution, but to understand and investigate, the following is happening: The data you are sending is not UTF-8 encoded. You should verify in first instance that the "parsed" data (the video link in body ?) is UTF-8. Just a hint. -
-
Hi here, I think I misunderstand how it works. I just saw that google crawled a website, and all page title look like that in google: `inherit | mysite.com` ?♂️? In first instance I had that code in _init.php : // page title fallback $title = $page->get('my_seo.meta_title|title'); // fail, it output 'inherit' modified to : // page title fallback $title = ($page->get('my_seo.meta_title') === 'inherit') ? $page->title : $page->my_seo->meta_title; // ofc it works How other dev do ?
-
How to upload heavy data into Processwire?
flydev replied to Vineet Sawant's topic in General Support
Check this recent thread, you will find the answer : -
I do not have a reason either, I think I was just thinking to interfere at the minimum with the design of a frontend developper. But after thinking about that, it could be an handy feature, even on front-end ?
- 46 replies
-
Yes, I don't use the wiki but do not be afraid by those old dated thread - check- they will mostly work, I mean, I installed yesterday a module made in 2013 still working without any modifications on the last dev version. Isn't crazy ? ? - https://www.pwtuts.com/ - https://processwire.dev/ - https://cse.google.com/cse?cx=014789015761400632609:fxrf0rj4wr4 and as always, linking this old thread with old videos which still work with the latest processwire version :
-
That's also a nice solution and both of them could make the thing to work - I still think that the class (applied only to admin side) could be better for future use case in other modules.
- 46 replies
-
- 1
-
-
merci, it's fixed ??
- 46 replies
-
- 1
-
-
Thanks, can you force update the modules directory ? (I am lazy sorry)
- 46 replies
-
Hi @pop You might missed this one topic : Then use google/this tool ? with the right keywords, you will find a ton of topics - thanks @mr-fan And do not hesitate to ask, as you can see, you will get nice answers ?
-
/** this fix seem to fix everyting **/ .InputfieldContent .pw-table-responsive { margin: 0 0 10px; } @jploch @adrian About the Save button on the bottom right, if could TracyDebugger set a class on the body - 'has-tracy-on' - we could override the save button position only if TracyDebugger is present.
- 46 replies
-
- 1
-
-
No sorry, it's a pro module. I can try to something with the css to see if we can fix that.
- 46 replies
-
It's not tied to only PadLoper but to ProcessModule in general. For example, Profiler has the same issue with this theme.
- 46 replies
-
- 46 replies
-
If one day you want to play with dedicated server, you can try to get one from kimsufi, they start at less than 5€ ? but you need to stay a long night refreshing the browser or code a bot to get the server, there are hard concurrence on this at this price. The last thing I made for example it's a server to host a live support chat service (https://github.com/LiveHelperChat) ?
-
ServerPilot is a cool service and deserve a word here. I know this service because of @Macrura and I never get out. Thanks dude ! You buy a dedicated server, attach it to ServerPilot and you get your server up in minutes, he will get updated without any intervention. You will get the right stuff, updated with every last software and dependencies version, patched, without "any" security hole. I even some at the start tried to hack the server with no luck, I had to make a vulnerability myself to get into ? no really you get all needed architecture, like app isolation and more with security in mind. And if you know what your are doing, you can install any software you want, do any ninja command or add any config through SSH. You will also like their support lol, full of experienced geeks veterans. That's all, this was my 10$ spam for today ?
-
- 46 replies
-
What's the approx loading time you get in term of performance, lower than 100ms ? What's is the server spec ?
-
Sorry, it appear that I was not seeing that the browser was still loading assets (got some connection issues this afternoon). Just checked now and the site is loading fast, with scrollbars ?♂️?