Column structure on homepage, is it possible?

On the default homepage, under the flash image rotator, there are 2 vertical columns side-by-side.

I would like to add a single column abouve those 2 columns, that spans the width of the page.

So it would be;

flash rotator

single column

default column 1     default column 2


In the pages builder, when I create a new column, it just breaks the page in to a 3 column layout, there is no way to add the column above the 2 other default columns.

So I guess my question is, is this possible?

Thanks,

Bill

newbreed
Quote · 1 May 2009

I am a little confused by your question. A collum is vertical, are asking to a colum above

What is it that exactly want to do.

Quote · 1 May 2009

ok, let me try explaining it like this...

a row on top of the 2 columns, does that make more sense?

I will try to draw it out here...lol

Header area

Flash image rotator

------------------------------

| row, width of page        |

|                                   |

------------------------------

|                     |             |

|    col 1          |   col 2   |

|                     |             |

|                     |             |

|                     |             |

|                     |             |

|                     |             |

|                     |             |

|                     |             |

|                     |             |

------------------------------

footer area

Does that make more sense?

newbreed
Quote · 1 May 2009

You can try this,

 

Edit templates/tmpl_uni/page_1.html

 

From:

__include _header.html__
 __promo_code__
 __page_main_code__
__include _footer.html__

 

Edit to:

__include _header.html__
        __promo_code__

        <div class="disignBoxFirst">
  <div class="boxFirstHeader">Female Members</div>
  <div class="boxContent">
   <div class="clear_both"></div>
                        __female__
                        <div class="clear_both"></div>
  </div>
 </div>
 <div class="clear_both"></div>

 __page_main_code__
__include _footer.html__

 

 

Edit index.php
 

Add below $_page_cont[$_ni]['promo_code'] = getPromoCode();

 

$_page_cont[$_ni]['female'] = getFemaleUsers();

 

 
Edit inc/design.inc.php

Find this line (at the end of file)
// ----------------------------------- site statistick functions --------------------------------------//

 

Add code below above this line

 

/**
* Female members on homepage below promo code
*/
 function getFemaleUsers() {
  global $site;
  global $aPreValues;
  global $getBlockCode_Female_db_num;
  global $max_thumb_width;
  global $max_thumb_height;
  global $oTemplConfig;
 
  $female_num = '7';
 
  if ( $female_num )
  {
                 $female_res = db_res( "SELECT `ID`, `NickName`, `DateOfBirth`, `Country`
                                        FROM `Profiles`
                                        WHERE `Sex` = 'female' AND `Couple` = '0' AND `Picture` = '1' AND `Status` = 'Active'
                                        ORDER BY RAND()
                                        LIMIT $female_num" );
                        $ret .= '<div class="clear_both"></div>';
   
   if( mysql_num_rows( $female_res ) > 0 )
   {
    $j=1;
    while( $female_arr = mysql_fetch_assoc( $female_res ) )
    {
 
    $female_country = _t($aPreValues['Country'][$female_arr['Country']]['LKey']);                              
    $female_flag = '&nbsp;<img src="'. ($site['flags'].strtolower($female_arr['Country'])) .'.gif" alt="flag" />';

                                        $ret .= '<div class="featured_block_1">';
     $ret .= get_member_thumbnail( $female_arr['ID'], 'none' );
                                        $ret .= '<center>';
                                        $ret .= '<a href="' . getProfileLink( $female_arr['ID'] ) . '">';
                                        $ret .= process_line_output( $female_arr['NickName'] );
                                        $ret .= '</a>';
                                        $ret .= ", ";
                                        $ret .= age( $female_arr['DateOfBirth'] );
                                        $ret .= '<br />';
                                        $ret .= $female_country;
                                        $ret .= $female_flag;
                                        $ret .= '</center>';
                                        $ret .= '<br />';
     $ret .= '</div>';

     $j++;
    }
   }
   else
   {
    $ret .= '<div class="no_result">';
     $ret .= '<div>';
      $ret .= _t("_No results found");
     $ret .= '</div>';
    $ret .= '</div>';
   }
   $ret .= '<div class="clear_both"></div>';
  }
  
  return $ret;
 }

 

 

-------------------------------------------------

Edit code to what you will have thereSmile

Quote · 2 May 2009

Thanks okweb, but that's way too difficult a process to follow up on for such a simple (or so I thought) request as far as homepage modification.

I just don't undersdtand I guess why main page control has to be so difficult, you'd think Boonex would consider the basic needs of this page's design, and the ease of which it could be, considering how much thought and skill were put in to the other editing controls.

newbreed
Quote · 4 May 2009

If you only will use html code, you need only to add code to file page_1.html

 

But if you will use info from DB and php/html code it's no other way to show it,

it's not so difficult if you learn a bit how it work.

Quote · 4 May 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.