Jump to content

flydev

Members
  • Posts

    1,360
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. Please show us more details about the error.
  2. Foundation 6 Minimal site profile for ProcessWire This profile is based on the "minimal site profile (intermediate edition)" and bundled with Foundation 6. This precompiled version can be downloaded at github. Features Foundation 6 framework Font-Awesome MeanMenu Slick Carousel (Why not Orbit ?) Render / helper functions for : Simple ul navigation Foundation Multi-level topbar MeanMenu - Responsive menu for mobile device Slick Carousel Foundation Accordion Foundation Callouts Jumbotron Dependencies jQuery How To Install Download the zip file at Github or clone directly the repo with git clone and skip the step 2. Extract the folder site-fdn6-precompiled into a fresh ProcessWire installation root folder. During the installation of ProcessWire, choose the profile "ProcessWire Foundation 6 profile". References Foundation 6 documentation ProcessWire documentation MeanMenu documentation Slick Carousel Documentation Credits The ProcessWire staff Screenshots
  3. just remove the namespace. The code should be : <?php include_once ('./index.php'); // bootstrap try { $mail = wireMail(); $mail->to('someone@domain.com'); $mail->from('root@mydomain.com', 'My Company'); $mail->subject('My subject'); $mail->bodyHTML('My message body'); $mail->send(); } catch(Exception $ex) { echo $ex->getMessage(); } Does it work ?
  4. Could you tell us which version of ProcessWire you are using please ?
  5. Hi, You could do something like that, assuming you are on PW-3. Create a file called testwiremail.php in the root directory and add the following code : <?php namespace ProcessWire; include_once ('./index.php'); // bootstrap try { $mail = wireMail(); $mail->to('someone@domain.com'); $mail->from('root@mydomain.com', 'My Company'); $mail->subject('My subject'); $mail->bodyHTML('My message body'); $mail->send(); } catch(\Exception $ex) { echo $ex->getMessage(); } Now you can navigate to http://mydomain.com/testwiremail.php
  6. For reference there is a nice blog post about it : https://processwire.com/blog/posts/front-end-editing-now-in-processwire-3.0-alpha-4/
  7. You might use a simple code which check the HTTP_ACCEPT_LANGUAGE server variable like the following snippet : <?php $userLocale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']); switch ($userLocale){ case "de": // deusth $session->redirect("http://de.mydomain.com"); break; case "en": // english $session->redirect("http://en.mydomain.com"); break; case "fr": // french $session->redirect("http://fr.mydomain.com"); break; default: // default locale/page : english $session->redirect("http://en.mydomain.com"); break; }
  8. You should use clearAddresses() before sending the second email : [...] if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!<br>Sending an email to the submitted email from user...<br>"; // clear addresses $mail->clearAddresses(); //Set who the message is to be sent to $mail->addAddress($field3, 'Bob'); $mail->Subject = 'Thanks for contacting us | sent once'; $mail->Body .= "Thanks for contacting us at our Site."; // send email $mail->send(); } This should do the work.
  9. So we could build some profiles based on a supported frameworks - ie: uiKit here - bundled with the module and play with it directly from PW ? oh and WOW !
  10. On the Firefox troubleshooting page, they say that if the problem only occure on certain website, it can be a problem with the firefox's cache. Did you try to clear cache and cookies ?
  11. Hi sekru, Do you have the possibility to test - maybe on a local dev server - another version of PHP ? I try to reproduce your issue without success. The repeater with an image field inside work as expected on PW-3.0.22 / PHP 5.5. I will try later on a PHP-7 version as I dont have any dev server at this moment..
  12. On mobile device a typo exist just above the avatar, or is normal ? it's a bit troubling. Note the 1 dy - instead of 1 day (?)
  13. I would like to say that it depend on the SSL certificate issuer and the type of certificate you buy from. For example, if you buy a Wildcard security certificate (which can be more expensive too), it will extend security to multiple subdomains based on your main domain name. In your case, for a wildcard certificate, the common name (CN field in the CSR) will be *.example.com and will be valid for "www.example.com" and "example.com", "shop.example.com", "secure.example.com" and so on. If you want some examples for server configuration, please let us know which type of server you are running on. Also, you can start playing with certificate and configuration using a free certificate from StartSSL.
  14. A non constructive answer here but just my opinion. I LIKE THE NEW FORUM - thanks for the good work !
  15. Thanks you for trying this profile. I just pushed an update to the css for the responsive menu. Just remove the following code in main.css.
  16. You are right. I thought while I was writting .
  17. What about making a new PHPMailer object in the success statement block and send a new email with the informations the user has submited ? Example: [...] else { echo 'Message has been sent.'; // create a new PHPMailer object $mail = new PHPMailer(); $mail->From = "email@domain.com"; $mail->FromName = "Contact"; // add the address user $mail->AddAddress($field3); $mail->Subject = "Thanks for contacting us"; $mail->Body = "Thanks for contacting us at our Site." $mail->send(); } For information, there is a new PHPMailer module available and also WireMailSmtp.
  18. I made a precompiled edition, here you go : https://github.com/flydev-fr/site-pwbs4/archive/precompiled.zip The installation process is the same, but no command-line or external tools required.
  19. Hello, Have you followed the step 4 ? After you uploaded the files, you have to modifiy your code manualy for each file's reference (css / js / font) in your templates. If you dont have any templates then you should at least create one and use it for every page (I mean the basic-page template for example found in the default installation) then create the pages tree. --- I think you should watch this video made by Philipp:
  20. In the current state of the profile, Bootstrap is already precompiled in css/styles.css; You can also find in the folder css a file called main.css where you can override all values and use it as pure css - without the need of using sass and associated tools - but at this point you still need Bower. Bower is used to manage assets like font-awesome and a dependency like tether in our case. With this tool we can manage libs easily and we can avoid repeating tasks. It is really easy to install and do not require any knowledge for the task we accomplish here. If you want to get started with, check the following instructions : goto https://nodejs.org/ , download / install NodeJS install Git (if you're on Windows, be sure to check Run Git from command-prompt) open a terminal and type npm install -g bower done. You can now execute the bower install command-line. Anyway, if its really required, I can make tonight a profile with precompiled files so you can test it this week-end . Just let me know.
  21. @pwired : I will send an email to @kongondo about processwireshop.pw! Thanks for suggesting that. ---- A small trick to make the navbar/dropdown working on mouseover instead of click event: In js/script.js add : $(document).ready(function(){ $('ul.nav li.dropdown').hover(function() { $(this).find('.dropdown-menu').first().stop(true, true).delay(200).fadeIn(200); }, function() { $(this).find('.dropdown-menu').first().stop(true, true).delay(200).fadeOut(200); }); });
  22. It is currently only compatible with the devns branch. Give me some minutes to make backward compatibilty . It is now compatible with ProcessWire-2.7.
  23. Bootstrap-4 Minimal site profile for ProcessWire This profile is based on the "minimal site profile (intermediate edition)" and bundled with Boostrap v4.4.1 Features Bootstrap SASS Font-Awesome SASS Render / helper functions for : Simple ul navigation Bootstrap Multi-level navbar Bootstrap Carousel Bootstrap Cards Bootstrap Jumbotron Boostrap Accordion Assets minification, files bundle Dependencies jQuery Popper.js Bootstrap FontAwesome Prequisites You'll want to install the following on your system before proceeding: Yarn / NPM How To Install Download the zip file at Github or clone directly the repo with git clone and skip the step 2. Extract the folder site-pwbs4-master into a fresh ProcessWire installation root folder. During the installation of ProcessWire, choose the profile "ProcessWire Bootstrap 4 profile". After installation You can find the development file (CSS/SCSS/JS) in site/assets/dev/src The profile can be used as is only with $config->debug set to false. To use it in debug mode, you are required to install the dependencies with the package manager. Open a terminal in site/assets/dev and execute the following command-line: yarn Available commands : Rebuild, minify and bundle assets for release : yarn build References Bootstrap v4 documentation ProcessWire documentation ProcessWire Forum: bootstrap tag ProcessWire Forum: bootstrap related posts Credits The ProcessWire staff Inspiration from @gebeer and his Bootstrap 3 profile post Members who contributed in various post about Bootstrap navigation and code (see code-source for refs). Screenshots
  24. It is a good question. In a good world you can use the dir="rtl" on a HTML element [click for more info]. But, to have it on the PW backend... --- A temporary and poor "solution" would be to add dir="rtl" to the HTML tag of the theme you are using on the backend, resulting in a page with full RTL direction. <!DOCTYPE html> <html dir="rtl" lang="ar"> <head> <meta charset="utf-8"> ... I tested it on the RenoAdminTheme, its a pain, as the css is not set to be RTL but it work on Textfield & co. Feel free to test it on other themes if it fit your needs - until we get better answer . @Tom : which backend theme are you using ?
  25. Download the CKeditor plugin there : http://ckeditor.com/addon/bidi Extract the BiDi folder into your /site/modules/InputfieldCKEditor/plugins/ Enable Plugin in Fieldsettings of the TextareaField under the Input Tab -> Plugins (checkbox) In CKEditor Settings -> CKEditor Toolbar, add this line : BidiLtr, BidiRtl, Language Now you have three new buttons refs: http://ckeditor.com/addon/bidi https://processwire.com/talk/topic/13468-colors-in-ckeditor/?p=121563
×
×
  • Create New...