Announcement

Collapse
No announcement yet.

Signatures put into an iframe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Signatures put into an iframe

    Before I upgraded to vB 3.5.x and updated my templates... in my postbit I had my $sig set-up with an iframe where I could put a size limit so if your signature went beyond the set height it would turn into a scrolling box.

    Can one of you html gurus give me that code?

    Thanks!
    http://www.ironmagazine.com - blog
    http://www.ironmagazineforums.com - forums
    http://www.ironmaglabs.com - supplements

  • #2
    It doesnt have to be an iframe specifically, it can be done with a simple div.

    Open postbit or postbit_legacy

    find
    Code:
    <if condition="$post['signature']">
            <!-- sig -->
                <div>
                    __________________<br />
                    $post[signature]
                </div>
            <!-- / sig -->
            </if>
    Replace with

    Code:
    <if condition="$post['signature']">
            <!-- sig -->
                <div>
                    __________________
                    <div style="overflow: auto; height: xxpx">$post[signature]</div>
                </div>
            <!-- / sig -->
            </if>
    Just replace xx with whichever height you want. It should scroll if it goes over specified height.

    it *should* work fine. I just tested it on its own and it was okay.

    Comment


    • #3
      thanks, that worked.

      is there any way so when it goes above the higher px setting that there are no horizontal bars, just the vertical?
      http://www.ironmagazine.com - blog
      http://www.ironmagazineforums.com - forums
      http://www.ironmaglabs.com - supplements

      Comment


      • #4
        This page should help you: http://www.w3.org/TR/REC-CSS2/visufx...rflow-clipping
        Visit NoizPollution.com // Your Music Source

        Do not PM or email me for support, you will not receive a response. Please post all requests for support in the main vBulletin forums or via the support system in the main members section of the site.

        Comment


        • #5
          http://www.pixel2life.com/html/iframe
          it could help you out

          Comment


          • #6
            Originally posted by jamesyfx
            It doesnt have to be an iframe specifically, it can be done with a simple div.

            Open postbit or postbit_legacy

            find
            Code:
            <if condition="$post['signature']">
                    <!-- sig -->
                        <div>
                            __________________<br />
                            $post[signature]
                        </div>
                    <!-- / sig -->
                    </if>
            Replace with

            Code:
            <if condition="$post['signature']">
                    <!-- sig -->
                        <div>
                            __________________
                            <div style="overflow: auto; height: xxpx">$post[signature]</div>
                        </div>
                    <!-- / sig -->
                    </if>
            Just replace xx with whichever height you want. It should scroll if it goes over specified height.

            it *should* work fine. I just tested it on its own and it was okay.
            The problem that you run into there is that if the user's signature is an image, and smaller than the predefined height, the clickable area will be the size of the defined height, not the size of the image.

            For example, if the height is set to 200px, and my image is 100x100, there will be a 100px high blank space that will be clickable if I wrap the IMG tag in URL tags.

            For that to work you'd need to grab the height of the linked image on the fly and adjust the height tag accordingly.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X