-
Posts
1,366 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Salut Jeannette, I can help you to keep your shop up-to-date and improve it. I own a license of PadLoper and wrote somes custom payment processing methods and others improvements. I live in France, near Bayonne - meeting ourselves could be easy. I will send you my phone number / mail address by private message, and if you feel then we can call us tomorrow. You too ! ??
- 3 replies
-
- 3
-
-
- development
- ecommerce
-
(and 1 more)
Tagged with:
-
@jacmaes you can simply add a new condition if the the GET var level is a string ? let's try : if($input->get->level && is_array($input->get->level)) { // level as array given $level = array(); foreach($input->get->level as $id) $level[] = (int) $id; // sanitize to INTs $level = implode('|', $level); // convert to 123|456|789 string, ready for selector } elseif($input->get->level && is_string($input->get->level) && $input->get->level !== '') { // level as string given // can be optimized (sanitizer) $level = array(); foreach(explode('|', $input->get->level) as $id) $level[] = (int) $id; // sanitize to INTs $level = implode('|', $level); // convert to 123|456|789 string, ready for selector } else { $level = ''; }
- 3 replies
-
- 2
-
-
- pagination
- checkboxes
-
(and 1 more)
Tagged with:
-
Try range() in your selector : $selector = "range=(date>=1583017200, date<=1589493599)"; just replace the timestamps with your own.
-
Some sorts of hypotheses. 1 - Yes, too many bookmarks could cause problems ?? 2 - The potential problem is: the size of the data stored in this session (session are written to disk, and re-write every request) ?? 3 - The practical limit will be the memory that PHP can take on the server 4 - What @MoritzLost explained I hope it give you an idea of the potential issue with a lots of pages.
-
Hey @matjazp It could be possible to dig into this a bit further ? ??♂️
-
Blocked by X-Frame-Options Policy error for youtube emebed
flydev replied to JeevanisM's topic in Getting Started
function convertYoutube($string) { return preg_replace( "/\s*[a-zA-Z\/\/:\.]*youtu(be.com\/watch\?v=|.be\/)([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i", "<iframe src=\"//www.youtube.com/embed/$2\" allowfullscreen></iframe>", $string ); } Source: SO ? -
Blocked by X-Frame-Options Policy error for youtube emebed
flydev replied to JeevanisM's topic in Getting Started
@JeevanisM Look like you use the wrong youtube URL. Try to see how is composed your URL and then be sure that you link youtube's video with the /embed endpoint as it allow cross origin request. Check : bad: https://www.youtube.com/watch?v=kSLhay7msTI gud: https://www.youtube.com/embed/kSLhay7msTI -
Hi @Ralf, sorry for the delay. Instead of checking for the $input->post->submit, you should check if the response from the ReCaptcha is green. So, instead of : // form was submitted so we process the form if($input->post->submit) { // Do cool stuff here <<<<-------- I cannot get in here } Do : // form was submitted so we process the form if($captcha->verifyResponse() === true) { // Do cool stuff here <<<<-------- you will get here now } Also, try to call the getScript() method on the end of your main markup page. I mean, just before the </body></html> tags. And to avoid calling the module every page request, you can for exemple, check if the current page's template is the contact one and then call the module's getScript() method : <html> <head> </head> <body> ... <!-- other tiers scripts exemple --> <script src="jquery.js"></script> <script src="anotherscript.js"></script> <?php if($page->template->name === 'contact-tpl') { // google recaptcha required script echo $modules->get("MarkupGoogleRecaptcha")->getScript(); } ?> </body> </html> Ping me if you need further help.
-
Interesting, on my side for every project, it's : TracyDebugger because coding without it it's like masochism AutocompleteModuleClassName super-man backend module BreadcrumbDropdowns super-man backend module VersionControl for versioning page's content Migrations to keep control between dev and prod sites Duplicator for backups and migrations @JeevanisM you should give a try to the last one ???
- 10 replies
-
- 11
-
-
Hi @SeriousUser OK, the core ship what's needed FormBuilder again FormBuilder SEOMaestro MediaManager RepeaterMatrix ProCache Backup it with Duplicator ? Thanks, you too ??
-
I am sure you need some knowledges to make something nice without spending a buck in an already built-in theme. Stable ? for a vanilla blog, the core might be green depending the version, the plugins eco-system is red. Intuitive ? ... Booooooo to me, I fall into a troll ! ?
-
@---Lukas--- You might need to adjust the condition here (read below) or add another check just after (checking if pages are hidden) if ($child->numChildren && count($child->parents) == 1) { or you can use count($child->children) as it should exclude all your hidden pages. `numChildren()` include hidden pages. if (count($child->children) && count($child->parents) == 1) { try it ?
-
Hi @eydun I can definitely give an option to exclude the database dump (> in the todo list) . Anyway, can we know the details and type of the hosting server ? On my side, I can backup a ~4GB database, but it's a windows server that I configured myself (still on Apache). @huseyin any news ? could you achieve what you was looking for by choosing the database name in the installer ?
-
Considered @Robin S I also have a bad connection (working with a 4G router) and it's definitely a good feature request. I will try to implement it asap, but I would like to release first the module with the native backup feature but I lack time. I will try to do my best. Thanks for the link @bernhard Thanks again guys, I hope you're all fine here ??
-
Okay - then if you have some feedback from the sys admin, let us know if possible, thanks ?
-
Hi @Sevarf2 Can you make a screenshot of the Step #1 et #2 please ? And FYI I also used the Duplicator installer on IIS without issue.
-
@catslave if you want to get rid of the images and use only the background-image property, then you have to add this CSS code : https://github.com/flydev-fr/site-pwbs4/blob/master/assets/static/css/main.css#L38-L44 .carousel-item-fluid { width: 100%; height: 550px; background-position: center; background-size: cover; background-repeat: no-repeat; }
-
@B3ta I don't have the same code on this line 32, look at the repo there : https://github.com/flydev-fr/Duplicator/blob/v1.3.14/Classes/DupLogs.php#L32 I tested Dropbox before posting and its working (even if it look like there is a small issue with the timestamp). FYI, the latest version is 1.3.14 and you should update your Duplicator I think, let me know ?
-
Hi, the code on Github was updated recently to work with the latest Bootstrap 4 release, that might be the reason. If you see the carousel in rendered HTML code, then you should try to play with the developer console and the display, with, height css properties. Also, if you want to compare the generated markup, then here you go (in my example, there is 3 images on a images field : <div id="carousel-144" class="carousel slide shadow" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#carousel-144" data-slide-to="0" class="active"></li> <li data-target="#carousel-144" data-slide-to="1" class=""></li> <li data-target="#carousel-144" data-slide-to="2" class=""></li> </ol> <div class="carousel-inner rounded" role="listbox"> <div class="carousel-item carousel-item-fluid active" style="background-image: url(/site/assets/files/1/om-psg_cf_finale-2_1.1600x550.jpg);"> <!--<img src='/site/assets/files/1/om-psg_cf_finale-2_1.1600x550.jpg' alt='' width='1600' height ='550'>--> </div> <div class="carousel-item carousel-item-fluid" style="background-image: url(/site/assets/files/1/pressesports_2013828_foot_031-1920x768_1.1600x550.jpg);"> <!--<img src='/site/assets/files/1/pressesports_2013828_foot_031-1920x768_1.1600x550.jpg' alt='' width='1600' height ='550'>--> </div> <div class="carousel-item carousel-item-fluid" style="background-image: url(/site/assets/files/1/22254435-25040490_1.1600x550.jpg);"> <!--<img src='/site/assets/files/1/22254435-25040490_1.1600x550.jpg' alt='' width='1600' height ='550'>--> </div> </div> <a class="carousel-control-prev" href="#carousel-144" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carousel-144" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div>
-
Hi @B3ta I had too much work this week so its planned for the next tuesday. Can you upload again the screenshot please ? I can't see it. Thanks you.
-
HI @saschapi Thanks for reporting this issue, I also noticed it and fixed it in the dev version. The next stable version (which come with native backups) should be pushed next week. Just make a scheduled task which point to the CRON Duplicator's helper file. If you need further help, just ask it here ? Hello @shogun , I have the same requirement and I am using what @d'Hinnisdaël suggested. I use Migration with a self made GUI and Duplicator for daily backups.
-
I remember this thread too : https://processwire.com/talk/topic/17862-share-your-ckeditor-settings/
-
Exception SQLSTATE[HY000] [2002], SSL encryped database connections
flydev replied to Lutz's topic in General Support
I think that your connection settings are wrong. You should triple check it. I don't know how the DigitalOcean cluster work, but I must assume that the host is different that localhost or 127.0.0.1. Also, are you sure you configured the right port number (if different in a cluster config) ? The error message must indicate that something is misconfigured. In the case it was your credentials that was wrong, you will must get a Connection Refused error not a timeout. (not sure how to formulate this last sentence ?) -
Custom Page Type...findOne() not implemented?
flydev replied to J_Szwarga's topic in API & Templates
And simply using $this->pages->findOne() inside Events can't do the job ? As PagesType extends Wire, it should be available as $events->pages->findOne()