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.

Align itemd

11 years 1 week ago
  • Jan's Avatar
    Topic Author
  • Jan
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 3
Licenses:
JomSocial Active iSEO Active Socialize Expired

Hi, how can i align items Friends, Photos, Videos and Event under below? Problem is on smartphones:
prntscr.com/8sop72

Thanks

11 years 1 week ago
Licenses:

Hi,

here the steps:
copy focus.php from /components/com_community/templates/jomsocial/layouts/profile/ to /templates/socialize/html/com_community/layouts/profile/

edit it, start from line 360 you can see

<li class="half">
changing all that code to
<li class="full">

Regards

11 years 1 week ago
  • Jan's Avatar
    Topic Author
  • Jan
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 3
Licenses:
JomSocial Active iSEO Active Socialize Expired

Thanks, its work, and should be all First letters align under below? Thanks

11 years 1 week ago
Licenses:

Hi Jan,

that item ordering not based on first letter. you can changing it by moving that code.

<li class="full"><a href="<?php echo CRoute::_('index.php?option=com_community&view=friends&userid='.$profile->id); ?>">
    <?php echo ($profile->_friends == 1) ? JText::_('COM_COMMUNITY_FRIENDS_COUNT') . ' <span class="joms-text--light">' . $profile->_friends . '</span>' : JText::_('COM_COMMUNITY_FRIENDS_COUNT_MANY') . ' <span class="joms-text--light">' . $profile->_friends . '</span>' ?> </a></li>
<?php if($photoEnabled) {?>
<li class="half"><a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=myphotos&userid='.$profile->id); ?>"><?php echo ($profile->_photos == 1) ? JText::_('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR') . ' <span class="joms-text--light">' . $profile->_photos . '</span>' :  JText::_('COM_COMMUNITY_PHOTOS_COUNT') . ' <span class="joms-text--light">' . $profile->_photos . '</span>' ?></a></li>
<?php }?>
<?php if($videoEnabled) {?>
<li class="half"><a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=myvideos&userid='.$profile->id); ?>"><?php echo ($profile->_videos == 1) ?  JText::_('COM_COMMUNITY_VIDEOS_COUNT') . ' <span class="joms-text--light">' . $profile->_videos . '</span>' : JText::_('COM_COMMUNITY_VIDEOS_COUNT_MANY') . ' <span class="joms-text--light">' . $profile->_videos . '</span>' ?></a></li>
<?php }?>
<?php if($groupEnabled) {?>
<li class="half"><a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=mygroups&userid='.$profile->id); ?>"><?php echo ($profile->_groups == 1) ?  JText::_('COM_COMMUNITY_GROUPS_COUNT') . ' <span class="joms-text--light">' . $profile->_groups . '</span>' : JText::_('COM_COMMUNITY_GROUPS_COUNT_MANY') . ' <span class="joms-text--light">' . $profile->_groups . '</span>' ?></a></li>
<?php }?>
<?php if($eventEnabled) {?>
<li class="half"><a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=myevents&userid='.$profile->id); ?>"><?php echo ($profile->_events == 1) ? JText::_('COM_COMMUNITY_EVENTS_COUNT') . ' <span class="joms-text--light">' . $profile->_events . '</span>' : JText::_('COM_COMMUNITY_EVENTS_COUNT_MANY') . ' <span class="joms-text--light">' . $profile->_events . '</span>' ?></a></li>
<?php }?>
<?php if ($isLikeEnabled) { ?>
<li class="full liked">
    <a href="javascript:"
       class="joms-js--like-profile-<?php echo $profile->id; ?><?php echo $isUserLiked > 0 ? ' liked' : ''; ?>"
       onclick="joms.api.page<?php echo $isUserLiked > 0 ? 'Unlike' : 'Like' ?>('profile', '<?php echo $profile->id ?>');"
       data-lang-like="<?php echo JText::_('COM_COMMUNITY_LIKE'); ?>"
       data-lang-liked="<?php echo JText::_('COM_COMMUNITY_LIKED'); ?>">
        <svg viewBox="0 0 16 20" class="joms-icon">
            <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-thumbs-up"></use>
        </svg>
        <span class="joms-js--lang"><?php echo ($isUserLiked > 0) ? JText::_('COM_COMMUNITY_LIKED') : JText::_('COM_COMMUNITY_LIKE'); ?></span>
        <span class="joms-text--light"> <?php echo $likes; ?></span>
    </a>
</li>
<?php }?>

Regards

11 years 1 week ago
  • Jan's Avatar
    Topic Author
  • Jan
  • Offline
  • Junior Boarder
  • Posts: 154
  • Thank you received: 3
Licenses:
JomSocial Active iSEO Active Socialize Expired

Hi, thanks, but i ment text align to left: now its like

fkkffkkfkfkf
fhhfffhf
jfjfjffjfjfjjfjfjjffj
ddjjdjjdjd

and i need:
fkkffkkfkfkf
fhhfffhf
jfjfjffjfjfjjfjfjjffj
ddjjdjjdjd

11 years 1 week ago
Licenses:

Hi,

here the CSS

.joms-focus__link .full {
  text-align: left;
}

put it at the bottom of page at /templates/socialize/css/custom.css

Regards

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