Presenting a missing feature- tinyZenpage

acrylian Administrator, Developer
I am happy to announce the arrival of a missing Zenpage feature to easily include images from your albums into Zenpage pages and articles. More info on the Zenpage project site here: http://zenpage.maltem.de/news/Presenting-a-missing-feature-tinyZenpage

Comments

  • Great work Malte as always, will give this a go as soon as I get the time to do so. I am not sure I will use it myself but people I am doing work for will most likely want and do so.
  • Hey.. thanks! But am I missing something?

    Move the texteditorconfig.php file into zp-core/plugins/zenpage. This is a replacement of the in Zenpage included file of the same name. If you have already have customized this configuration file just add tinyzenpage to the plugin: "" call to load it and to the theme_advanced_buttons[number] where you want the button to apear.

    I don't see a new texteditorconfig.php in the zip page.
  • acrylian Administrator, Developer
    @albeezie: Ah, sorry, I indeed forgot to include it... It has been corrected.
  • Beautiful. Thank you very much!
  • Just installed and tried it, really good work - thanks.

    One minor thing, one of the times I selected a image in the tinyzenpage editor and then closed the editor I found all of my text in the article I was adding the image to had disappeared. As I had not updated the article, I reloaded the article, text was still there and tried again and it all seemed OK. Using Safari 3.1.2
  • acrylian Administrator, Developer
    I did not notice that in all the tests since Safari 3.1.2 is my main browser, too. Did you maybe accidentally had selected your text so that the image overwrote it? Can you reproduce that?
  • @acrylian, I finally managed to reproduce the problem (having tried many times with no issues:-)

    What I did was: Insert cursor in written article, open tinyzenpage editor, do NOT select a album first but change the 'Link Type' and/or 'Text wrap' first then select an album, choose an image, close the tinyzenpage editor - text gone and no image entered!

    Of course why would I not select the album first? I'm just illogical I guess!
  • I think I found a bug?

    Any album that I have with a apostrophe in it, the images fail to load... so names like "Mr. George's Birthday" fails..

    Also, I noticed it does hard links? I guess if for some reason, the website url changed.. then all the links go wrong. Something to think about, nothing too big right now.
  • acrylian Administrator, Developer
    @stevenew: Thanks, I will try to reproduce it, too. I actually have no idea why that can happen though.

    @albeezie: Good point, but I there are reasons for that actually:
    1. I need the full path to generate the image that is inserted since I need to access the image processor within zp-core for that. But a relative path to that is different from the admin pages (`../../i.php...`) and from the site itself (`/zp-core/i.php...`). You will not see any image when inserting it on the admin pages if I use an relative path from the site's point of view and vice versa.
    2. I can change the path for the link itself to be relative, but I always need the webpath. If you move zenphoto from a subfolder to top level (www.domain.com/zenphoto to www.domain.com) or if you rename the subfolder from /zenphoto to /gallery it will also not work since TinyMCE pages and articles are not dynamic. They are static html. So the folder will always be missing or wrong/not updated if you change somthing.
    Do you see the dilemma? (In case I missed something myself let me know....)

    EDIT: Apostrophes in folder/filenames are problematic. They do not work for me in general so I just avoid them old school style (that behaviour has proofed for me to still be the most secure even if I know it should generall work...). Anyway, I had tried encodings but the encoding of slashes also breaks the url.
  • acrylian Administrator, Developer
    @stevenew: I sadly could not reproduce it with Safari. I get a normal image inserted. Actually it can not really matter what you select before choosing an album because whatever you set before that is reverted to the default values since the page is reloaded then. Strange...
  • Yeah, I see your point. I guess the apostrophe thing is just a limitation of the javascript anyways.. I see why it doesn't bode well. :) Thanks anyways and keep making good stuff!
  • @acrylian, I have tried it again and can reproduce the 'no image and disappearing text' using the above sequence every time, in fact to get the image to appear I must always use the sequence of, choose album, change 'Link Type' and/or 'Text wrap' then select the imager. Choosing the image last is the only way it will appear and the text not disappear in the editor.

    Oh well I seem to be making a habit of finding problems no one else has...

    I just checked it on Firefox 3.0.3 for mac and don't get the problem (I do get different text wrapping though, text wrap right seems to drop the text bottom right of the image, on safari it stays top right).

    So it must be something with my system and safari, Im on 10.4.11 ppc.
  • acrylian Administrator, Developer
    I tried also again and I can't. I am also on 10.4.11 ppc. Weird.
  • I tried this on our old G3 iBook running 10.4.11 Safari 3.1.2 and get the same problem, must be something with Safari and my setups as again Firefox is fine. Very strange.
Sign In or Register to comment.