Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. Yes normal image field. Make sure you don't have any other images on page yet... if there are fancybox is initiated else not.
  2. Not sure if it's a jquery ui sortable problem... when I drag (template fields for example, or all others using jqui sortable) on a page that is scrolled down, the selected item shows up on complete wrong y coordinate - like scrolltop offset is missing... not sure how to fix that, but it breakes the usability.
  3. When uploading images (whithout having images already on page) first time, fancybox preview doesn't work right away, I need to save to get it working. Not sure what happened with this, I thought this was already fixed by apeisa.
  4. I created a new admin theme. Since there's only light themes I thought I have a go an do a night theme. Screencast: Just drop the "templates-admin" folder into your site/ folder and enjoy. Get it on github: https://github.com/somatonic/darknight-admin-theme-pw2
  5. After installing i get this: require() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/templates-admin/controller.php' (include_path='.:/Applications/xampp/xamppfiles/lib/php') (line 13 of /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/templates/admin.php) EDIT: strange things happend with replacing I think, but after cleaning and copying again it works.
  6. Just go to modules -> Process and install the "Forgot Passwort" module... 8)
  7. Thanks apeisa, this does the trick. Drag and dialog upload works as expected so far. 8)
  8. Just tested and I got the same Issue, but ONLY when uploading using upload button. Drag upload doesn't duplicate.
  9. That's great news Ryan! I'm very happy to be here and help and support, and so lucky to have found ProcessWire by chance a few weeks ago. I think we will have a good time. Can't wait to see what happens when you give out official press releases. BTW, I just convinced our CEO and COO at work to use ProcessWire for some of our next smaller projects and they're usually very hard to convince. But it was easy as pie with PW at my fingertips. This is after looking a long time for a new CMS/CMF and "they" usually have high expectations or are afraid of new things. So expect to hear more from me in the future. I think you should wait till I grab out my visual node based template/field editor...
  10. Actually I tried these things already, it is tinyMCE doing something dirty when pressing save, just no idea how to prevent that. Oh and it's not the textarea, I removed that check and still.... :/
  11. Soma

    Hijackers

    Was thinking the same recently. There's people working from home to spam forums, blogs, guestbooks and get paid...
  12. I'm on the same wavelength. I already after 1 minute of aloha, thought the floating thing is annoying... I really like the top bar of mercury. I would chose it. Just my 2 cents.
  13. Soma

    Hijackers

    I think this forum now got infected somehow ... 619 users??? Yesterday it was 119. Also noticed the post few hours ago, that someone deleted here in the pub.
  14. Damn, we're fast. Gotta love social coding...
  15. Ok, just tested and works great. Images show up
  16. Yes I tried the ed.isDirty, and it must be returning true, although nothing has changed... there must be something happening maybe onunload when pressing "save" on page. Because save button is excluded from the check and when hitting removes the onbeforeunload from the window. So my guess is that tinymce does something in between or right after that... strange Edit: If I remove the tinymce check, it works as desired. Another guess is, which you suggested, that it may change the hidden textarea before unloading... thus invoking the other form field check aka textarea... need to test a little more.
  17. yes my output is: /Applications/XAMPP/htdocs/pw2.ch/myfolder/strap.php /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/myfolder/strap.php realpath is: /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/myfolder/strap.php /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/myfolder/strap.php already seen (i'm fast )
  18. Ok I got it on local server. Normal install, latest version (with latest inde.php) I create a strap.php in myfolder like: http://pw2.ch/myfolder/strap.php Code in strap.php: <?php include('../index.php'); $p = $wire->pages->get("/about/")->children->first(); foreach($p->images as $img){ echo "<img src='{$img->url}'/>"; } ?> Output code is: <img src='/myfolder/site/assets/files/1002/p1000832.jpg'/><img src='/myfolder/site/assets/files/1002/p1000840.jpg'/><img src='/myfolder/site/assets/files/1002/p1000835.jpg'/><img src='/myfolder/site/assets/files/1002/p1000176.jpg'/><img src='/myfolder/site/assets/files/1002/p1000183.jpg'/><img src='/myfolder/site/assets/files/1002/p1000184.jpg'/><img src='/myfolder/site/assets/files/1002/p1000185.jpg'/><img src='/myfolder/site/assets/files/1002/p1000186.jpg'/><img I sent you the phpinfo in a PM. Thanks
  19. Hey Ryan. Thanks for the infos. I didn't recognize first but this tinymce onchange_callback isn't working the way we need when hitting "save" button. It shows the confirm dialog although nothing has changed. Same problem as I got before with using onchange. Somehow tinymce changes something when hitting save button, before leaving page. That's why I used "onKeyUp" and "onExecCommand". So I tried to find a solution, but I found only execcommand_callback which only works for when any command was used. So entering text doesn't work. There's no onkeyup_callback or something. Any help appreciated. Thanks. // tinyMCE check if content has changed var TinyMCE_change = function(ed) { addCheck(); }; // modify PW's JS config data for each TinyMCE instance $(".InputfieldTinyMCE textarea").each(function() { config[this.id].execcommand_callback = TinyMCE_change; });
  20. Ok I did a screen capture of what's going on.... notice once I scale page it works.
  21. Thanks Ryan for this fix, I grabed it and still not working for me. Bootstraping from a subdirectory outside of PW dirs, it includes the subdirectory in the image url.
  22. Thanks a lot Ryan for your time getting closer into this. Exactly something like this I was looking for to overwrite tinymce onchange event afterwards... Thanks for the example, works great! Didn't know what isDirty was... Now the tinyMCE.js isn't needed anymore. You're right that it creates a overhead using "input" and live. I was playing around and thought live would be nice if there would be something attached later to the dom... may not. BUT I changed swoped "live" with "one", now it gets only executed first time. And I also implemented your suggestion on the selector having a form > ul.Inputfield context. (BTW didn't work before getting the actual checkin from github. Did the missing closing ul on checkboxes may cause it not working. Well now it does! ) Thanks for the detailed insight on why the hook doesn't work for other edit pages. I got it working now and attached the Check to all edit pages, Page,Templates,Fields,Users,Permissions,Roles,Modules ... I attached the latest version. Just minor, but I'm not good in giving good names. Do you think PageEditCheckState ist ok? Ans it's description? Thanks again for your help!
  23. Don't know why it is so. But Ryan certainly could tell you what's up with this. You could alternatively put the file in the root, this would work. Or if you got it in a folder in the root you could filter out the additional path segment. Simple as that: $path = str_replace('/myfolder','',$img->url);
  24. I assume in other cases it's working? DB setup is utf8_general_ci? Could it be the serialize form jquery function escaping 's? Have you tried without jquery validate ajax?
×
×
  • Create New...