We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22319
    • 3 Posts
    Quote from: madmage at Aug 15, 2008, 12:25 PM

    Quote from: opt1k at Jul 21, 2008, 11:20 AM

    Nice work on Madboxr! grin

    I was wondering how I can use template variables (TV’s) with it?
    Example: #madboxr?w=320&w=280&url=[+default-image+]

    As I’m using madboxr in ditto and want to have the images assigned by using a TV.

    When I try it my links are displayed like this: http://www.domain.com/www/%3Cimg%20%20src=

    Thanks in advance...

    what did you put in the [+default-image+] ?? as far as I know it is not a TV but a placeholder, am I wrong?

    Thnx for the replies! smiley

    Let me try to explain.

    This is the template chunk for my ditto call:
    <div class="dashop-image-float"><a href="#madboxr?w=320&h=280&url=[+default-image+]">[+thumb-image+]</a></div>

    I put the links to the images in the TV’s:
    [+thumb-image+] = the thumbnail image "assets/images/thumbnail.jpg"
    [+default-image+] = fullsize image "assets/images/fullsize.jpg"

    Am I doing something wrong?



      • 17895
      • 209 Posts
      Quote from: opt1k at Aug 15, 2008, 05:11 PM

      Quote from: madmage at Aug 15, 2008, 12:25 PM

      Quote from: opt1k at Jul 21, 2008, 11:20 AM

      Nice work on Madboxr! grin

      I was wondering how I can use template variables (TV’s) with it?
      Example: #madboxr?w=320&w=280&url=[+default-image+]

      As I’m using madboxr in ditto and want to have the images assigned by using a TV.

      When I try it my links are displayed like this: http://www.domain.com/www/%3Cimg%20%20src=

      Thanks in advance...

      what did you put in the [+default-image+] ?? as far as I know it is not a TV but a placeholder, am I wrong?

      Thnx for the replies! smiley

      Let me try to explain.

      This is the template chunk for my ditto call:
      <div class="dashop-image-float"><a href="#madboxr?w=320&h=280&url=[+default-image+]">[+thumb-image+]</a></div>

      I put the links to the images in the TV’s:
      [+thumb-image+] = the thumbnail image "assets/images/thumbnail.jpg"
      [+default-image+] = fullsize image "assets/images/fullsize.jpg"

      Am I doing something wrong?

      Did you put the IMAGE or the URL TO THE IMAGE?

      If [+thumb-image+] will be expanded as assets/images/thumbnail.jpg, so that’s ok, and there is some bug somewhere else but
      if [+thumb-image+] will be expanded in the image itself, i.e. <img src="assets/images/thumbnail.jpg"> the snippet cannot work, it expects the URL, not the image!
        Daniele "MadMage" Calisi
        • 22319
        • 3 Posts
        Quote from: madmage at Aug 18, 2008, 03:01 AM

        Quote from: opt1k at Aug 15, 2008, 05:11 PM

        Quote from: madmage at Aug 15, 2008, 12:25 PM

        Quote from: opt1k at Jul 21, 2008, 11:20 AM

        Nice work on Madboxr! grin

        I was wondering how I can use template variables (TV’s) with it?
        Example: #madboxr?w=320&w=280&url=[+default-image+]

        As I’m using madboxr in ditto and want to have the images assigned by using a TV.

        When I try it my links are displayed like this: http://www.domain.com/www/%3Cimg%20%20src=

        Thanks in advance...

        what did you put in the [+default-image+] ?? as far as I know it is not a TV but a placeholder, am I wrong?

        Thnx for the replies! smiley

        Let me try to explain.

        This is the template chunk for my ditto call:
        <div class="dashop-image-float"><a href="#madboxr?w=320&h=280&url=[+default-image+]">[+thumb-image+]</a></div>

        I put the links to the images in the TV’s:
        [+thumb-image+] = the thumbnail image "assets/images/thumbnail.jpg"
        [+default-image+] = fullsize image "assets/images/fullsize.jpg"

        Am I doing something wrong?

        Did you put the IMAGE or the URL TO THE IMAGE?

        If [+thumb-image+] will be expanded as assets/images/thumbnail.jpg, so that’s ok, and there is some bug somewhere else but
        if [+thumb-image+] will be expanded in the image itself, i.e. <img src="assets/images/thumbnail.jpg"> the snippet cannot work, it expects the URL, not the image!

        Problem solved!
        I was using the "image" widget in the [+thumb-image+] TV.
        Thnx!
          • 17895
          • 209 Posts
          NOTE: for all those trying to contact me for questions regarding Madboxr, please send me a private message after the question here in this thread, or you can wait a lot before I remember to look at this thread smiley
            Daniele "MadMage" Calisi
            • 22622
            • 6 Posts
            Greetings,

            Madboxr is great, I have just one problem with it... The first two times I click the link, only a blank box shows up. The third time it works perfectly.. Has anyone else had this problem and I have just missed it here in the forums somewhere?

            Thanks!
              • 17895
              • 209 Posts
              Quote from: pancho4life at Feb 21, 2009, 12:55 PM

              Greetings,

              Madboxr is great, I have just one problem with it... The first two times I click the link, only a blank box shows up. The third time it works perfectly.. Has anyone else had this problem and I have just missed it here in the forums somewhere?

              Thanks!

              What do you mean with "blank box"? you mean a slimbox with nothing inside? are you using flickr images?
              paste here the code you use to display the image ;-)
                Daniele "MadMage" Calisi
                • 22622
                • 6 Posts
                Quote from: madmage at Feb 25, 2009, 04:20 AM

                Quote from: pancho4life at Feb 21, 2009, 12:55 PM

                Greetings,

                Madboxr is great, I have just one problem with it... The first two times I click the link, only a blank box shows up. The third time it works perfectly.. Has anyone else had this problem and I have just missed it here in the forums somewhere?

                Thanks!

                What do you mean with "blank box"? you mean a slimbox with nothing inside? are you using flickr images?
                paste here the code you use to display the image ;-)

                Yes, a blank slimbox. I was just using the example code you posted which displays google.
                <a href="#madboxr?h=400&w=400url=http://www.google.com">Click here</a>

                It’s strange, becuase on the third attempt (without refreshing the page) it shows up fine...Could I have messed up when copying the plugin, or have a version problem (I’m using the most recent)?
                  • 17895
                  • 209 Posts
                  Quote from: pancho4life at Feb 25, 2009, 01:07 PM


                  Yes, a blank slimbox. I was just using the example code you posted which displays google.
                  <a href="#madboxr?h=400&w=400url=http://www.google.com">Click here</a>

                  It’s strange, becuase on the third attempt (without refreshing the page) it shows up fine...Could I have messed up when copying the plugin, or have a version problem (I’m using the most recent)?

                  So... first of all, you lack a "&" between w=400 and url=... but maybe you misspelled it here in the forum. Anyway, it’s not a problem of madboxr, it seems there’s something wrong with the AJAX call of the slimbox (maybe it is not able to connect to google.com in the first two attempts); maybe you can use a different viewer (I do not remember the options, there was slimbox and lightbox, at least) and see what happens.
                    Daniele "MadMage" Calisi
                    • 22622
                    • 6 Posts
                    Thank you very much. I feel kind of retarded now, I had a conflict with another piece of code. I appreciate your help!