Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Module position

10 years 11 months ago
  • Mike's Avatar
    Topic Author
  • Mike
  • Offline
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 0
Licenses:
JomSocial Active

Please can you tell me if there is specific module position for the right side bar on the videos page. I have tried the js_side_bottom and js_side_top position but nothing is displayed on the videos page side bar.

10 years 11 months ago
Licenses:

Hi, Mike.

Here you have interesting article about it.
You'll need to edit:

ROOT/components/com_community/templates/default/videos.index.php

Copy it to ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them).

And look for word "sidebar". Add there your new module position.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 11 months ago
  • Mike's Avatar
    Topic Author
  • Mike
  • Offline
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 0
Licenses:
JomSocial Active

Thanks for your quick reply. I have looked at the videos.index.php file and tried the position cSidebar but it still does not display anything on the sidebar. below is the code from the php files please can you tell me the position name to use:

<div class="cIndex">
<!--Featured Listing-->
<?php echo $featuredHTML; ?><!--call video.featured.php -->

<!--Normal Listing + Sidebar-->
<div class="cLayout">

<div class="cSidebar">
<!--Videos Category-->
<div class="cModule cVideos-Categories app-box">
<h3 class="app-box-header cResetH"><?php echo JText::_('COM_COMMUNITY_VIDEOS_CATEGORY');?></h3>
<div class="app-box-content">
<ul class="app-box-list for-menu cResetList">
<li>
<i class="com-icon-folder"></i>
<?php if( $category->parent == COMMUNITY_NO_PARENT && $category->id == COMMUNITY_NO_PARENT ){ ?>
<a href="<?php echo CRoute::_($allVideosUrl);?>"><?php echo JText::_( 'COM_COMMUNITY_VIDEOS_ALL_DESC' ); ?></a>
<?php
}
else
{
$catid = '';
if( $category->parent != 0) {
$catid = '&catid=' . $category->parent;
}
?>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos' . $catid ); ?>"><?php echo JText::_('COM_COMMUNITY_BACK_TO_PARENT'); ?></a>
<?php } ?>
</li>

<?php if( $categories ): ?>
<?php foreach( $categories as $row ): ?>
<li>
<i class="com-icon-folder"></i>
<a href="<?php echo CRoute::_($catVideoUrl . $row->id ); ?>">
<?php echo JText::_($this->escape($row->name)); ?>
</a>
<span class="cCount"><?php echo empty($row->count) ? '' : $row->count; ?></span>
</li>
<?php endforeach; ?>

<?php else: ?>
<?php if( $category->parent == COMMUNITY_NO_PARENT && $category->id == COMMUNITY_NO_PARENT ){ ?>
<li><div class="cEmpty cAlert"><?php echo JText::_('COM_COMMUNITY_GROUPS_CATEGORY_NOITEM'); ?></div></li>

<?php } ?>
<?php endif; ?>
</ul>
</div>
</div>

<?php if (count($featuredVideoUsers)>1) { ?>
<div class="cModule cVideos-Authors app-box">
<h3 class="app-box-header cResetH"><?php echo JText::_('COM_COMMUNITY_VIDEOS_FEATURED_USERS');?></h3>
<div class="app-box-content">
<ul class="cThumbDetails cResetList">
<?php
$featuredUser = array();

foreach($featuredVideoUsers as $featuredVideo) {

if(!in_array($featuredVideo->creator, $featuredUser)) {
?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$featuredVideo->creator); ?>" class="cThumb-Avatar cFloat-L">
<img class="cAvatar" src="<?php echo CFactory::getUser($featuredVideo->creator)->getThumbAvatar(); ?>" />
</a>
<div class="cThumb-Detail">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$featuredVideo->creator); ?>" class="cThumb-Title">
<?php echo $featuredVideo->getCreatorName(); ?>
</a>
<div class="cThumb-Brief small">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=myvideos&userid='.$featuredVideo->creator); ?>"><?php echo $this->view('videos')->getUserTotalVideos($featuredVideo->creator); ?> <?php if($this->view('videos')->getUserTotalVideos($featuredVideo->creator)){ echo JText::_('COM_COMMUNITY_SEARCH_VIDEOS_TITLE'); } else { echo JText::_('COM_COMMUNITY_SINGULAR_VIDEO'); } ?></a>
</div>
</div>
</li>
<?php
$featuredUser[] = $featuredVideo->creator;
}
} //end foreach ?>
</ul>
</div>
</div>
<?php } ?>


</div><!--.cSidebar-->

<div class="cMain">
<?php echo $sortings; ?>

<div class="cVideoIndex">
<?php echo $videosHTML; ?><!--call video.list.php -->
</div>
</div><!--.cMain-->
</div><!--.cLayout-->

10 years 11 months ago
Licenses:

Hi, Mike.

Just paste this:

<?php $this->renderModules( 'my_position' ); ?>

right under:
<div class="cSidebar">

You can use any name for position e.g: my_position, my_video_position. Just like that. Then assign module to that position name and enable it on ALL pages.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW