Jump to content

teppo

PW-Moderators
  • Posts

    3,259
  • Joined

  • Last visited

  • Days Won

    112

Everything posted by teppo

  1. Website of Tampere Jazz Happening is powered by #ProcessWire -- and looks amazing! http://t.co/dazM68bReB

  2. @Macrura: I'm planning to port this for TinyMCE at some point, though personally I no longer use TinyMCE anywhere, so this hasn't really been too high on my todo list CKEditor loading blank sounds like an issue with ACF so I'd try disabling it and see if it helps; usually you can find your way around it's quirks, but having had more than my share of trouble with it I'm no longer sure if it's actually worth it. That's a typical issue for something like not having "div" in available format tags list while having div tags in your content. Note: having these tags in extraAllowedContent doesn't seem to make any difference at all. .. and, honestly speaking, CKEditor is awful when it comes to error messages and exception handling. Usually it just disables all or some features seemingly without any logical reason. Just guessing, but they probably thought that showing nothing would be better than showing incomprehensible technical error messages -- or something like that
  3. RT @brucel: If you must use Bootstrap, this is the best theme http://t.co/fnGtCsqpT3

  4. I really like the site, looks and works great both on desktop and mobile. It's awesome to see more Finnish ProcessWire sites too (Planning to visit the event opening night today, by the way.) @adrian: interesting point about "English" vs. "In English" -- latter is pretty much the de facto standard way for linking to English language version around here
  5. My latest blog post is an introduction to hooks and hooking in #ProcessWire: http://t.co/QmYkfYliNM

  6. RT @mindplaydk: so #CentOS is more than 3 years behind on PHP 5.3 maintenance releases. Really? Nice. Very "ENTerpricey". #HolyShit

  7. Just for the record: I'll consider using a captcha, blacklist etc. once honeypots (regular or reverse) start failing me. So far they've provided better results than any other solution -- and all that without breaking UX.
  8. Hello there, and welcome to the forum! To answer your last question: yes, it should work. This seems like a strange one, I can't seem to spot the issue right away. It kind of sounds like there was a case where job_image->first() returned nothing (or, at least, something other than an object). Is there a single call to that function in this page and you're sure that the target page has an image? You're not by any chance iterating over multiple pages and outputting their content? It'd be helpful to know what exactly is returned: $firstimage = $finalarrayitem->job_image->first(); // get the type of returned value echo gettype($firstimage); // if it's an object, see if it's a Pageimage if (is_object($firstimage)) echo " " . get_class($firstimage); Of course you could also try doing var_dump($firstimage), but for larger objects that's somewhat difficult to read
  9. RT @mikko: British Prime Minister David Cameron says he plans to stop the Guardian newspaper from publishing news. http://t.co/qd8f323Dq1

  10. @NooseLadder: this module makes it easy for users to embed maps within content generated with RTE -- TinyMCE, CKEditor etc. Use cases are very different. Just for the record, aforementioned editors do provide a way to edit markup directly, so technically it would also be possible to embed iframes etc. this way. That's something we don't usually want users to do because it often causes more problems than solves. It's better to provide simple solution that outputs consistent markup instead of giving end users too much freedom to do (and break) whatever they want. Added bonus (when compared to embedding iframes directly) is that if you (or Google) ever decide to change how maps should be embedded, you'll only need to change the code once (in the module) instead of changing it everywhere it's been embedded
  11. RT @teroterotero: The 2253 forms each Finnish word has, illustrated by the word "kauppa" (shop). http://t.co/LLKlXcbZEY

  12. @Pete: this is a bit old, but Ryan has explained it here. In that reply he also says that he'll add support for multidimensional arrays soon.. but as far as I can see, it's still expressly disallowed: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/Input.php#L62. So.. good question
  13. Good point, actually. My answer was (at least) partially wrong / lacking It seems that this security behavior (blocking access from JavaScript to clipboard) isn't (anymore?) tied to iframes. The fact remains that in order to achieve this, you'll have to disable the CKEditor context menu. There's some discussion about this at StackOverflow here: http://stackoverflow.com/questions/2246631/how-to-disable-ckeditor-context-menu. This might cause some issues, though; one reply there claims that you'll also have to disable tabletools plugin. I'm not entirely sure of the scope of that plugin, but I'm afraid that disabling it might make it impossible to add tables -- or at least edit them once they've been added.. which is kind of problematic. (In this forum tables are disabled altogether, so this isn't an issue here.) Anyway, you might try those tips if pasting with mouse / right click feels important enough
  14. @Joe: not possible. See http://ckeditor.com/forums/Support/How-copy-and-paste-normally for details. It's a browser security feature that prevents JavaScript from accessing clipboard within iframes. Editor used on this forum doesn't create a context menu of it's own like CKEditor, thus it's not affected by this.
  15. @Macrura: I've just pushed new version to GitHub with "version-control" permission. This is going to be installed automatically with the module, but if you've already installed and don't want to lose any data, simply add a new permission called "version-control" manually and apply it to appropriate roles.
  16. RT @jeresig: CodeClimate just launched complexity/code quality analysis for JavaScript: https://t.co/zus9kA9Vf2 (Free for Open Source proje…

  17. teppo

    Hanna Code

    Agreed, this is a problem for anyone using CKEditor together with Hanna Code. Entities config setting seems like a good solution, at least I'm not aware of any serious drawbacks to that. There's another option (config.basicEntities) for things like <, > etc. which could be potentially harmful if left unescaped. We're talking about HTML markup here, after all. If I ever needed to use comparison operators as parts of Hanna Code variables, I'd probably let CKEditor escape them and then handle decoding in the code snippet with str_replace() or html_entity_decode(). If you're wondering what these config settings can cause, I'd suggest taking a look at CKEditor source. There you can see a list of all entities separated to couple of different variables; htmlbase is only affected by config.basicEntities while encoding all the others (entities, latin, and greek) is going to be disabled if you set config.entities to false.
  18. teppo

    Minify

    @visualcookie: did you insert those paths in that format exactly? As far as I know, you should insert them starting from /site/ (ie. /site/templates/_sitejs/.) Probably something you've already tried, but just making sure
  19. RT @beep: How to clear the cache in Chrome:1. Buy a new laptop.2. Install Chrome.

  20. teppo

    Hanna Code

    @Macrura: are you using Hanna Code in a CKEditor field? I recently debugged similar issue and eventually found out that it was caused by CKEditor encoding " to " (default behavior) before Hanna Code had a chance to grab it. Similar issues could be caused by other editors, textformatters placed before Hanna Code etc.
  21. RT @viljamis: “Native Mobile Apps are the New Flash” http://t.co/NAjLSlUQDB

  22. @Raymond: if you check the Bypass tab of ProCache setup page, is there anything listed in "Cookies that bypass the cache"? By default wire_challenge should be there and this should effectively disable ProCache for logged in users. See Ryan's screenshot above for an example. If that field is empty or this cookie isn't listed, add and test again.
  23. RT @chriscoyier: Websites are cool and everything, but have you seen the stuff *on* websites? So good.

×
×
  • Create New...