+ Reply to Thread
Results 1 to 7 of 7

Thread: iframe in post reply.

  1. #1
    Senior Member Joe is on a distinguished road
    Join Date
    May 2000
    Location
    Highland, Utah.
    Age
    31
    Posts
    2,435
    Heres a tip, i have had a few users beg me to put back the inline frame of the post when you post a reply, this was a spiffy little feature in the UBB.

    It takes about 20 sec to do, but i think it adds a whole lot to the forums.

    in the template <b>newreply</b> goto the bottom and find:
    Code:
    <TABLE cellpadding=4 border=0 cellspacing=1 WIDTH="100%">
    <TR bgcolor="#113274"><TD COLSPAN=2 align="center">
    <FONT SIZE="2" FACE="arial, helvetica" COLOR="#FFFFFF"><b>Topic Review (Newest First)</b></font>
    </td></tr>
    
    $threadreviewbits
    
    </table>
    replace this with:
    Code:
    <IFRAME FRAMEBORDER=1 ALIGN=CENTER width=100% HEIGHT=200 SCROLLING=YES SRC="showthread.php?threadid=$threadid">
    <TABLE cellpadding=4 border=0 cellspacing=1 WIDTH="100%">
    <TR bgcolor="#113274"><TD COLSPAN=2 align="center">
    <FONT SIZE="2" FACE="arial, helvetica" COLOR="#FFFFFF"><b>Topic Review (Newest First)</b></font>
    </td></tr>
    
    $threadreviewbits
    
    </table>
    </IFRAME>
    This will replace the standard threadview section with a copy of the actual html page in a little frame about 200 pixles high for IE users, netscape users cant see iframe tags, so they will see the old setup, with the text from the posts in reverse order (how its set up now).

    The only bug i have found, is if you have HTML on, and a user puts an iframe in one of there posts, when sombody posts a reply, there will be two iframes at the bottom of the page, i guess you cant have an iframe in an iframe? anyone know how to fix this?

  2. #2
    rjav8r
    Guest
    Thanks!!!

  3. #3
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    Anyway to have the iframe expand to fit the page it is showing? If you don't supply a "height" tag would it accomplish this?
    vBulletin Developer since Dec 2000

  4. #4
    Senior Member Joe is on a distinguished road
    Join Date
    May 2000
    Location
    Highland, Utah.
    Age
    31
    Posts
    2,435
    rjav8r:
    No problem

    Rangersfan:
    If you dont set the height, i believe it defaults to 150 or so. you can set the height to 100%, but that only sets the frame to 100% of the viewing window. Im not sure it offers what you want. But i'll keep looking.

    Everyone Else:
    You can also link to: "showthread.php?threadid=$threadid#newpost"
    This will bring up the new post in the iframe, so the user dosent need to scroll to the post in the iframe. Just an idea.




  5. #5
    Senior Member doron is on a distinguished road
    Join Date
    Apr 2000
    Location
    Austin, TX
    Age
    29
    Posts
    670
    iframe within a ifram should be possible, but ie does not allow that. netscape 6 does

  6. #6
    Senior Member nuno has disabled reputation nuno's Avatar
    Join Date
    Apr 2001
    Age
    34
    Posts
    4,377
    heh
    sorry to dig up this thread from the grave
    tx Joe
    You're my Prince of Peace
    And I will live my life for You

  7. #7
    Senior Member Joe is on a distinguished road
    Join Date
    May 2000
    Location
    Highland, Utah.
    Age
    31
    Posts
    2,435
    It may take some chainging, this was for 1.13

+ Reply to Thread

Similar Threads

  1. info from iframe 1 to iframe 2
    By buzzby365 in forum PHP & HTML Questions
    Replies: 1
    Last Post: Tue 8th Jun '04, 8:28pm
  2. [bug?] can't answer via post reply after deleting own post
    By Turtullo in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 1
    Last Post: Sun 20th Apr '03, 7:47pm
  3. Switching the order of Post New Thread and Post a Reply buttons?
    By Boss-Hog in forum vBulletin Templates, Graphics & Styles
    Replies: 1
    Last Post: Thu 1st Aug '02, 1:42am
  4. bug? reply doesn't work if the reply is orecisely the same as another post in thread
    By buro9 in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Thu 18th Apr '02, 2:48pm
  5. Can't post thread or reply post
    By mel in forum vBulletin Installation
    Replies: 0
    Last Post: Wed 21st Mar '01, 11:16pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts