• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Channel not in Homepage block

Started by tkirui,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tkiruiTopic starter

I have one block on the home page with all the videos. I want to create a channel that will have videos that will not appear on the home block but only show the channel videos when clicked upon.

How can i create a channel and prevent these videos from coming on my one home page block?

Any advice anyone?
  •  

Marius P.

open tpl/main/home.php

find

else:
$vq = "select ".$options.", ".DB_PREFIX."users.name as owner FROM ".DB_PREFIX."videos LEFT JOIN ".DB_PREFIX."users ON ".DB_PREFIX."videos.user_id = ".DB_PREFIX."users.id WHERE ".DB_PREFIX."videos.views >= 0 and pub > 0 AND category != 'xxx' ORDER BY ".DB_PREFIX."videos.id DESC ".this_offset($limit);
endif;



Replace xxx with your hidden category's id and this should be the new code:


else:
$vq = "select ".$options.", ".DB_PREFIX."users.name as owner FROM ".DB_PREFIX."videos LEFT JOIN ".DB_PREFIX."users ON ".DB_PREFIX."videos.user_id = ".DB_PREFIX."users.id WHERE ".DB_PREFIX."videos.views >= 0 and pub > 0 $c_add ORDER BY ".DB_PREFIX."videos.id DESC ".this_offset($limit);
endif;
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)