Jump to content

flo

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by flo

  1. Fantastic! That seems to work. Thank you very much for the quick fix.
  2. Great module you built here Roope. I just found one issue with it, it detects email addresses in some links. For example google maps links like this: https://www.google.ch/maps/place/Fondation+gad+Stiftung/@47.1215667,7.2779266,18z/data=!4m2!3m1!1s0x0000000000000000:0xeaf2e4dfe02713bb?hl=en Here's the debug data from that page: <!-- EMO DEBUG DATA Email crypting took 0,0014450550079346 seconds Found 3 matches: 1[0] = <a href="mailto:info@gad.ch">info@gad.ch</a> 1[1] = info@gad.ch 1[2] = info@gad.ch Hash: "MaT6r2Kwq+INJ5LhlmNOlFYgljJ6UeiO0C9HlFYgledc45O805NP02YGX5zyJCAgl50cSa3w0jACUBfcro1P" Data: <a class="emo_email" href="mailto:info@gad.ch">info@gad.ch</a> 2[0] = info@example.com 2[1] = info@example.com 2[2] = info@example.com Hash: "MaT6r2Kwq+INJ5LhlmNOlFYgljJ6UeiO0C9HlFYgledc45O805NP0vwwlv.70ZACl29HM5O805NP0vwwlv.70ZACl29DX2Tp" Data: <a class="emo_email" href="mailto:info@example.com">info@example.com</a> 3[0] = //www.google.ch/maps/place/Fondation+gad+Stiftung/@47.1215667 3[1] = //www.google.ch/maps/place/Fondation+gad+Stiftung/@47.1215667 3[2] = //www.google.ch/maps/place/Fondation+gad+Stiftung/@47.1215667 Hash: "MaT6r2Kwq+INJ5LhlmNOlFYgljJ6UeiO0C9HlFYgledc4HDc3+3+X53cl2370ZACUjNhrv.xX+.7rFzOX90cl5dw3aOclHhQrFSkt+dg0Qdml5qcSBS+XCTuIot2zCqHMHDc3+3+X53cl2370ZACUjNhrv.xX+.7rFzOX90cl5dw3aOclHhQrFSkt+dg0Qdml5qcSBS+XCTuIot2zCqDX2Tp" Data: <a class="emo_email" href="mailto://www.google.ch/maps/place/Fondation+gad+Stiftung/@47.1215667">//www.google.ch/maps/place/Fondation+gad+Stiftung/@47.1215667</a> --> I couldn't really figure out a way to get it to work properly, but there's a workaround for now, we just use the short URLs provided by google maps.
  3. I've run into the same issue. I found the following query to be the culprit: SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_title.data AS `title__data`,field_title.data1013 AS `title__data1013` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_title ON field_title.pages_id=pages.id WHERE pages.templates_id=44 AND pages.id IN(1009,1013) GROUP BY pages.id Also note that the page id 1013 is the language page. Edit: This is running on ProcessWire 2.4 PHP 5.4.30 MySQL 5.6.19
×
×
  • Create New...