Signatures put into an iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prince
    Senior Member
    • Sep 2001
    • 770
    • 4.2.5

    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
  • jamesyfx
    Senior Member
    • Feb 2005
    • 679
    • 3.6.x

    #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: [COLOR=red]xx[/COLOR]px">$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

    • Prince
      Senior Member
      • Sep 2001
      • 770
      • 4.2.5

      #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

      • Noiz Pollution
        Senior Member
        • Apr 2003
        • 244
        • 3.6.x

        #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

        • Veiron
          New Member
          • Jan 2006
          • 2

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

          Comment

          • Chris-777
            Senior Member
            • Jan 2006
            • 314
            • 5.6.4

            #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: [COLOR=red]xx[/COLOR]px">$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.
            http://www.metalmusicians.org

            Comment

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