Jump to content

Christophe

Members
  • Posts

    688
  • Joined

  • Last visited

Everything posted by Christophe

  1. Hi, And thank you for your help. I'll look at your message closely again. I'm just starting to use PHP a bit more with Processwire, and I just deduce/"hack"/tweak some things whenever I can. I didn't change the form a lot. I had tried 'email' but it hadn't changed anything, if I remember well. Perhaps I have to do it for every "input". I added the spaces because of the following ":". In French, a space is also needed before it. (Also, perhaps I should put a special character for the "é" of "Prénom".) On the other website, not using Hanna Code but a template, I hadn't noticed this problem. Also I don't remember receiving twice the message* at the same gmail account used for testing purposes. (For another case, perhaps I'll need to have a real "Subject", or "Formulaire de contact" : a real "Subject", instead of just "Formulaire de contact".) I'd like to have the real "From" and not "Unknown sender", if possible. In gmail, it's a bit like this*:
  2. Hi, My post has nothing to do with German (de-DE), but I've just found this from Ryan on page 3: Is this error message translatable elsewhere now? I've found the following commented code from wire/config.php and have uncommented it after copying it to site/config.php: /*** 9. MISC ************************************************************************************/ /** * Settings specific to InputfieldWrapper class * * Setting useDependencies to false may enable to use depencencies in some places where * they aren't currently supported, like files/images and repeaters. Note that setting it * to false only disables it server-side. The javascript dependencies work either way. * * Uncomment and paste into /site/config.php if you want to use this * */ $config->InputfieldWrapper = array( 'useDependencies' => true, 'requiredLabel' => 'Valeur requise manquante', ); I've changed the value, but it doesn't seem to work. Perhaps it's not meant to be used for what I want: translating the value for the site on which I'm testing the Blue VR Site Profile. The (default) contact form uses FormTemplateProcessor.module. Thank you in advance
  3. @Mont Hello, In Firebug, the rule is: body { background: url("images/bg.gif") repeat scroll 0 0 #e4ebee; } In the css file, it's different. Wouldn't it be "better" to precise repeat-x? Otherwise, it can also repeat itself on several lines under the footer.
  4. I'm a beginner at PHP5, but I wonder if naming the file(s) header.inc.php (footer.inc.php) or _header.php (_footer.php) wouldn't have resolved the problem. And/or (just) adding this at the beginning (like in the site-classic profile for example) - with or without comments - (for the footer it may be different): <?php /** * Demo site header include file (HTML5) * * Note that this file has nothing to do with ProcessWire. We just split our common * header and footer markup into separate files (head.inc and foot.inc) like this, * since it was common to all of our templates. * */ ?>
  5. Hi, I've arrived again on this topic. The link here doesn't seem to be valid anymore: "The topic discussing the migrator is roughly here: https://processwire....migrator/page-6". This link appears 3 times. I've just sent the link to this topic to someone I've been trying to convince, from time to time, to migrate to Processwire. He uses WordPress, but also CakePHP at his work.
  6. Hello, I'm not sure it's the right place to post this topic. I've just converted a Joomla! 1.5 website to Processwire 2.5.3. I didn't want to do some training for Joomla! for someone for whom I had made it years ago and who hasn't really edited/managed it since then. As I'm going to start some training tomorrow, I wanted to use Processwire. I have used a basic form based on some code found in an old topic of this forum on 1-2 websites already. They use the "Direct Output with Includes" approach. But for this one that I've put online today, I'm using the default intermediate profile as a base. (For another website in development, the multilingual profile is used.) So I've tried to insert the form in several ways in a Contact page, but due to the "Delayed output" approach it's more difficult than with the other approach. So I've finally installed the Hanna Code module that I'm using for the first time. I had to uninstall it once as I had a "Hello World" text appearing on the bottom of each page. I wasn't sure why, but apparently installing the Hanna Code module also installed the Hello World module and made this text appear. So, to come back to the reason I'm posting this, I have a hanna code named "contact_form" (that is inserted in the sidebar textarea editor of a Contact page - not sure for the moment if I'm going to use the basic-page template or the contact (contact.php) one): <?php /** * Example of a simple contact form in ProcessWire * */ // set this to the email address you want to send to (or pull from a PW field) $emailTo = 'whatever@gmail.com'; // or if not set, we'll just email the default superuser if(empty($emailTo)) $emailTo = $users->get($config->superUserPageID)->email; // set and sanitize our form field values $form = array( 'Nom complet ' => $sanitizer->text($input->post->fullname), 'E-mail ' => $sanitizer->email($input->post->email), 'Message ' => $sanitizer->textarea($input->post->comments), ); // initialize runtime vars $sent = false; $error = ''; // check if the form was submitted if($input->post->submit) { // determine if any fields were ommitted or didn't validate foreach($form as $key => $value) { if(empty($value)) $error = "<h3 class='error'>Veuillez vérifier que vous avez complété tous les champs.</h3>"; } // if no errors, email the form results if(!$error) { $subject = "Formulaire de contact"; $message = ''; foreach($form as $key => $value) $message .= "$key: $value\n"; mail($emailTo, $subject, $message, "From: $form[email]"); $sent = true; } } if($sent) { echo "<h3>Merci, votre message a été envoyé.</h3>"; // or pull from a PW field } else { // encode values for placement in markup foreach($form as $key => $value) { $form[$key] = htmlentities($value, ENT_QUOTES, "UTF-8"); } // output the form echo <<< _OUT $error <form action="./" method="post"> <p> <label for="fullname">Vos Prénom et Nom</label><br /> <input type="text" id="fullname" name="fullname" size="46" value="$form[fullname]" /> </p> <p> <label for="email">Votre e-mail</label><br /> <input type="email" name="email" id="email" size="46" value="$form[email]" /> </p> <p> <label for="comments">Message</label><br /> <textarea id="comments" name="comments" rows="5" cols="60">$form[comments]</textarea> </p> <p><input type="submit" name="submit" value="Envoyer" /></p> </form> _OUT; } (I also tried with a small php code with "include" in it and the previous code in a php file. I don't remember if it worked at least the same. Perhaps it was better for security reasons (?).) So, I have several questions/issues . # Is this form still "secure" with Processwire 2.5.3? And enough "secure" inserted from a Hanna code? # In the "Code" tab of the hanna code, I'm having an error message when hovering the cross next to line 38 : mail($emailTo, $subject, $message, "From: $form[email]"); The message is: "syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING". I've tried some things but it hasn't made the cross disappear. # Also, in the "Test Results" tab I have this: Notice: Undefined index: fullname in /home/cyberbodw/www/site/assets/cache/HannaCode/contact_form.php on line 62 Notice: Undefined index: email in /home/cyberbodw/www/site/assets/cache/HannaCode/contact_form.php on line 67 Notice: Undefined index: comments in /home/cyberbodw/www/site/assets/cache/HannaCode/contact_form.php on line 72 # The email message is well received but seems to be received 2 times in an interval of a few seconds. # The sender's email address doesn't appear in the "From" field (but it does appear in the message itself). Something like "(Unknown sender)" is written instead. (Perhaps related to the line of code next to the cross.) If it's not possible to have the sender's email address, is it possible to have something like "Contact form" in the "From" field, and how? (It's what appears in the "Subject" field currently.) # There is this: // set this to the email address you want to send to (or pull from a PW field) $emailTo = 'whatever@gmail.com'; // or if not set, we'll just email the default superuser if(empty($emailTo)) $emailTo = $users->get($config->superUserPageID)->email; How can I pull it from a second user (only view and edit rights for the moment) that is not the superuser? From a PW Field, and how? Is there a "superUserPageID" "equivalent" for the second user? Is "superUserPageID" used directly (it seems) or does it have to be replaced by the real ID? Can we find the second user('s) page ID, and, if yes, how? # Perhaps I'm forgetting one... NB: I know why I don't write often , it takes me too much time. I wonder how much time it takes (in general of course and more or less) for other people for average to large posts. Thank you in advance
  7. Updates: a "Forever Free Plan" and affordable "Small Business Plans" now -> www.mailerlite.com/pricing And tinyletter.com and sendy.co
  8. Hello, To complete adrian's link : http://www.git-scm.com/downloads/guis Linux, Mac, Windows Edit: I'm perhaps going to try "How to Use Git and GitHub - Version Control for Code" -> https://www.udacity.com/course/ud775 (If I need private code repositories, I'll perhaps use Bitbucket.)
  9. Hello, Not sure I understand what you want. I'm a php beginner but, you could perhaps use an if/else statement(s) (if your <title></title> code is in a separate head/header .php or .inc file) in order to only display "about" - statically or dynamically -when the "about" page is accessed (different template or not (*)). I often use three fields instead of only two: "third_field|headline|title". The third field being for the browser's Page Title. Perhaps (haven't tried yet if I remember well) you could create a (page?) field that contains and adds "Marinus de Beer - Spatial Design" dynamically on all pages but "about" (different template - in the Admin - that doesn't have this field (*) and/or different template file...). Just some "ideas".
  10. I saw this topic yesterday but pwired was quicker . I often use XCloner Standalone as Akeeba Solos didn't already exist at the moment I had to choose for a standalone version, between Akeeba Backup standalone and XCloner standalone. (I usually have to adjust some "paths" and after that it works well.) You can exclude chosen directories and files from the backup, and also "Store you backups on the Amazon S3 cloud", for example. I don't know if Akeeba Solos (which seems to be the new name for the standalone version) can exclude directories and files...
  11. Hello, I was going to post this monday when the forum took a rest : You're "talking" in euros or in pounds ? So, the BenQ BL3200PT won't fit in the middle... I couldn't decide on choosing one so I've just taken this one. It's the first time I really invest in a good (and - very - big) monitor. Now I need to find projects. I have to reorganize my desk and change from laptop to desktop for my main computer to use it with a DVI-D Dual Link cable (with a DVI-I Dual Link connector). On my laptop I have hdmi <= 1.4 (so "only" a maximum resolution of 1920x1080 - and it seems neat enough only on GNU/Linux). You can find it sometimes for around 550 euros. There are also BenQ 27 inches monitor like BL2710PT (or BL2700HT) for example. Or good asus or other brand monitors, depending on several factors and what you want from a monitor, of course.
  12. Hello, @Joss: what's more or less your maximum budget for the monitor? Do you have DisplayPort or Thunderbolt? Edit: Or DVI-D/I Dual Link? Windows and/or Mac OS X (surely?) and/or GNU/Linux? (USB 2 and/or USB 3?)
  13. Hello, Time passes so quickly... I've just looked a little at Foundation and guess I should learn SASS/SCSS (later). I'll later have to decide which solutions [ https://processwire.com/blog/posts/making-efficient-use-of-fields-in-processwire/ ] are best suited if/when I start the project. Thanks. I'll come back.
  14. Not sure for the moment if I'm going to start from scratch with the blank profile, from gebeer's profile and try to update it, or from ryan's Foundation 4 profile and try to update it the best I can.
  15. Pootle had been mentioned earlier this year (see page 1).
  16. @totoff: yes, I was thinking about this one (and others), but was wondering which processwire profile version to use (there are at least 3 if I'm not mistaken). And also if it was better (or not) to "catch" the latest stable version and "convert" it to Processwire. @Joss: I've already read your tutorial. I'll look at it again and see how I manage to do the "conversion". For the moment, I've only done one with HTML Kit, with a little help from its author at the very beginning.
  17. @jtherczeg: (if the PW translation project on Transifex is obsolete it should be deactivated, shouldn't it?) I had seen quickly the Language Translation tool, but it didn't seem very convenient. I'll take a look at it again. The French language pack for PW 2.2 seemed to old for me to start from. @Manfred62: I had read the thread you're mentioning, and written in it, as you may have already seen. Perhaps because I haven't really had the opportunity to try it and also the internal translation tool, I had/have the impression that it is easier to start from an existing language pack (Spanish, German...) than from an empty one. Surely, in part, because in empty files it seems "complicated" to (know how to) modify the files from a text editor.
  18. Hello, I would like to have some advice on which css framework, profile, and/or modules to use in order to create a similar website: http://www.espacepolygone.com/ Particularly to create functionalities seen at http://www.espacepolygone.com/aep-2100.php and at http://www.espacepolygone.com/entreprise/743/abc-de-lauto/ Not everything is good on this website but I'd like to learn to create some of its functionalities. Thanks in advance.
  19. Hello, I've just been wondering what the French language pack (and other language packs) - at https://www.transifex.com/projects/p/processwire/ - is compatible with. With which version(s) of Processwire is it (fully) compatible? And "how" to (easily) follow with language updates as there are more and more frequent updates to the core? (Are the transifex versions Processwire 2.5.x (compatible) versions?) Thanks in advance. Have a nice week! NB: if not, I guess I'll have to translate from Spanish - haven't practiced for a long time -, or learn German as it's language pack is more up to date (as there is no English/American/native language pack in order to have a "better" translation).
  20. Hello, I've just gone to http://pierre-diagnostic.fr/, it doesn't stop loading... (Firefox 32.0 - Linux Mint) It could be because of http://pierre-diagnostic.fr:3000/browser-sync/browser-sync-client.1.5.7.js (Firebug).
  21. Christophe

    Muesli Café

    Hello diogo , I've just noticed several things, I don't know if it's on purpose. And if it's just the GNU/Linux versions. When using Firefox 32.0 and Chromium 37 (LinuxMint) - I'll also check on Windows 7 later -, each time I hover the EN (or PT) link the font changes. The same occurs with the top-left menu links. Is it also "normal" that when scrolling down the homepage, for example, the 4 menu links "merge"? It seems to be because of: .collapsed #menu li:nth-child(n+2) { margin-top: -0.97em; } When hovering the "merged" links, they become 4 separated links again. Perhaps the menu links could just become smaller when "Ajude-nos a abrir um novo espaço de pequeno-almoço no Porto. Só temos 86 dias." becomes smaller. Just an idea (but perhaps it's an artistic choice ). In Chromium, the "active" top-left menu link becomes bold, but not in Firefox. Nice pictures!
  22. Why not a (comic) book like http://mislav.uniqpath.com/poignant-guide/ or http://natecooper.co/2014/08/build-your-own-website-a-comic-guide-to-html-css-and-wordpress/ - just found this latter one yesterday - (or a manga-style book) for example ? Just an idea.
  23. I'm not the first one to reply . If it was by (S)FTP, I would have thought about the fact that some recommend to specify binary transfer for archives like .zip files in order to avoid file corruption (?). Could it have something to do with permissions? Have you tried http://www.xcloner.com? Of course, rsync and other (more or less) similar tools are convenient.
  24. Perhaps there's a better place to post this. Feel free to move it. I'm learning Python for Informatics currently. There are also some videos. I've just found this, from the same source, that could be interesting for php beginners: http://www.youtube.com/playlist?list=PLlRFEj9H3Oj5F-GFxG-rKzORVAu3jestu Starting from "PHP-Intro Chapter 3 - Overview", I suppose. http://www.php-intro.com/ I'll surely look at least at the videos .
×
×
  • Create New...