02-22-2012, 02:01 AM
Pages: 1 2
02-22-2012, 04:28 AM
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.
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.
02-22-2012, 04:33 AM
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
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
02-22-2012, 04:59 AM
ok, follow these steps
open /sidebar.php
after
add
in your static/css/style.css
add
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'].'&h=20&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}02-22-2012, 05:45 AM
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.
which section of the code do i remove to get rid of the categories in the header.
02-22-2012, 09:36 AM
its ok i found it.thanks
02-24-2012, 09:08 AM
wanna share your site man? i want to look how it would like after removing the categories on top.
02-24-2012, 09:32 AM
02-24-2012, 11:22 PM
with your current category, can you still upload icons?
02-25-2012, 04:51 AM
(02-24-2012 11:22 PM)facebook Wrote: [ -> ]with your current category, can you still upload icons?
Yes
Pages: 1 2