Loading ...
Sorry, an error occurred while loading the content.
 

Re: [NH] Editing web pages online

Expand Messages
  • Axel Berger
    ... Never mind, help them set up and use Totalcommander and they won t feel any difference between editing a remote file and a local one. But you also say they
    Message 1 of 24 , Nov 19, 2010
      Mike Breiding - Morgantown WV wrote:
      > They have no FTP experience.

      Never mind, help them set up and use Totalcommander and they won't feel
      any difference between editing a remote file and a local one. But you
      also say they don't know HTML. You could prepare generic content like
      "capion 1" "caption 2" and have them replace that by other text while
      leaving surrounding tags intact. If even that were too complicated, then
      the best and easiest way will be for you to write those captions
      yourself. CMS and all that comes with it would entail a complete
      redesign of all your pages from the ground up.

      Axel
    • Axel Berger
      ... But what happens then? The content of that editing field will be sent to the server and need to be evaluated by some script or program there. This would
      Message 2 of 24 , Nov 19, 2010
        Dave wrote:
        > putting a small editing text window underneath each
        > image they want to change ?

        But what happens then? The content of that editing field will be sent to
        the server and need to be evaluated by some script or program there.
        This would result in Mike having to write some sort of poor man's CMS
        all by himself. Nice project if you want to learn PHP or some such, but
        far more effort than help in this case.

        Axel
      • rhorbas@gmx.net
        ... I was talking about server side scripting, of course. Sorry to trip you off with my inaccurate wording. ;-) I use the iptc fields for my private photo
        Message 3 of 24 , Nov 19, 2010
          Axel Berger wrote:
          > Rudolf Horbas wrote:
          >> I'd save the captions in the image's IPTC fields and get them
          >> dynamically by script.
          >
          > That's what i do, but that script is run in Irfanview and NoteTab. A
          > script in the actual page means that all those with scripting off will
          > see no captions. No solution IMHO.

          I was talking about server side scripting, of course. Sorry to trip you
          off with my inaccurate wording. ;-)

          I use the iptc fields for my private photo archive. It's relatively
          simple to get the fields with, e.g., a php function:

          <?php
          function getIptcNames( $file )
          {
          # List of field codes and names:
          $iptc_names = array(
          '2#120' => 'Caption',
          '2#005' => 'Title',
          '2#105' => 'Headline',
          '2#055' => 'Creation_Date',
          '2#080' => 'ByLine',
          '2#085' => 'ByLine_Title',
          '2#090' => 'City',
          '2#095' => 'State',
          '2#101' => 'Country',
          // (more deleted)
          );
          $info = getimagesize( $file, $extrainfo );
          if( !$info )
          {
          return false;
          }
          while( list( $key, $val ) = each( $info ) )
          {
          if( isset( $iptc_names[$key] ) )
          {
          if( count( $val ) > 1 )
          {
          $i = 1;
          foreach( $val as $val2 )
          {
          $iptc_obj->$iptc_names[$key]->$i = $val2;
          $i++;
          }
          }
          else
          {
          $iptc_obj->$iptc_names[$key] = $val[0];
          }
          }
          }
          return $iptc_obj;
          }
          ?>

          That function can then be used like this:

          <?php
          # list of the images
          $img_arr = array(
          'photo0000001.jpg',
          'photo0000002.jpg',
          'photo0000003.jpg',
          'photo0000004.jpg',
          // etc...
          );
          $str = '';
          # walk through image list:
          foreach( $img_arr as $key => $val )
          {
          $iptc_obj = getIptcNames( $val );
          $str .= '<a id="' . $val . '" name="' . $val . '"> </a>
          <a href="hres/' . $val . '"><img src="' . $val . '"/></a>
          <p>' . ( '' != $iptc_obj->Title ? $iptc_obj->Title : $val) .
          '</p>';
          }
          echo $str;
          ?>

          The script could also just browse one specific directory for images and
          get the list from there.

          Image width and height can also be built dynamically (they're left out
          in the example).
          I'd limit the number of images per page though -- for performance
          reasons, and because the pages are too long anyway.

          Rudi
        • rhorbas@gmx.net
          ... Isn t KompoZer still a bit buggy? The latest stable release 0.7.10 is, for me. (I haven t tried the 0.8 betas ...) I find the SeaMonkey Composer component
          Message 4 of 24 , Nov 19, 2010
            Greg Chapman wrote:
            > KompoZer is a WYSIWYG editor. It's no different from editing a word
            > processor document. HTML does not come into it!

            Isn't KompoZer still a bit buggy? The latest stable release 0.7.10 is,
            for me. (I haven't tried the 0.8 betas ...)

            I find the SeaMonkey Composer component quite OK, and it supports ftp
            publishing too:
            http://www.seamonkey-project.org/doc/features#composer

            Rudi
          • Axel Berger
            ... I didn t know that, thanks for enlightening me. I ll think about that for future projects. My current script-based approach is fine and very powerful for
            Message 5 of 24 , Nov 19, 2010
              rhorbas@... wrote:
              > It's relatively
              > simple to get the fields with, e.g., a php function:

              I didn't know that, thanks for enlightening me. I'll think about that
              for future projects. My current script-based approach is fine and very
              powerful for setting up dozens to hundreds of images in the first place,
              but later corrections of any caption have to be transferred manually to
              four places - or the whole directory set up from scratch again, which is
              less effort with about five or more alterations.

              Axel
            • Greg Chapman
              Hi Rudi, ... I won t pretend that KompoZer is totally bug free, but for the proposed task I do not forsee any problems at all - except for the re-publishing of
              Message 6 of 24 , Nov 19, 2010
                Hi Rudi,

                On 19 Nov 10 15:09 rhorbas@... said:
                > Isn't KompoZer still a bit buggy? The latest stable release 0.7.10
                > is, for me. (I haven't tried the 0.8 betas ...)

                I won't pretend that KompoZer is totally bug free, but for the
                proposed task I do not forsee any problems at all - except for the
                re-publishing of a page. The 0.8 betas offer some significant
                improvements and some regressions, but none of these affect the task
                in question.

                > I find the SeaMonkey Composer component quite OK, and it supports
                > ftp publishing too:
                > http://www.seamonkey-project.org/doc/features#composer

                I understand the 0.9 release will incorporate a lot of SeaMonkey code
                but, of course, won't have the overhead of the entire package. There
                is much excitement at this prospect on the WYSIFA forum!

                Greg Chapman
                http://www.gregtutor.plus.com
                Helping new users of KompoZer and The GIMP
              • rhorbas@gmx.net
                Hi Greg, ... My install of 0.7.10 ran pretty unstable with occasional crashes, but I never used it very often: I m missing shortcuts for headings (CTRL+1 for
                Message 7 of 24 , Nov 19, 2010
                  Hi Greg,

                  > On 19 Nov 10 15:09 rhorbas@... said:
                  >> Isn't KompoZer still a bit buggy? The latest stable release 0.7.10
                  >> is, for me. (I haven't tried the 0.8 betas ...)
                  >
                  > I won't pretend that KompoZer is totally bug free, but for the
                  > proposed task I do not forsee any problems at all

                  My install of 0.7.10 ran pretty unstable with occasional crashes, but I
                  never used it very often: I'm missing shortcuts for headings (CTRL+1 for
                  h1, CTRL+2 for h2, etc.) for quick formatting. Here, my old DreamWeaver
                  MX is still unbeaten; but as soon as KompoZer offered me that, I'd
                  probably switch.
                  (...)
                  Oh, nice: I just checked 0.8b3, it runs pretty good. The split WYSIWYG
                  and code view is handy, never noticed that before.

                  >> I find the SeaMonkey Composer component quite OK, and it supports
                  >> ftp publishing too:
                  >> http://www.seamonkey-project.org/doc/features#composer
                  >
                  > I understand the 0.9 release will incorporate a lot of SeaMonkey code
                  > but, of course, won't have the overhead of the entire package.

                  Well, I have SeaMonkey installed anyway, so that's no problem for
                  me ... ;-)

                  Rudi
                • Mike Breiding - Morgantown WV
                  Looks like there is no idiot proof, no brainer way to do this so I will not persue it futher. Thanks to all. -Mike ==================== ... -- Morgantown WV
                  Message 8 of 24 , Nov 19, 2010
                    Looks like there is no idiot proof, no brainer way to do this so I will
                    not persue it futher.
                    Thanks to all.
                    -Mike
                    ====================

                    Mike Breiding - Morgantown WV wrote:
                    > I have hundreds of photos that need captions written:
                    > http://epicroadtrips.us/2010/spain/d2/ and d3, d4, etc.
                    >
                    > The person who is writing the captions asked me to try to set up some
                    > way for him to edit the web page directly.
                    >
                    > Any ideas on this?
                    > Thanks,
                    > -Mike
                    >

                    --


                    Morgantown WV

                    www.EpicRoadTrips.us
                  • John Wallace
                    I m not that good with clips, etc. but I think that you could add the info to the basic html and then re-upload the html file. Your partial html showing the
                    Message 9 of 24 , Nov 19, 2010
                      I'm not that good with clips, etc. but I think that you could add the info to the basic html
                      and then re-upload the html file.

                      Your partial html showing the pics:

                      ==========================
                      <!-- ********* PHOTO LINKS START ********* -->

                      <a id="photo0000001.jpg" name="photo0000001.jpg"> </a> <a href="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000001.jpg>
                      hres/photo0000001.jpg"><img src="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000001.jpg> photo0000001.jpg"
                      width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                      <p>photo0000001.jpg</p>

                      <a id="photo0000002.jpg" name="photo0000002.jpg"> </a> <a href="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000002.jpg>
                      hres/photo0000002.jpg"><img src="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000002.jpg> photo0000002.jpg"
                      width="350" height="467" title="Click for larger image" alt="Click for larger image" /></a>

                      <p>photo0000002.jpg</p>

                      <a id="photo0000003.jpg" name="photo0000003.jpg"> </a> <a href="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000003.jpg>
                      hres/photo0000003.jpg"><img src="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000003.jpg> photo0000003.jpg"
                      width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                      <p>photo0000003.jpg</p>

                      <a id="photo0000004.jpg" name="photo0000004.jpg"> </a> <a href="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000004.jpg>
                      hres/photo0000004.jpg"><img src="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000004.jpg> photo0000004.jpg"
                      width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                      <p>photo0000004.jpg</p>


                      <a id="photo0000005.jpg" name="photo0000005.jpg"> </a> <a href="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000005.jpg>
                      hres/photo0000005.jpg"><img src="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000005.jpg> photo0000005.jpg"
                      width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                      <p>photo0000005.jpg</p>

                      <a id="photo0000006.jpg" name="photo0000006.jpg"> </a> <a href="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000006.jpg>
                      hres/photo0000006.jpg"><img src="
                      <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000006.jpg> photo0000006.jpg"
                      width="350" height="467" title="Click for larger image" alt="Click for larger image" /></a>

                      <p>photo0000006.jpg</p>



                      ===========================

                      change the a id="photo0000001.jpg" to a id="pic of gas pump" (or whatever)

                      You might be able to make a clip asking you what you want to change photo0000001.jpg to.

                      John Wallace
                      Pontiac Power Rules !!!
                      www.wallaceracing.com <http://www.wallaceracing.com/>



                      _____

                      From: ntb-html@yahoogroups.com [mailto:ntb-html@yahoogroups.com] On Behalf Of Mike Breiding -
                      Morgantown WV
                      Sent: Friday, November 19, 2010 12:26 PM
                      To: ntb-html@yahoogroups.com
                      Subject: Re: [NH] Editing web pages online




                      Looks like there is no idiot proof, no brainer way to do this so I will
                      not persue it futher.
                      Thanks to all.
                      -Mike
                      ====================

                      Mike Breiding - Morgantown WV wrote:
                      > I have hundreds of photos that need captions written:
                      > http://epicroadtrips.us/2010/spain/d2/ and d3, d4, etc.
                      >
                      > The person who is writing the captions asked me to try to set up some
                      > way for him to edit the web page directly.
                      >
                      > Any ideas on this?
                      > Thanks,
                      > -Mike
                      >

                      --

                      Morgantown WV

                      www.EpicRoadTrips.us



                      <http://geo.yahoo.com/serv?s=97359714/grpId=1175199/grpspId=1705375618/msgId=6937/stime=1290191
                      024/nc1=3848644/nc2=5741395/nc3=3848583>




                      [Non-text portions of this message have been removed]
                    • John Wallace
                      Forgot to add that the photo0000001.jpg would be changed also. John Wallace Pontiac Power Rules !!! www.wallaceracing.com
                      Message 10 of 24 , Nov 19, 2010
                        Forgot to add that the <p> photo0000001.jpg</p>
                        would be changed also.

                        John Wallace
                        Pontiac Power Rules !!!
                        www.wallaceracing.com <http://www.wallaceracing.com/>



                        _____

                        From: ntb-html@yahoogroups.com [mailto:ntb-html@yahoogroups.com] On Behalf Of John Wallace
                        Sent: Friday, November 19, 2010 12:39 PM
                        To: ntb-html@yahoogroups.com
                        Subject: RE: [NH] Editing web pages online




                        I'm not that good with clips, etc. but I think that you could add the info to the basic html
                        and then re-upload the html file.

                        Your partial html showing the pics:

                        ==========================
                        <!-- ********* PHOTO LINKS START ********* -->

                        <a id="photo0000001.jpg" name="photo0000001.jpg"> </a> <a href="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000001.jpg>
                        hres/photo0000001.jpg"><img src="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000001.jpg> photo0000001.jpg"
                        width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                        <p>photo0000001.jpg</p>

                        <a id="photo0000002.jpg" name="photo0000002.jpg"> </a> <a href="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000002.jpg>
                        hres/photo0000002.jpg"><img src="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000002.jpg> photo0000002.jpg"
                        width="350" height="467" title="Click for larger image" alt="Click for larger image" /></a>

                        <p>photo0000002.jpg</p>

                        <a id="photo0000003.jpg" name="photo0000003.jpg"> </a> <a href="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000003.jpg>
                        hres/photo0000003.jpg"><img src="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000003.jpg> photo0000003.jpg"
                        width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                        <p>photo0000003.jpg</p>

                        <a id="photo0000004.jpg" name="photo0000004.jpg"> </a> <a href="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000004.jpg>
                        hres/photo0000004.jpg"><img src="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000004.jpg> photo0000004.jpg"
                        width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                        <p>photo0000004.jpg</p>

                        <a id="photo0000005.jpg" name="photo0000005.jpg"> </a> <a href="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000005.jpg>
                        hres/photo0000005.jpg"><img src="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000005.jpg> photo0000005.jpg"
                        width="550" height="412" title="Click for larger image" alt="Click for larger image" /></a>

                        <p>photo0000005.jpg</p>

                        <a id="photo0000006.jpg" name="photo0000006.jpg"> </a> <a href="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/hres/photo0000006.jpg>
                        hres/photo0000006.jpg"><img src="
                        <view-source:http://epicroadtrips.us/2010/spain/d2/photo0000006.jpg> photo0000006.jpg"
                        width="350" height="467" title="Click for larger image" alt="Click for larger image" /></a>

                        <p>photo0000006.jpg</p>

                        ===========================

                        change the a id="photo0000001.jpg" to a id="pic of gas pump" (or whatever)

                        You might be able to make a clip asking you what you want to change photo0000001.jpg to.

                        John Wallace
                        Pontiac Power Rules !!!
                        www.wallaceracing.com <http://www.wallaceracing.com/>



                        _____

                        From: ntb-html@yahoogroups.com <mailto:ntb-html%40yahoogroups.com>
                        [mailto:ntb-html@yahoogroups.com <mailto:ntb-html%40yahoogroups.com> ] On Behalf Of Mike
                        Breiding -
                        Morgantown WV
                        Sent: Friday, November 19, 2010 12:26 PM
                        To: ntb-html@yahoogroups.com <mailto:ntb-html%40yahoogroups.com>
                        Subject: Re: [NH] Editing web pages online

                        Looks like there is no idiot proof, no brainer way to do this so I will
                        not persue it futher.
                        Thanks to all.
                        -Mike
                        ====================

                        Mike Breiding - Morgantown WV wrote:
                        > I have hundreds of photos that need captions written:
                        > http://epicroadtrips.us/2010/spain/d2/ and d3, d4, etc.
                        >
                        > The person who is writing the captions asked me to try to set up some
                        > way for him to edit the web page directly.
                        >
                        > Any ideas on this?
                        > Thanks,
                        > -Mike
                        >

                        --

                        Morgantown WV

                        www.EpicRoadTrips.us





                        [Non-text portions of this message have been removed]
                      • jeff
                        Generally there is no edit in place solution. I FTP the website to my computer edit, then FTP back. (Not using the FTP process in Notetab) Jeff ... -- Jeffery
                        Message 11 of 24 , Nov 19, 2010
                          Generally there is no edit in place solution. I FTP the website to my
                          computer edit, then FTP back. (Not using the FTP process in Notetab)

                          Jeff

                          On 11/19/2010 10:25 AM, Mike Breiding - Morgantown WV wrote:
                          >
                          > Looks like there is no idiot proof, no brainer way to do this so I will
                          > not persue it futher.
                          > Thanks to all.
                          > -Mike
                          > ====================
                          >
                          > Mike Breiding - Morgantown WV wrote:
                          > > I have hundreds of photos that need captions written:
                          > > http://epicroadtrips.us/2010/spain/d2/ and d3, d4, etc.
                          > >
                          > > The person who is writing the captions asked me to try to set up some
                          > > way for him to edit the web page directly.
                          > >
                          > > Any ideas on this?
                          > > Thanks,
                          > > -Mike
                          > >
                          >
                          > --
                          >
                          > Morgantown WV
                          >
                          > www.EpicRoadTrips.us
                          >
                          >

                          --

                          Jeffery Scism, IBSSG




                          [Non-text portions of this message have been removed]
                        • Axel Berger
                          ... Promising just that has made quite a few people in different areas of enterprise very rich. In my experience things only look easier but in reality become
                          Message 12 of 24 , Nov 19, 2010
                            Mike Breiding - Morgantown WV wrote:
                            > Looks like there is no idiot proof, no brainer way to do this

                            Promising just that has made quite a few people in different areas of
                            enterprise very rich. In my experience things only look easier but in
                            reality become quite a bit more complicated. There is a reason why I
                            prefer TeX to Office, directly editing the registry to vainly searching
                            ever deeper layers of menues, and NoteTab to all that wysiwyg stuff. The
                            reason is, as my daughter would tell you, that I'm nuts, but then she
                            insists on heaping insult on injury by coming to me of all people for
                            advice about things I do not use, because I find them to complicated for
                            me.

                            That's life
                            Axel
                          • Scott Fordin
                            There are, in fact, several text editors that make it possible to directly edit files over an FTP connection. That said, because this is a NoteTab list, it is
                            Message 13 of 24 , Nov 19, 2010
                              There are, in fact, several text editors that make it possible to directly edit files over an FTP connection. That said, because this is a NoteTab list, it is in bad taste (and against list guidelines) to recommend products that compete in the same space as NoteTab.

                              Moreover, as previously stated, unless you're using a proper CMS, like Drupal, you're playing with fire if you regularly edit files directly on a website rather than following version control and data backup best practices. But that's just me: a geezer who's arguably OCD when it comes to backing up my work.

                              Scott

                              "jeff" <jeff@...> wrote:

                              >Generally there is no edit in place solution. I FTP the website to my
                              >computer edit, then FTP back. (Not using the FTP process in Notetab)
                              >
                              >Jeff
                              >
                              >On 11/19/2010 10:25 AM, Mike Breiding - Morgantown WV wrote:
                              >>
                              >> Looks like there is no idiot proof, no brainer way to do this so I
                              >will
                              >> not persue it futher.
                              >> Thanks to all.
                              >> -Mike
                              >> ====================
                              >>
                              >> Mike Breiding - Morgantown WV wrote:
                              >> > I have hundreds of photos that need captions written:
                              >> > http://epicroadtrips.us/2010/spain/d2/ and d3, d4, etc.
                              >> >
                              >> > The person who is writing the captions asked me to try to set up
                              >some
                              >> > way for him to edit the web page directly.
                              >> >
                              >> > Any ideas on this?
                              >> > Thanks,
                              >> > -Mike
                              >> >
                              >>
                              >> --
                              >>
                              >> Morgantown WV
                              >>
                              >> www.EpicRoadTrips.us
                              >>
                              >>
                              >
                              >--
                              >
                              >Jeffery Scism, IBSSG
                              >
                              >
                              >
                              >
                              >[Non-text portions of this message have been removed]
                            • Axel Berger
                              ... In a strict sense you re right of course. On the other hand it is just because we here use powerful tools that we need advice about that GUI junk. I think
                              Message 14 of 24 , Nov 19, 2010
                                Scott Fordin wrote:
                                > it is in bad taste (and against list guidelines) to recommend
                                > products that compete in the same space as NoteTab.

                                In a strict sense you're right of course. On the other hand it is just
                                because we here use powerful tools that we need advice about that GUI
                                junk. I think cooperation with others, who refuse to use an editor and
                                insist on junk software, is a need more than a few of us will come up
                                against from time time. Then it is in our interest, that these coworkers
                                won't do too much damage to our clean pages.

                                > you're playing with fire if you regularly edit files directly
                                > on a website rather than following version control and data
                                > backup best practices.

                                Unless I'm mistaken Mike probably does the same as I do: Edit all pages
                                locally with backups and then mirror the local folder to the remote
                                site. If so, all the damage some other editor can do, is ruin and
                                destroy all his own work, but all Mike's will still sit there,
                                untouched, on his owen drive, ready to be reuploaded when warranted.
                                If you don't do it this way, Mike, then I agree with Scott and suggest
                                you ought to.

                                Axel
                              Your message has been successfully submitted and would be delivered to recipients shortly.