Jump to content

formmailer

Members
  • Posts

    319
  • Joined

  • Last visited

  • Days Won

    1

formmailer last won the day on February 13 2012

formmailer had the most liked content!

About formmailer

  • Birthday 06/01/1976

Contact Methods

  • Website URL
    http://www.zwedenweb.com

Profile Information

  • Gender
    Male
  • Location
    Sundsvall, Sweden (but originally from The Netherlands)

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

formmailer's Achievements

Sr. Member

Sr. Member (5/6)

69

Reputation

1

Community Answers

  1. Hi, I noticed that started to get some spam comments on my site from IPv6 adresses, but unfortunately I cannot easily see from which addresses since IPv6 addresses get logged as 0.0.0.0. I found there is an (rather old) issue regarding this on Github: https://github.com/ryancramerdesign/ProcessWire/issues/1596 Is a fix regarding this on the roadmap? I would prefer not to use $_SERVER['REMOTE_ADDR'] or something similar. Thanks in advance! //Jasper
  2. Hi @Arcturus and @Jozsef, Did you find a solution for this issue? I am running 3.0.84 and am having the same problem. //Jasper
  3. And another small issue, after submitting a comment, the "waiting for approval message" shows, but even the form. Shouldn't the form be hidden when the GET variable "comment_success" is present? //Jasper
  4. Hi! I tried to enable mail notification for users (guests), enabled "Allow commenter e-mail notifications": The option shows up on the page: But no e-mails are being sent. Is there something else I need to do? Other mail notifications, like the admin notification for comments, are working just fine, so it's not a general e-mail issue. Any help is appreciated. //Jasper
  5. I managed to build the whole site without using Jquery, for speed optimization, so unfortunately the Jquery option is no alternative. I will go for the copy solution. Thank you for your help!
  6. Hi! Yes, I thought about doing that, but I was hoping there was a shortcut to this. A risk (even if it's a minimal one) is that future core updates could break the module. I was hoping there would be a way to change classes without modifying the module. But if this isn't possible I'll go with the copied & modified module. //Jasper
  7. Hi, I am trying to style the comments form (and comments list) to match the rest of the site. I know that it's possible to edit the CSS file for the comments module, but I would rather add my existing classes to the fields, instead of making another css file containing the same CSS styling. I use the following to render the form: $page->comments->renderForm(); Is there an easy way to add the CSS classed to the fields? //Jasper
  8. For some reason the count() always return one image less than the actual number of pictures. If the page has 3 images with the correct tag, the count is 2. Strange but it seems to be that way....
  9. Thanks again! For some reason this is not working. But this is: $page->randomIndex; if (--$page->randomIndex >= -1) { I am not sure why this is working but it is.
  10. One more (final) question. Is there an easy way to make this work for pages with only one image? That would allow me to use the same hanna tag on every page, not only on the ones that have more than one image. //Jasper
  11. Thank you guys so much, this solved my problem! Good trick about the "seed attribute", @Robin S. //Jasper
  12. Thanks again. Unfortunately my plan is not going to work, because the Hanna Code generates the same result if the Hanna tag is added multiple times. I validated this by making a Hanna code snippet with the following: echo(mt_rand(10,100)); I added the Hanna tag 3 times and the result was 3 times the same integer. //Jasper
  13. Thanks Abdus! Using: $a = $page->images->findTag('inline-body')->getRandom(2); Would be even easier. Problem is that the template doesn't specify location of the images defined. These are inserted in the body text field using Hanna Code. That makes the above a bit harder to apply. My own idea was to create a code snippet in Hanna that could be re-used as many times as needed. If I can check if the array $a exists and only create a new one if it doesn't, it should be possible to do so. I know that it is not the fastest code, but since all the pages are being cached by ProCache I am not worried about this process taking an extra second or two. /Jasper
  14. Hi! I use the following to display a random image on a page: $image = $page->images->findTag('inline-body')->getRandom(); This works of course really fine, but on some pages I want to use 2 or more random images. The images have to be on different places and the same image shouldn't be displayed twice. I assume that I have to something like: $a = $page->images->findTag('inline-body'); $image = $a->getRandom(); echo "<img src='$image->url'>"; $a->remove($image); and with later in the template, for the next image, I'll just do: $image = $a->getRandom(); echo "<img src='$image->url'>"; $a->remove($image); Would this make sense? Or is there a better way? //Jasper
  15. I just solved it using Bernhard's tips, so I didn't try this one. But looking at it quickly, I don't think it would solve the whole problem, since the pages parents are still hidden. But thank you for your reply, It's very much appreciated. /Jasper
×
×
  • Create New...