• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Categories / subcategories problem

Started by cognit21,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cognit21Topic starter

If I have a subcategories and I want to display the videos of the categories with subcategories in the block on the main page. Videos from different subcategories of the same category in the same block! And at the moment I can display video of the categories, ie if no subcategories, or I can only display video from specific subcategories. Do you have a solution for this problem?
  •  

PHPVibe A.

I guess a change like this:

tpl/{your theme}/home.php change

if(!empty($box->ident)){ $c_add .="AND category = '".intval($box->ident)."'"; }


to

if(!empty($box->ident)){ $c_add .="AND category in (SELECT cat_id from ".DB_PREFIX."channels where cat_id = '".intval($box->ident)."' or child_of = '".intval($box->ident)."' )"; }


Should do it.

Didn't test it (I'm on mobile).
If any errors, post them.

 

Similar topics (7)

Troubleshoot problems

Started by Marius P.


Replies: 13
Views: 14760

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 40283

Search problem on mobile for v5

Started by mihai


Replies: 1
Views: 1767

2 Problem for EDGE

Started by sowieso


Replies: 1
Views: 2269

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 22844

The problem of text chatting PHPVibe 5.0.

Started by Nayn


Replies: 4
Views: 6894

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 51180