• Welcome to PHPVIBE Forums. Please log in.
G

[ Video Sharing CMS v4 ] Channel mod

Started by guest7728,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guest7728

This mod allows the linking of subchannel back into the channel and subchannel at the same time added to the <H1> name of the parent channel.
It is difficult to explain with my English. Better image will :-)


How to:

First, backup your file tpl/main/channel.php!

Open file:
tpl/main/channel.php

Around row 11 find:
<div class="body">
<h1>'._html($channel->cat_name).'</h1>
'._html($channel->cat_desc).'
</div>



Replace by:
<div class="body"><h1>';
$parent=$db->get_results("SELECT cat_id,cat_name from vibe_channels where cat_id=(select child_of from vibe_channels where cat_id={$channel->cat_id}) ");
if($parent) $heading_meta .='<a style="font-size: 18px;" href="'.channel_url($parent[0]->cat_id,$parent[0]->cat_name).'" title="'._html($parent[0]->cat_name).'">'._html($parent[0]->cat_name).'</a> ';
		
$heading_meta .=_html($channel->cat_name).'</h1>
'._html($channel->cat_desc).'
</div>


Warning! I assume no responsibility for the human stupidity  8)
Meybe is better way to modify this, but...

Enjoy!
  •  

DeadFish

This is literally a great code.
  •  

max18121980

Brilliant work !!!!
Maybe you can help with a similar problem, which shows the name of the category under the video player.
To also specify the full path.
  •  

guest7728

  •  

max18121980

here it indicated only minor category, but does not specify how the general category on your screenshots
  •  

max18121980

#5
Oh sorry,

I did not notice, but I have not displayed under the video as yours

Need whis plz))
  •  

guest7728

I know, coz this is another mod :-)

I'm not sure if it will work, be sure to make a backup!

tpl/main/video.php

find:
<h1><?php echo _html($video->title);?></h1>


replace by:
<h1><?php echo _html($video->title);?></h1>
<h3>

Channel: 
<?php 
$parent=$db->get_results("SELECT cat_id,cat_name from vibe_channels where cat_id=(select child_of from vibe_channels where cat_id={$video->category}) ");
if($parent){?>
<a href="<?php echo channel_url($parent[0]->cat_id,$parent[0]->cat_name);?>" title="<?php echo _html($parent[0]->cat_name);?>"><span class="redText"><?php echo _html($parent[0]->cat_name);?></span></a> &gt;
<?php }?>
<a href="<?php echo channel_url($video->category,$video->channel_name);?>" title="<?php echo _html($video->channel_name);?>"><span class="redText"><?php echo _html($video->channel_name);?></span></a> 

</h3>
  •  

DeadFish

For the main channels. Is it possible to have the scroll effect for the vids of the sub channels under the posters. Instead of them piled up. Basically sliding the vids of each sub channel. Basically they can be stacked on top of each other. Sort of like how the main homepage can do. If you get what I mean.
  •  

DeadFish

For the Category blocks. Is it possible to have it read the Channels Parent Sub Categories. Basically you choose a parent Directory, but it also shows the vids from the Sub Categories.

Being that when I choose a parent directory when creating a block. It does not show the subcategories for that parent directory for the homepage. Wondering if there was a code to fix that.
  •  

Similar topics (7)