-
Posts
1,360 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Please post the relevant errors here.
-
Working on it @adrian
-
I see, thanks for your input. At this moment, Its working in the way : unix to unix ok unix to windows ok windows to unix, testing it right now
-
hi, check this thread :
- 1 reply
-
- 3
-
Thanks you @Juergen . About the port 43, its common that this port is blocked by default and - depending on the hosting provider - can be configured trough the panel provided. Will look at it this afternoon as I am deploying this module a on a production site. Stay tuned, thanks again mate.
- 30 replies
-
- 1
-
- antispiders
- anticrawler
-
(and 2 more)
Tagged with:
-
I can bundle the vendor dir too but this solution do not enchant me. @horst check this post from Ivan : I know that '\' is a char on Unix system and thus the extracted files are not parsed as a directory tree. also i know I have a working version somewhere, I just can't put my hand on it
-
The problem of those php libs is that they have some dependencies and most of them require the deps installed trough composer.
-
Hello guys, just to let you know that I am working on the module. @Karl_T As i need the module working on windows ASAP, I tested your fix on my Windows 2008 r2 server / PHP 7.0.28 and it throw error on $zip->close(); with an error : "No Error" ? Which version of Windows and PHP you are working on please ?
-
Your parent page is not assigned in a correct way. $form->parent = $page('template=contact-form'); // optional, saves form as page should be $form->parent = $pages->get('template=contact-form')->id; // optional, saves form as page
-
Did you checked the browser's console to see if there an error ? Did you call the $modules->get("MarkupGoogleRecaptcha")->getScript() somewhere ? its required.
-
hi @strandoo thanks you. I never used the module you are talking about but I read the module code on Github and it look like you can insert the ReCaptcha before the submit button by hooking into the function ___buildForm(). Please try the following (not tested) and let me know. In ready.php put : wire()->addHookAfter('FormTemplateProcessor::buildForm', function ($event) { /* @var $form InputfieldForm */ $form = $event->return; $f = new InputfieldMarkup(); $f->markupText = wire('modules')->get("MarkupGoogleRecaptcha")->render(); foreach ($form->children as $field) { if ($field instanceof InputfieldSubmit) { // find the submit button $form->insertBefore($f, $field); // insert reCAPTCHA before the submit button } } $event->return = $form; });
-
What bernhard said - also please tell us which output strategy you use, and which profile did you installed to play with the tutorial (if there is one..) ?
-
No problem dude, feel free to ask, it will be benefit for other people too. And you was close ? Try this : wire()->addHookBefore('LoginRegister::createdUser', function($event) { $u = $event->arguments[0]; // get user object $mail = WireMail(); // no keyword 'new' $mail->subject('Welcome to our website'); $mail->to($u->email); $body = "<p>" . "Welcome to our website " . $u->name . "</p>"; $mail->body(strip_tags($body)); $mail->bodyHTML($body . "<p><a href='$this->page->url?profile=1'>" . $this->_('Your Account') . "</a></p>"); $mail->send(); });
-
Yes it was planned to be done in first instance trough FTP protocol. Horst had give me some code to work with but since 2 months I am so busy with my works that I didn't found the time to try it. But this feature is definitely on the top of the todo list.
-
Hi @Ivan Gretsky Sound good to me, look like I have some work to be done! Tables are simply dropped if they exist.
-
Yes, do not hesitate to share your result, try to make your best and we will try to send a Pull Request on Github ✨ PS: I forgot to send my post. I modified the module to bypass confirmation, if you wanna try and report back, rename your LoginRegister folder to .LoginRegister, then extract the zip in place of the original one in site/modules, refresh modules and check the box in the module's admin. File : LoginRegister.zip
-
Nope, it's not possible in the current state of the module.
-
Anyone already tried the module with admin page/Process modules ? I can get it working, but only by hacking the module. Not surprised here, did you tried with another var name ? ($page is a reserved word in ProcessWire) @Wanze With PHP-7.0.10 I get those warning : Edit: fixed by replacing mpdf with the version 6.1
-
@MarcoPLY You have to call the module by using an ajax request in order to avoid the redirection when the user click. In the following example, I am using jQuery (I'm lazy) and the modal script from w3c and a new template LoginRegister.php for the example : Code of the template : JavaScript code :
-
Sorry I can't understand all the post ?, can you please post some code or explain "better" what you are trying to achieve ? You can use LiceCap to show us a screencast of what happen on your page.
-
Yes everything, PHP functions and also the ProcessWire API. Do not hesitate to install TracyDebugger to debug your app and speed up development
-
More precisely, it create a new InputfieldMarkup and add it to the LoginRegister form. You can put any markup you want inside this field. Compare and try with this code : wire()->addHookAfter('LoginRegister::renderMessage', function ($event){ $message = $event->return; // get the original message // bd($message); // use TracyDebugger to get whats inside the variable - now we know how to modify the markup $message = str_replace("</p>", " (<a href='". wire('pages')->url ."?logout=1'>" . __('Logout') . "</a>)", $message); // replace markup $event->return = $message; // set the modified value back to the return value }); https://processwire.com/blog/posts/introducing-tracy-debugger/ https://www.google.com/search?q=processwire+get+started+with+hooks
-
It just return a multidimensional array where I can check a value (key: 'closing' or 'transactions') and assign a different label.
-
Hey @kixe thanks for this idea, I tried to implement it but I ran into an issue. I can't manage to set a different label depending on a condition. I think I must be missing something. The hook : $this->wire->addHookAfter('ProcessPageListRender::getPageLabel', $this, 'getPageLabel'); public function getPageLabel($event) { $listedPage = $event->arguments[0]; if($listedPage->template->name == 'tpl1' || $listedPage->template->name == 'tpl2') { $this->status = $this->getUpdateStatus(); foreach ($this->status as $key => $value) { $event->return = ($this->status[$key]['closing'] == -1 || $this->status[$key]['transactions'] == -1) ? '<span class="uk-label label-update-status-error">ERR</span> ' : '<span class="uk-label label-update-status-ok">OK</span> '; } } } Each page on the page-tree have the same label label-update-status-ok : Could you share a portion of code ? ? @theo sorry for hijacking your thread ? Edit: fixed, it was just bad logic in the foreach loop inside the hook. Thanks again @kixe it rocks !
-
Sure ! ? To get you started, I hope I am not spoiling things, you can add a link quite easily. In the file ready.php put : wire()->addHookAfter('LoginRegister::buildLoginForm', function ($event) { $obj = $event->object; $form = $event->return; $f = new InputfieldMarkup(); $f->markupText = "<a href='". wire('pages')->get('/purchased-products/')->url ."'><h3>Purchased Products</h3></a>"; foreach ($form->children as $field) { if ($field instanceof InputfieldSubmit) { // find the submit button $form->insertAfter($f, $field); // insert the InputfieldMarkup after the button } } $event->return = $form; });