Announcement

Collapse
No announcement yet.

how to add something to the forum frontpage

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

  • how to add something to the forum frontpage

    I wanted to know how to make something like this this is the pic
    Attached Files
    Last edited by Sasan(IFC); Sat 11 Feb '06, 4:40pm.

  • #2
    Check out this link, I was helping alignment issues for Gary B. and if you follow the link inside Gary's post, it will take you to Jake Bouce tutorial for adding column.

    http://www.vbulletin.com/forum/showthread.php?t=174598

    Comment


    • #3
      hey

      Thanks so much,your the man

      Comment


      • #4
        hey

        hey man if i want do something
        PHP Code:
        <!-- logo -->
        <
        tr>
        <
        td align="$stylevar[left]"><a href="http://www.iranfootballcenter.com" title="Iran Football Center Homepage"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a>
        </
        td>
        <
        td align="$stylevar[right]">
        &
        nbsp;
        <!--
        NEW 
        HEADER &ampNAVBAR
         
        Now that the nav buttons are in the
        navbar template
        you can stick whatever
        you like into this space
        .
        This makes it much easier for novice
        admins to customize their header
        template without affecting important
        navigation elements
        .
        -->
        </
        td>
        </
        tr>
        </
        table>
        <!-- /
        logo -->
        <
        table width="$stylevar[outertablewidth]border="0" cellpadding="0" cellspacing="0" align="center">
        <
        table width="$stylevar[outertablewidth]border="0" cellpadding="0" cellspacing="0" align="center">
        <
        tr>
        <
        td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
        IFC Latest Video's
        </td>
        <td valign="top">
         
        <!-- content table -->
        $spacer_open
        $_phpinclude_output 

        tell me what do now

        Comment


        • #5
          Draw me a picture on what you want it to look like? I have no idea what is in your head?

          Comment


          • #6
            PHP Code:
            <!-- logo -->
            <
            tr>
              <
            td align="$stylevar[left]"><a href="http://www.iranfootballcenter.com" title="Iran Football Center Homepage"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a>
            </
            td>
             <
            td align="$stylevar[right]">
              &
            nbsp;
            <!--
              NEW 
            HEADER &ampNAVBAR
              
              Now that the nav buttons are in the
              navbar template
            you can stick whatever
              you like into this space
            .
              
            This makes it much easier for novice
              admins to customize their header
              template without affecting important
              navigation elements
            .
            -->
             </
            td>
            </
            tr>
            </
            table>
            <!-- /
            logo -->

            <
            table width="$stylevar[outertablewidth]border="0" cellpadding="0" cellspacing="0" align="center">
             <
            tr>
             <
            td width="250" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
             
            <!-- 
            Left Side One Start -->
            <
            table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
            <
            tr>
            <
            td class="tcat"><a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_left_side_one')">
                    <
            img id="collapseimg_forumhome_left_side_one" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_left_side_one].gif" alt="" border="0" /></a>
            <!-- 
            Title Start -->
            <
            a href="http://www.iranfootballcenter.com/forum/forumdisplay.php?f=7">"  IFC Latest Videos
            </a></strong></span></td>
            <!-- Title End -->
            </td>
            </tr>
            <tbody id="
            collapseobj_forumhome_left_side_one" style="$vbcollapse[collapseobj_forumhome_left_side_one]">
            <tr>
            <td class="
            alt1">
            <!-- Text Start -->
            <a href="
            http://www.iranfootballcenter.com/forum/showthread.php?t=1459">(Exclusive)Mahdavikia's Goal against Mainz today including aftermatch interview </a></strong></span></td>
            <!-- Text End -->
            </
            td>
            </
            tr>
            </
            table>
            <!-- 
            IFC Latest Video's -->
             
             </td>
             <td valign="top">
             

            <!-- content table -->
            $spacer_open
            $_phpinclude_output 


            This is my lastest thing ,I want the link to have some color on it and i want background that might be really awosome www.iranfootballcenter.com/forum

            Comment


            • #7
              Go in here and test it out. You can post and tell me exactly what you are looking for.

              http://demo.vbulletin.com/index.php

              User Name: Demo7424
              Password: b040bad6

              Comment


              • #8
                I want the background of it green and i want words bigger and highlighted by Red
                www.iranfootballcenter.com/untitled.JPG

                Comment


                • #9
                  I could not figure out what was going wrong, then I forgot I copy paste your code and it was not working. I made the proper edits and now it is working

                  Code:
                  <!-- Custom Left Block Start -->
                  <table width="$stylevar[outertablewidth]" body bgcolor="white" cellpadding="0" cellspacing="0" align="center">
                  	<tr>
                  		<td style="padding:6px 0px 25px 25px" width="200" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
                  <!-- IFC Latest Video's -->
                  		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:10px" align="center">
                  		<tr>
                  		        <td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('left_side_one')">
                  		        <img id="collapseimg_left_side_one" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_left_side_one].gif" alt="" border="0" /></a>
                  <!-- Title Start -->
                  Bookmark Site
                  <!-- Title End -->
                  		        </td>
                  		</tr>
                  	<tbody id="collapseobj_left_side_one" style="$vbcollapse[collapseobj_left_side_one]">
                  		<tr>
                  		        <td bgcolor="green">
                  <!-- Text Start -->
                  		        <center>
                  		        <div> 
                  		        <a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1459">
                  <font color="FF0000"><strong>(Exclusive)Mahdavikia's Goal against Mainz today including aftermatch interview</stron></font></a>
                  		        </div>
                  
                  <br />
                  
                  		        <div> 
                  <a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1459">
                  <font color="FF0000"><strong>(Exclusive)Mahdavikia's Goal against Mainz today including aftermatch interview</stron></font></a>
                  		        </div>
                  
                  <br />
                  
                  		        <div> 
                  		        <a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1459">
                  <font color="FF0000"><strong>(Exclusive)Mahdavikia's Goal against Mainz today including aftermatch interview</stron></font></a>
                  		        </div>
                  </center>
                  <!-- Text End -->
                  		        </td>
                  		</tr>
                  		</table>
                  <!-- IFC Latest Video's -->
                  		</td>
                   <td valign="top">
                  <!-- Custom Left Block End -->
                  
                  	</td>
                  
                  	<td valign="top">
                  Last edited by Jose Amaral Rego; Sun 12 Feb '06, 11:55am.

                  Comment


                  • #10
                    Thanks dude ,apprecaite what you did for me

                    Comment


                    • #11
                      Lets say i want to add something underneth of the other link what do I do

                      Comment


                      • #12
                        Read post number #9 (nine) and see the edits I made, you will notice if you repeat same information and add <br /> ( breakline ) it will create what you are looking for.

                        Comment


                        • #13
                          PHP Code:
                          <!-- logo -->
                          <
                          tr>
                          <
                          td align="$stylevar[left]"><a href="http://www.iranfootballcenter.com" title="Iran Football Center Homepage"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a>
                          </
                          td>
                          <
                          td align="$stylevar[right]">
                          &
                          nbsp;
                          <!--
                          NEW 
                          HEADER &ampNAVBAR
                           
                          Now that the nav buttons are in the
                          navbar template
                          you can stick whatever
                          you like into this space
                          .
                          This makes it much easier for novice
                          admins to customize their header
                          template without affecting important
                          navigation elements
                          .
                          -->
                          </
                          td>
                          </
                          tr>
                          </
                          table>
                          <!-- /
                          logo -->
                          <!-- 
                          Custom Right Block Start -->
                          <
                          table width="$stylevar[outertablewidth]border="0" cellpadding="0" cellspacing="0" align="center">
                          <
                          tr>
                          <
                          td valign="top">
                          <
                          td style="padding:6px 0px 25px 25px" width="200" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
                          <!-- 
                          IFC Latest Video's -->
                          <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:10px" align="center">
                          <tr>
                          <td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
                          left_side_one')">
                          <img id="collapseimg_left_side_one" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_left_side_one].gif" alt="" border="0" /></a>
                          <!-- Title Start -->
                          <font color="FF0000"><strong>IFC Lastest Video'
                          s</stron></font></a>
                           
                          <!-- 
                          Title End -->
                          </
                          td>
                          </
                          tr>
                          <
                          tbody id="collapseobj_left_side_one" style="$vbcollapse[collapseobj_left_side_one]">
                          <
                          tr>
                          <
                          td bgcolor="white">
                          <!-- 
                          Text Start -->
                          <
                          center>
                          <
                          div
                          <
                          a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1459">
                          <
                          font color="FF0000"><strong>(Exclusive)Mahdavikia's Goal against Mainz today including aftermatch interview</stron></font></a>
                          </div>
                          <br />
                          <div> 
                          <a href="http://www.iranfootballcenter.com/forum/showthread.php?p=6861#post6861">
                          <font color="FF0000"><strong>Schalke 7-4 Leverkusen- Goals</stron></font></a>
                          </div>
                          <br />
                          <div> 
                          <a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1442">
                          <font color="FF0000"><strong>Hashemians Beautiful Goal against Hamburg*must_see</stron></font></a>
                          </div>
                          </center>
                          <!-- Text End -->
                          </td>
                          </tr>
                          </table>
                          <!-- IFC Latest Video'
                          -->
                          </
                          td>
                          <
                          td valign="top">
                          <!-- 
                          Custom Right Block End -->
                          </
                          td>
                          <
                          td valign="top">
                           
                          <!-- 
                          content table -->
                          $spacer_open
                          $_phpinclude_output 
                          So if i want to add another coulm under this ,I need to copy and paste the whole thing or something

                          Comment


                          • #14
                            You have to make this only for FORUM index display only or you are going to have problems with postbit and postbit_legacy view of post. I could just place an conditional for this if you want.

                            basically copy the other code and place it for the footer.
                            http://demo.vbulletin.com/index.php

                            User Name: Demo4f87
                            Password: 31fb0717


                            One thing if you do add this, always give a different name for collapsing boxes

                            In yours you have [ left_side_one ] named for one table box and if you make another, you need to call it some else like for the right side [ right_side_one ] and so on.
                            Last edited by Jose Amaral Rego; Sun 12 Feb '06, 4:42pm.

                            Comment


                            • #15
                              I have been trying to put the code on the other side

                              i have been trying to put the box on the right hand side of the forum,it hasent been working properly

                              This is Footer

                              PHP Code:
                              <br />
                              <
                              div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
                              <
                              br />
                              $spacer_close
                              <!-- /content area table -->
                              <!-- 
                              Custom Right Block Start -->
                              <
                              table width="$stylevar[outertablewidth]border="0" cellpadding="0" cellspacing="0" align="center">
                              <
                              tr>
                              <
                              td valign="top">
                              <
                              td style="padding:6px 0px 25px 25px" width="200" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
                              <!-- 
                              IFC Latest Video's -->
                              <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" style="margin-top:10px" align="center">
                              <tr>
                              <td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
                              left_side_one')">
                              <img id="collapseimg_left_side_one" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_left_side_one].gif" alt="" border="0" /></a>
                              <!-- Title Start -->
                              <font color="FF0000"><strong>IFC Lastest Video'
                              s</stron></font></a>
                               
                              <!-- 
                              Title End -->
                              </
                              td>
                              </
                              tr>
                              <
                              tbody id="collapseobj_left_side_one" style="$vbcollapse[collapseobj_left_side_one]">
                              <
                              tr>
                              <
                              td bgcolor="white">
                              <!-- 
                              Text Start -->
                              <
                              center>
                              <
                              div
                              <
                              a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1459">
                              <
                              font color="FF0000"><strong>(Exclusive)Mahdavikia's Goal against Mainz today including aftermatch interview</stron></font></a>
                              </div>
                              <br />
                              <div> 
                              <a href="http://www.iranfootballcenter.com/forum/showthread.php?p=6861#post6861">
                              <font color="FF0000"><strong>Schalke 7-4 Leverkusen- Goals</stron></font></a>
                              </div>
                              <br />
                              <div> 
                              <a href="http://www.iranfootballcenter.com/forum/showthread.php?t=1442">
                              <font color="FF0000"><strong>Hashemians Beautiful Goal against Hamburg*must_see</stron></font></a>
                              </div>
                              </center>
                              <!-- Text End -->
                              </td>
                              </tr>
                              </table>
                              <!-- IFC Latest Video'
                              -->
                              </
                              td>
                              <
                              td valign="top">
                              <!-- 
                              Custom Right Block End -->
                              </
                              td>
                              <
                              td valign="top">
                               
                               
                              <
                              form action="$vboptions[forumhome].php" method="get">
                               
                              //-->
                              </script


                              and this is Header

                              PHP Code:
                              <!-- logo -->
                              <
                              tr>
                              <
                              td align="$stylevar[left]"><a href="http://www.iranfootballcenter.com" title="Iran Football Center Homepage"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a>
                              </
                              td>
                              <
                              td align="$stylevar[right]">
                              &
                              nbsp;
                              <!--
                              NEW 
                              HEADER &ampNAVBAR
                               
                              Now that the nav buttons are in the
                              navbar template
                              you can stick whatever
                              you like into this space
                              .
                              This makes it much easier for novice
                              admins to customize their header
                              template without affecting important
                              navigation elements
                              .
                              -->
                              </
                              td>
                              </
                              tr>
                              </
                              table>
                              <!-- /
                              logo -->
                              <
                              table width="$stylevar[outertablewidth]border="0" cellpadding="0" cellspacing="0" align="center">
                              <
                              tr>
                              <
                              td valign="top">
                               
                              <!-- 
                              content table -->
                              $spacer_open
                              $_phpinclude_output 

                              Comment

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