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.

Show featured video first in module?

10 years 2 months ago
  • Kobe W's Avatar
    Topic Author
  • Kobe W
  • Offline
  • Fresh Boarder
  • Posts: 43
  • Thank you received: 1
Licenses:
JomSocial Expired

Hello, I am trying to figure out how to show the featured video tab first; in video module for my front page.
Rather then showing newest, featured and popular. I want featured, newest, popular.

Now I used firebug to find some of the source, but can't figure out what file it is in the system
Here is some of the source code I found

<script type="text/javascript">joms.filters.bind();</script>
<div class="js-module js-mod-videos">
	<div id="latest-videos-nav" class="app-box-filter">
		<i class="loading cFloat-R"></i>
		<div>
			<a class="newest-videos active-state" href="javascript:void(0);">Newest</a>
			<b>&nbsp;&nbsp;</b>
			<a class="featured-videos" href="javascript:void(0);">Featured</a>
			<b>&nbsp;&nbsp;</b>
			<a class="popular-videos" href="javascript:void(0);">Popular</a>
		</div>
	</div>
I did some twekaing in my editor but can not figure what file/location is.

Thanks!

10 years 2 months ago
  • Kobe W's Avatar
    Topic Author
  • Kobe W
  • Offline
  • Fresh Boarder
  • Posts: 43
  • Thank you received: 1
Licenses:
JomSocial Expired

Ah Ha!
After a little more digging around I found it.
If anyone else needs this done then edit the default.php in:
/modules/mod_community_videos/tmpl

Now the only thing I need to figure out is how to show featured first. It seems to jump to newest first.
So if someone knows this fix please let me know.

I moved the "active-state" to the featured line and its still not working

Original :

<div>
			<a class="newest-videos active-state" href="javascript:void(0);"><?php echo JText::_('COM_COMMUNITY_VIDEOS_NEWEST') ?></a>
			<b>&nbsp;&nbsp;</b>
			<a class="featured-videos" href="javascript:void(0);"><?php echo JText::_('COM_COMMUNITY_FEATURED') ?></a>
			<b>&nbsp;&nbsp;</b>
			<a class="popular-videos" href="javascript:void(0);"><?php echo JText::_('COM_COMMUNITY_VIDEOS_POPULAR') ?></a>
		</div>


Change to suite your needs like so:
<div>
        	<a class="featured-videos active-state" href="javascript:void(0);"><?php echo JText::_('COM_COMMUNITY_FEATURED') ?></a>
			<b>&nbsp;&nbsp;</b>
		<a class="newest-videos " href="javascript:void(0);"><?php echo JText::_('COM_COMMUNITY_VIDEOS_NEWEST') ?></a>
			<b>&nbsp;&nbsp;</b>
			<a class="popular-videos" href="javascript:void(0);"><?php echo JText::_('COM_COMMUNITY_VIDEOS_POPULAR') ?></a>
		</div>

10 years 2 months ago
  • Kobe W's Avatar
    Topic Author
  • Kobe W
  • Offline
  • Fresh Boarder
  • Posts: 43
  • Thank you received: 1
Licenses:
JomSocial Expired

Did some more testing and I can't figure out what to change to showcase "featured" to first order. Still showing newst first even though i changed the order of links.

10 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Please you put Javascript code on that file, the code like this :

joms.jQuery( document ).ready(function() {
  joms.jQuery('.popular-videos').trigger('click');
});

or
joms.jQuery( document ).ready(function() {
  joms.jQuery('.popular-videos').click();
});

not tested yet, but i hope it will work

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