• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Video Channels and Music Channels

Started by x5000x,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

x5000xTopic starter

Hello Mario,

I would like to make few modifications to the menu but need your professional assistance:
I use UltimaTheme.

1) How to completely remove or hide "Video Channels" from menu.
2) How can i make main categories visible under "Music Channels"
3) How can i sort main categories under "Music Channels" by the date they are added and sort subcategories by alphabet

Please help.
Thanks in advance,
  •  

Marius P.

Hi,
open sidebar.php

1. Remove this line:
<li class="lihead"><a href="'.site_url().channels.'"><i class="icon-indent">'._lang('Video Channels').'[/url]'.the_nav().'</li>';

2. I assume you can try a trick like this:


echo '<li class="lihead"><a href=""><i class="icon-headphones"></i>'._lang('Music Channels').'



to


echo '<li class="lihead open active"><a href=""><i class="icon-headphones"></i>'._lang('Music Channels').'



3. It would be pretty hard, I can't say right now since with the default coding this is pretty impossible (no creation date queried or saved in database for channels).
I can point you to the generation process which is this function in lib/functions.php


function the_nav($type=1) {
global $db, $cachedb;
include_once( INC.'/class.tree.php' );
$nav = '';
$tree = new Tree;
$categories = $cachedb->get_results("SELECT cat_id as id, child_of as ch, cat_name as name, picture FROM  ".DB_PREFIX."channels WHERE type='$type' order by cat_name ASC limit 0,10000");
if($categories) {	
foreach ($categories as $cat) {
if($cat->ch < 1) {$cat->ch = null;}
		$label = '<a href="'.channel_url($cat->id, $cat->name).'" title="'. _html($cat->name).'"><img src="'.thumb_fix($cat->picture, true, 23, 23).'" class="cat-menu-img"/>'. _html($cat->name).'</a>';
		$li_attr = '';		
		$tree->add_row($cat->id, $cat->ch, $li_attr, $label);
	}
$nav .=$tree->generate_list();	
}
			
return apply_filters('the_navigation' , $nav);
}
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)