[campsite-support] Image captions
  • Hi all,

    Thanks for helping with the password change problem, works fine now.
    My only problem right now is with image captions: how do I make them
    appear when using Xinha? Smile Ideally, when using the insert image
    function, instead of

    alt=Foo" src="http://foo.bar/foo.jpg" />

    I'd like to get something like this:



    (well, automatically generated thumbnails instead of using the
    original image would be ideal, but that's something else)

    Modifying campsite-image-manager.js to do this looks easy enough, but
    it seems like that has been replaced with assets/manager.js in the
    latest Campsite? Any ideas?

    --
    Anders Jensen-Urstad
    http://x.unix.se
  • 3 Comments sorted by
  • Hi Anders,

    The file you need to modify is image-manager.js, not campsite-image-manager.js. Also, please make
    sure you clear the cache after each js file change.

    Regards,
    Mugur

    --- Anders Jensen-Urstad wrote:
    > Hi all,
    >
    > Thanks for helping with the password change problem, works fine now.
    > My only problem right now is with image captions: how do I make them
    > appear when using Xinha? Smile Ideally, when using the insert image
    > function, instead of
    >
    > > alt=Foo" src="http://foo.bar/foo.jpg" />
    >
    > I'd like to get something like this:
    >
    >
    >
    > (well, automatically generated thumbnails instead of using the
    > original image would be ideal, but that's something else)
    >
    > Modifying campsite-image-manager.js to do this looks easy enough, but
    > it seems like that has been replaced with assets/manager.js in the
    > latest Campsite? Any ideas?
    >
    > --
    > Anders Jensen-Urstad
    > http://x.unix.se
    >





    ____________________________________________________________________________________
    Sponsored Link

    Get an Online or Campus degree
    Associate's, Bachelor's, or Master's - in less than one year.
    http://www.findtherightschool.com
  • Thanks! I had forgotten to load ImageManager in htmlarea.js (duh).
    Image captions and popup now works fine, as can be seen on
    http://www.femtestatsmakten.se/sv/2006_8/studentliv/90/. If anyone
    would like to try the same, I wrote some notes about it:
    http://x.unix.se/etc/notes_campsite.txt

    /Anders

    On 11/8/06, Mugur Rus wrote:
    > Hi Anders,
    >
    > The file you need to modify is image-manager.js, not campsite-image-manager.js. Also, please make
    > sure you clear the cache after each js file change.
    >
    > Regards,
    > Mugur
    >
    > --- Anders Jensen-Urstad wrote:
    > > Hi all,
    > >
    > > Thanks for helping with the password change problem, works fine now.
    > > My only problem right now is with image captions: how do I make them
    > > appear when using Xinha? Smile Ideally, when using the insert image
    > > function, instead of
    > >
    > > > > alt=Foo" src="http://foo.bar/foo.jpg" />
    > >
    > > I'd like to get something like this:
    > >
    > >
    > >
    > > (well, automatically generated thumbnails instead of using the
    > > original image would be ideal, but that's something else)
    > >
    > > Modifying campsite-image-manager.js to do this looks easy enough, but
    > > it seems like that has been replaced with assets/manager.js in the
    > > latest Campsite? Any ideas?
    > >
    > > --
    > > Anders Jensen-Urstad
    > > http://x.unix.se
    > >
    >
    >
    >
    >
    >
    > ____________________________________________________________________________________
    > Sponsored Link
    >
    > Get an Online or Campus degree
    > Associate's, Bachelor's, or Master's - in less than one year.
    > http://www.findtherightschool.com
    >


    --
    Anders Jensen-Urstad
    http://x.unix.se
  • Hi Anders,

    Thank you for the tip. I want to integrate this functionality into Campsite but I'd like to give
    the user the option to chose:
    - to display the image the old way (no link)
    - to create a link that will display the image in a popup window

    This option should be displayed in the image insert dialog. Based on the user choice the
    ImageManager function (from image-manager.js) should generate the old style code or the one you
    wrote.

    I want to ask you a favor: could you implement this functionality?

    Regards,
    Mugur

    --- Anders Jensen-Urstad wrote:
    > Thanks! I had forgotten to load ImageManager in htmlarea.js (duh).
    > Image captions and popup now works fine, as can be seen on
    > http://www.femtestatsmakten.se/sv/2006_8/studentliv/90/. If anyone
    > would like to try the same, I wrote some notes about it:
    > http://x.unix.se/etc/notes_campsite.txt
    >
    > /Anders
    >
    > On 11/8/06, Mugur Rus wrote:
    > > Hi Anders,
    > >
    > > The file you need to modify is image-manager.js, not campsite-image-manager.js. Also, please
    > make
    > > sure you clear the cache after each js file change.
    > >
    > > Regards,
    > > Mugur
    > >
    > > --- Anders Jensen-Urstad wrote:
    > > > Hi all,
    > > >
    > > > Thanks for helping with the password change problem, works fine now.
    > > > My only problem right now is with image captions: how do I make them
    > > > appear when using Xinha? Smile Ideally, when using the insert image
    > > > function, instead of
    > > >
    > > > > > > alt=Foo" src="http://foo.bar/foo.jpg" />
    > > >
    > > > I'd like to get something like this:
    > > >
    > > >
    > > >
    > > > (well, automatically generated thumbnails instead of using the
    > > > original image would be ideal, but that's something else)
    > > >
    > > > Modifying campsite-image-manager.js to do this looks easy enough, but
    > > > it seems like that has been replaced with assets/manager.js in the
    > > > latest Campsite? Any ideas?
    > > >
    > > > --
    > > > Anders Jensen-Urstad
    > > > http://x.unix.se
    > > >
    > >
    > >
    > >
    > >
    > >
    > > ____________________________________________________________________________________
    > > Sponsored Link
    > >
    > > Get an Online or Campus degree
    > > Associate's, Bachelor's, or Master's - in less than one year.
    > > http://www.findtherightschool.com
    > >
    >
    >
    > --
    > Anders Jensen-Urstad
    > http://x.unix.se
    >




    ____________________________________________________________________________________
    Want to start your own business?
    Learn how on Yahoo! Small Business.
    http://smallbusiness.yahoo.com/r-index