#568 src bug and PHP problem in KompoZer 0.7.10


Two problems.

Google Adsense uses javascript and includes the line
</script><script type="text/javascript"

When I Publish, if I check the box to include images, that line gets truncated to
</script><script type="text/javascript"

I can't see any way to prevent this absolute address from being changed to relative so I thought I'd simply upload the javascript as a .txt file and use a PHP include.
<?php include("googlad1.txt"); ?>

However, for this to work, the Unix web server requires the web page filename extension to be .php not .html
When I save it as index.php Kompozer refuses to open it again!
I can see no reason why KompoZer shouldn't open it because it saved it in the first place.

Using a Mac G4 1.8GHz tower running OS10.4.11


    • milestone: --> 0.7.10
  • Kefala > please try KompoZer 0.8b1: http://kompozer.net/download.php
    This version should run *much* faster on your PPC. The PHP issue should be solved as well — if not, please tell me.

    - kazé, Kompozer lead dev

  • Kefala

    Thanks for your response. For the moment I've changed the server .htaccess file to cure the php problem.

    I'm reluctant to "upgrade" to the beta because it fails to remember ftp upload parameters such as public_html/ for root folder and public_html/images/ for the images folder, forcing me to type these each time I want to "Publish". It also screws up in relation to files not ending in ".html" in a way that I can't easily describe (because I'm not sure what's happening - must take screen shots next time).

    Also, if I (for example) change and save two files then click "Publish" I'm not certain what's supposed to happen. It *appears* to result in both files being ftp uploaded (plus any related images), although the progress window doesn't indicate this AFAICS.

    And if I change a page then Publish the change doesn't seem to be saved to my Hard drive. Sorry for the vague report but I don't have access to my student's Intel Mac right now.

  • I must say I hate the current "Publish" feature, mainly because it can't preserve the directory structure: all associated files (images, scripts, etc.) are uploaded to the same remote directory: the problem you have with AdSense is related to that. Note that when you "Publish" a file, it's *not* saved to your hard disk. Worse, your page is modified (link URLs, mostly), so actually it's better not to save it back to the hard disk anyway.

    To make a long story short: this "Publish" feature has been inherited from Netscape Composer and it's a bunch of crap: I rather recommend to work on the local hard drive, then upload all files with an FTP client.

    The current plan on KompoZer 0.8 is to use a real FTP transfer instead. We've already ported FireFTP's backend to KompoZer 0.8, and at the moment (0.8b1) it can be triggered with a right-click in the site manager. However, the "Publish" button still works as in KompoZer 0.7 — or at least, it's supposed to. The final 0.8 release should use a real FTP transfer with this "Publish" button, which should solve all publication issues, but you'll have to wait for a couple of months to get it.

    Being the only regular developer on this project, I'm afraid I can't afford working on the 0.7 branch any more and I prefer focusing on the 0.8 branch. If you give me a sharp bug report with KompoZer 0.8b1 on Mac, I can do my best to release a 0.8b2 version that should suit your publication needs. Again, KompoZer 0.8 is *much* faster on a PPC than KompoZer 0.7.

    Feel free to ping me on IRC if you wish: http://kompozer.sf.net/irc/
    I'm usually online every day from 11:00 am to 11:00 pm, GMT time.

  • Kefala

    Thanks again for your fast response! it's interesting to read your personal view. I hadn't realised that the "Publish" feature was inherited and simply assumed you were an idiot (sorry!). If it's only gonna take only two months (really?) I can wait. But I would prevail upon you to call it "Upload" and not "Publish" - unless it also synchronises with the Hard Drive files. I will install your latest beta version onto my own PPC and have a play with it. Sorry, I don't know what "ping me" means. I use Skype all day long. My username is "satcure".

    About me: I'm a 58 year old electronics engineer with some experience of programming - mostly 6502 and BASIC. Now I'm semi-retired on the Greek island of Crete in the Mediterranean. I do my own company web sites, plus some Adsense sites and I am teaching a friend to do the same. I have used "Claris Home Page" since 1996 and so far have found nothing that comes close to it for ease of use. I don't need or understand CSS. I use the K.I.S.S. principle. However, if I am ever to migrate to an Intel Mac, I have to find a substitute. I hope that KompoZer will do that job. It's certainly looking promising!