Announcement

Collapse
No announcement yet.

Signatures put into an iframe

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

  • Chris-777
    replied
    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.

    Leave a comment:


  • Veiron
    replied
    http://www.pixel2life.com/html/iframe
    it could help you out

    Leave a comment:


  • Noiz Pollution
    replied
    This page should help you: http://www.w3.org/TR/REC-CSS2/visufx...rflow-clipping

    Leave a comment:


  • Prince
    replied
    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?

    Leave a comment:


  • jamesyfx
    replied
    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.

    Leave a comment:


  • Prince
    started a topic Signatures put into an iframe

    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!
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X