• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to show category next to views

Started by SonicSync,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SonicSyncTopic starter

How can I show the category in which the video is next to Views.
I tried to work with the video-loop.php by extracting the code from video.php but it didn't work.
There seems to be a PHP vs. HTML code conflict.

So far I got this: '.$video->views.' '._lang('views').'  '.$video->channel_name.'

but doesn't show anyting, missing something here....
  •  

PHPVibe A.

The channel_name is not queried, nor the channel table is joined in the sql query.
I would suggest you don't do this, as it will make your website heavy.

SonicSyncTopic starter

thanks!

but i want to test things out, how do i do it?

i edited com_videolist.php and added the queries from com_video.php but wasn't successful.

any recommendations?
  •  

Similar topics (7)