• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to limit number of channels in sidebar.

Started by hamnawa,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PHPVibe A.

I've checked this:


res.php?src=../uploads/1372947300-Atash.png&q=100&w=23&h=23


it outputs the default image.

res.php?src=uploads/1372947300-Atash.png&q=100&w=23&h=23


outputs the actual channel image.

Am I wrong?

hamnawaTopic starter

You are right. Now I have removed all the actual thunmbs it should display noimage in all channels. as you can see in the snapshot it displays the same image (noimage.png) in different size in few channels at the end.

I have re sized the noimage.pnp to 30Pixels.

I noted a difference in channel table structure in PhomyAdmin it shows heading starting from the channels which displays different size image then others.

Can you please have a look at Phpmyadmin your self.
  •  

PHPVibe A.

I noted a difference in channel table structure in PhomyAdmin it shows heading starting from the channels which displays different size image then others.


Can you rephrase this, your English is killing me.

There is no size attached to the thumbnail in the sql.

you can open lib/functions.php and see for yourself:

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' 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);
}

hamnawaTopic starter

I apologize for my poor English. My question about the thumbs is:

One image is used for almost 80% of the channels which is noimage.png.

It is not being displayed in same size for all channels list.

Please see the snapshot attached or scroll down on the website to see channels listed at the end in the left sidebar you may notice the difference your self.
  •  

PHPVibe A.

So, this was the problem.
I have no idea from where this comes, i assume leftover cache file in cache/thumbs/ that didn't get deleted (you should fully empty this folder's content).

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 48545

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 77410

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 60193

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 5565

Better Idea for PHPVibe v5 Channels page

Started by DeadFish


Replies: 2
Views: 4776

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 29302

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 12648