Jump to content

Joss

PW-Moderators
  • Posts

    2,862
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Joss

  1. okay, still nothing arrived. Knowing my luck, the entire lot of tests will all arrive at christmas....
  2. Er ... where is that? By the way, I don't use email on the host, they are all google apps ones
  3. Nope Oh, I have set the send address to something different to the domain.
  4. Hi Horst Tried your modification and it returned: return from mail() is: bool(true) DebugExit in file /xxxxxxxxxxxxxx/site/assets/cache/HannaCode/contactshort.php at line: 35
  5. The problem with the SMTP approach was that Google starting sending me mails saying someone was trying to hack my account....
  6. Joss

    Dancing Bear Music

    okay, erm... how do I do that? The bit of codey-wodey I added to my script is: $('html, body').animate({ scrollTop: ($playerdiv.offset().top) },500);
  7. Joss

    Dancing Bear Music

    Okay, I have turned the logo into a background. I have messed with the jquery for opening the player too - it now scrolls to the open player so you know what is going on. I still cant get the contact form to work. I have no idea what is going on there at all. So for the moment, I have removed it.
  8. HI Teppo I am struggling to send mail from my new site - worked fine on my local dev server, but not on the production server. I have installed your module to try and see if that helps. But when I try and send a test mail (any transport method) it says A test message was just sent to 0 recipients Any thoughts?
  9. Joss

    Dancing Bear Music

    I need to change the size depending on the viewport
  10. Joss

    Dancing Bear Music

    I think I need to change the way the mouth works. Currently it uses the foundation interchange script and that might be causing the delay. It wasn't a problem on my little local box.
  11. I have just tried the SwiftMailer module - when I try to send the test message is says "A Test message was sent to 0 recipients." That is not encouraging.
  12. @Davo The site is parked on a commercial host - how would I do that?
  13. Hi Martijn It worked fine on my local ubunto/webmin box. It is not working on the professional shared production server. Hi Adrian Yes, I installed horsts smpt, but I am not sure I set it up properly - as in, what should I change on the code?
  14. This is the second site for my music production company using ProcessWire - the first was over a year and a half ago. http://dancingbear.co.uk Very simple site incorporating a version of jplayer - the player is loaded via ajax and is actually incorporated into the page using Hanna Code. Site runs with ProCache and cloudflare. It is not the most awe inspiring site out, but then, audio is not known for having a lot of pictures associated with it! The logo is based on one that a friend drew for me 20 years ago. I have decided to reuse it and redraw it. Slight issue in that the contact form that worked fine on my development server but I am not getting any mails from the production server. I have opened that up as an issue at: https://processwire.com/talk/topic/7685-not-receiving-mail-from-form/ NOTE: I have turned off procache for the moment while I check on a couple of issues. Back on now, as is cloudflare ... is that overkill? Edit - note for anyone using cloudflare (who are very good, mostly). They are not appropriate for streaming audio or video sites. Their advice is to create a subdomain and to put audio files in there, then make sure that subdomain is NOT being cached by cloudflare. Or you can put it on a CDN somewhere. That way the main domain is properly served by cloudflare while the media is brought in from elsewhere.
  15. I have a built in, well versed loathing for contact forms! Okay, did this little contact form which I include via hanna code. This is not my code. On the dev server it worked fine. On the production server, it seems to work (as far as I know) but I am not receiving mail. I have tried setting up spf records. I have changed the destination email address to something different (different domain) but that still doesn't work. I have messed a little bit with wiremail and smtp, but I am not sure what I am doing. At the moment it is back to mail() Not throwing any errors. Anyone got any bright ideas? Here is the basic code: $sent = false; $error = ''; $emailTo = $pages->get("/settings/")->contact_email; // or pull from PW page field // sanitize form values or create empty $form = array( 'fullname' => $sanitizer->text($input->post->fullname), 'email' => $sanitizer->email($input->post->email), 'phone' => $sanitizer->text($input->post->phone), 'comments' => $sanitizer->textarea($input->post->comments), ); // 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 = "<p class='error'>Please check that you have completed all fields.</p>"; } if($input->post->my_message) { $error = "Sorry, there has been a problem"; } // if no errors, email the form results if(!$error) { $msg = "Full name: $form[fullname]\n" . "Email: $form[email]\n" . "Phone: $form[phone]\n" . "Comments: $form[comments]"; mail($emailTo, "Contact Form", $msg, "From: $form[email]"); // populate body with success message, or pull it from another PW field echo "<h2>Thank you, your message has been sent.</h2>"; $sent = true; } } if(!$sent) { // sanitize values for placement in markup foreach($form as $key => $value) { $form[$key] = htmlentities($value, ENT_QUOTES, "UTF-8"); } // append form to body copy echo <<< _OUT $error <form action="./" method="post" class="shortform"> <div class="row"> <div class="columns"> All Fields Required </div> <div class="columns"> <label for="fullname">Your Name <input placeholder="Your Name" type="text" id="fullname" name="fullname" value="$form[fullname]" /> </label> </div> </div> <div class="row"> <div class="columns"> <label for="email">Your Email <input placeholder="Email" type="email" name="email" id="email" value="$form[email]" /> </label> </div> </div> <div class="row"> <div class="columns"> <label for="phone">Your Phone <input placeholder="Phone" type="text" name="phone" id="phone" value="$form[phone]" /> </label> </div> </div> <div class="row"> <div class="columns"> <label for="comments">Comments <textarea placeholder="Comments" id="comments" name="comments">$form[comments]</textarea> </label> </div> </div> <div class="row"> <div class="columns"> <input class="button small large-12" type="submit" name="submit" value="Submit" /> </div> </div> </form> _OUT; }
  16. Hi Dupalski Take a look at this: http://wiki.processwire.com/index.php/Basic_Website_Tutorial It is a little out of date, but work through it and you will learn all you need. Ignore index,php - Everything you need to do is in /site/templates - just think of that as the root of your site. For instance, the home.php file is the template for the home page. Do this as an experiment. Make sure in your admin you have the "home" page and it is using the "home" template. It is there by default. Open your home.php file and delete EVERYTHING. Now type: "This is the home file" Go to the front end of you website = mywebsite.com It will display This is the home file - with no mark up obviously! Now, edit the file again and add below the line: <?php echo $page->title; ?> Reload the page and it will now display This is the home file Home It has added the title of the home page. Now, go and add proper html mark up - <html>, <head> and the rest. In the body put: <h1><?php echo $page->title; ?></h1> Reload and you will have a proper web page with the title as H1. And that is how ProcessWire works! As you add more fields to the template in the admin, so add them to your template file. For instance: <?php echo $page->body; ?> As for includes - there are various tactics for including other info. The most obvious one is splitting up the head, body and foot of the site as these tend to be common to all pages. But there are loads of different ways of doing this - ProcessWire has no set way, it is up to you how to do it. The only thing that is mandatory is that it MUST be in the templates folder and normally home.php would be your root template. To be honest, there is no reason to change that.
  17. er, silly thought. If the field is set to 1 file allowed, then it will replace one file with another, whatever that is. The file overwrite is more about where you have a multi file upload and have a clash of names, I think..... Of course, it is late and I have just been finishing a site off so I might be talking buzzcocks....
  18. You have my email
  19. The trouble is that most people do not use and therefore do not know many keyboard shortcuts - so they will happily paste away without working it out. I didn't know that one myself. On another point: I have been trying to disable SCAYT so I can use the browser spell checker instead - I am finding SCAYT less than helpful and the occasional adverts annoying. I have enabled the native spell checker using: config.disableNativeSpellChecker = false; But I am having trouble with the context menu - It doesn't want to turn off using the checkbox on the field input tab. There is a workaround in that if you press CTRL while right clicking it disables the context menu, but it would be a lot nicer to just have it disabled by default. Any thoughts?
  20. Joss

    Hanna Code

    Arf'noon Teppo! Yes, I know there is a way around it on CKEditor, but it struck me that having a catch-all on the Hanna Code is possibly not a bad idea. It's one of those things that could mess a client up if they don't know all the ins and outs.
  21. Joss

    Hanna Code

    Another little Hanna issue: In CKEditor if you delete a space (like with backspace) and then press the space bar to put it back in, or anything similar, CKeditor inserts a So, if on a hanna code you have something like this: [[col class="medium-4 myclass"]] When you first type it, it is fine, but if you edit it, the source becomes: [[col class="medium-4 myclass"]] And the code breaks. Ryan, can you add a check in the hanna module so that it looks for and replaces is with a blank " "?
  22. Really nice site!
  23. I have had an interesting clash between Hanna Code and CKEditor. Although they do play nicely, by default, CKEditor takes on board any formatting from anything you paste. This can make a right plate of hash out of your carefully crafted hanna codes! However, there is a nice little paste as text plugin that is worth using http://ckeditor.com/addon/pastetext You can set it up so that it always removes all formatting on paste, and so save all kinds of client (or even dev) generated headaches!
  24. I use armed Jesuit Priests for all my invoicing. Payment is never late.....
  25. Okay, I really, really like that analogy! It should be used in PW marketing ...
×
×
  • Create New...