FreelanceOnWeb - Forum

Full Version: left menu instead of in header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi

is it possible to have the menu instead of in the header down the left hand side? this was i can add more categories.

thanks
Hi gyou,

I don't see what you wanna do, in the left? where? in the left of "Create your FB Status!" box ?

I think display the categories in the right sidebar it would be better.
hi

well as i said in the email i want to create about 10-15 categories. left or right dosnt matter tbh but putting 10-15 categories in the header is too much.

can you advise on putting the categories in the right then

thanks
ok, follow these steps

open /sidebar.php

after

Code:
<div class="likefb"><div class="fb-like" data-href="<?php echo SITEURL ?>" data-send="true" data-layout="button_count" data-width="160" data-show-faces="false" data-font="arial"></div></div>

add

Code:
            <h3 class="title"><img src="static/img/facebook.png" alt="" /> Categories</h3>
    <ul class="sidebar_cats">
            <li <?php if(empty($cat['id_cat']) && !isset($_GET['topcomments']) && !isset($_GET['toplikes'])) echo 'class="current"'; ?>><a href="index.php"><?php echo $lang[1] ?></a></li>
            <?php    
                $req = $bdd->query('SELECT * FROM fbsl_cat ORDER BY `order_cat` ASC');
                $thumb_cat=array();
                while ($row = $req->fetch())
                {
                    $current='';
                    if(!empty($row['icon_cat']))
                        $icon='<img src="includes/zoom.php?src=upload/site/'.$row['icon_cat'].'&amp;h=20&amp;w=20" alt="icon" class="icon" />';
                    if($cat['id_cat']==$row['id_cat']) $current="class='current'";    
                    
                    $reqtmp = $bdd->query('select count(*) from fbsl_status WHERE status=2 AND id_cat='.$row['id_cat']);
                    $rowtmp = $reqtmp->fetch();
                    $count=$rowtmp[0];
                    $thumb_cat[$row['id_cat']]=$row['thumb_cat'];
                    echo '<li '.$current.'><a href="index.php?cat='.$row['id_cat'].'"> '.$icon.' '.$row['name_cat'].' ('.$count.')</a></li>';
                    echo "\n";
                }
                $req->closeCursor();
            ?>        
    </ul>

in your static/css/style.css

add

Code:
.sidebar_cats li{margin:0 0 10px 10px}
good man thanks for that, much better i think.
which section of the code do i remove to get rid of the categories in the header.
its ok i found it.thanks
wanna share your site man? i want to look how it would like after removing the categories on top.
with your current category, can you still upload icons?
(02-24-2012 11:22 PM)facebook Wrote: [ -> ]with your current category, can you still upload icons?

Yes
Pages: 1 2
Reference URL's