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.

Change default template settings

10 years 2 months ago
  • Viviana's Avatar
    Topic Author
  • Viviana
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

Can you please help us with the following:

1. How to adjust JomSocial template code so that the “most active groups” is the default view when you click on the Groups Tab.
2. How to adjust JomSocial template code so that when you click on an event the “Event Details” is the default view.
3. How to adjust the template so the default avatar is female.

Thank you for your assistance.

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

Hi Viviana,

#1 Change the groups menu in Jomsocial toolbar via Joomla menu manager, change the menu type to external link and change the link to this URL index.php?option=com_community&view=groups&task=mygroups&sort=mostactive

#2 EHm which link? can you provide me the screenshoot?

#3 you need hack the code for it, open this file components/com_community/table/profile.php, find this code

if (empty($gender))
            $gender = 'Male';
then change Male to Female

10 years 2 months ago
  • Viviana's Avatar
    Topic Author
  • Viviana
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Licenses:
JomSocial Expired

Thanks so much Dimas. The fixes for questions 1 and 3 worked!
As for number 2, I am attaching an example for the view I'm referring to.

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

Hi,


open this file components/com_community/templates/default/events.viewevent.php find this :

<li <?php if(!$isEventGuest && !$showStream) {echo 'class="cTabCurrent"';} ?>><a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_EVENTS_DETAIL');?></a></li>

replace to :
<li <?php if(!$isEventGuest && !$showStream) {echo 'class="cTabCurrent"';} ?>><a id="eventDetailButton" href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_EVENTS_DETAIL');?></a></li>
				<script>
					joms.jQuery(document).ready(function(){
						joms.jQuery(function(){
					        joms.jQuery("#eventDetailButton").click();
					      });
					});
				</script>

10 years 2 months ago
  • Viviana's Avatar
    Topic Author
  • Viviana
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Licenses:
JomSocial Expired

Thank you very much for your help.

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