Results 1 to 3 of 3

Thread: div frames, really need help

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default div frames, really need help

    Been waiting a few days for responses from vbulletin forums, but I got nothing.

    I added a new template called custom_chat

    However, if I wish to include this template automatically in another custom page, what should the code be?

    For example, most templates have

    $header
    $navbar

    What would the code be to include the added template named custom_chat?

    I tried the below (with and without "custom_" prefix) but it did not pull up the content accordingly.

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
      <title>Christian Chat Room</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <meta content="Christian Chat Room" name="description">
      <meta content="Christian Chat Room" name="keywords">
    <style type="test/css">
    <!--
    #leftframe {
       display: block;
       height: 600px;
       margin: 0 25% 0 0;
       overflow: scroll;
    }
    
    #rightrame {
      float: right;
      width: 25%;
      height: 600px;
      display: block;
      overflow: auto;
    }
    
    -->
    </style>
    </head>
    <body>
    $header
    $navbar
    
    <div id="chatcontainer">
    
    <div id="rightframe">
    test
    </div>
    
    <div id="leftframe">
    $chatroom
    </div>
    
    </div>
    
    $footer
    </body>
    </html>
    I tried this also
    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
      <title>Christian Chat Room</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <meta content="Christian Chat Room" name="description">
      <meta content="Christian Chat Room" name="keywords">
    <style type="test/css">
    <!--
    #leftframe {
       display: block;
       height: 600px;
       margin: 0 25% 0 0;
       overflow: scroll;
    }
    
    #rightrame {
      float: right;
      width: 25%;
      height: 600px;
      display: block;
      overflow: auto;
    }
    
    -->
    </style>
    </head>
    <body>
    $header
    $navbar
    
    <div id="chatcontainer">
    
    <div id="rightframe">
    test 123
    </div>
    
    <div id="leftframe">
    $misc.php?do=page&template=chatroom
    </div>
    
    </div>
    
    $footer
    </body>
    </html>
    and it did not work. That actual template name is custom_chatroom

    I also tried without the "$" and both methods only shows the actual link.


    On a side note, I tried this code but it appeared this way on top of each other instead of two side by side columns.




    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
      <title>Christian Chat Room</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <meta content="Christian Chat Room" name="description">
      <meta content="Christian Chat Room" name="keywords">
    <style type="test/css">
    <!--
    #leftframe {
       display: block;
       height: 600px;
       margin: 0 25% 0 0;
       overflow: scroll;
    }
    
    #rightrame {
      float: right;
      width: 25%;
      height: 600px;
      display: block;
      overflow: auto;
    }
    
    -->
    </style>
    </head>
    <body>
    $header
    $navbar
    
    <div id="chatcontainer">
    
    <div id="rightframe">
    test right
    </div>
    
    <div id="leftframe">
    test left
    </div>
    
    </div>
    
    $footer
    </body>
    </html>
    Talk Jesus Forums [ Over 100 Fulfilled Prophecies in the Bible ]
    .....................................................................................
    LogicWeb [ Awesome Web Hosting Since 2004 ]

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    you will have to have the container div display:inline; Or else they will stack. So...

    for #chatcontainer
    Code:
    #chatcontainer {
               display: inline;
    }
    add that to your CSS and it should help.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Still stacks on top of each other


    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
      <title>Christian Chat Room</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <meta content="Christian Chat Room" name="description">
      <meta content="Christian Chat Room" name="keywords">
    <style type="test/css">
    <!--
    #leftframe {
       display: block;
       height: 600px;
       margin: 0 25% 0 0;
       overflow: scroll;
    }
    
    #rightrame {
      float: right;
      width: 25%;
      height: 600px;
      display: block;
      overflow: auto;
    }
    #chatcontainer {
      display: inline;
    }
    
    -->
    </style>
    </head>
    <body>
    $header
    $navbar
    
    <div id="chatcontainer">
    
    <div id="rightframe">
    test right
    </div>
    
    <div id="leftframe">
    test left
    </div>
    
    </div>
    
    $footer
    </body>
    </html>
    Talk Jesus Forums [ Over 100 Fulfilled Prophecies in the Bible ]
    .....................................................................................
    LogicWeb [ Awesome Web Hosting Since 2004 ]

Bookmarks

Posting Permissions

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