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.

Mod Online User (solved)

10 years 3 months ago
  • Thomas's Avatar
    Topic Author
  • Thomas
  • Offline
  • Fresh Boarder
  • Posts: 37
  • Thank you received: 1
Licenses:
JomSocial Expired Socialize Expired

In the module mod_community_whosonline I have the following inserted to go directly to all online users now

<div class="app-box-footer">
<a href="<?php echo ('index.php/search/browse.html.html?sort=online') ?>">Alle Online</a>
</div>

I want to display also the number of online user. what I need to insert
Can someone please tell me what I need to put there so that looks like this
Alle Online (135)

Thank you for your help
Best regards from Vienna
Thomas

10 years 3 months ago
Licenses:

HI, Thomas.

Don't modify files in file structure. They will be overwritten after update and you'll lost all your modifications.

1. Copy ROOT/modules/mod_community_whosonline/tmpl/dafeult.php to your template html folder: templates/frozen2/html/mod_community_whosonline/default.php (I already done it so you can skip this step)

2. I added this code to default.php:

<?php echo JText::_('COM_COMMUNITY_CURRENTLY_ONLINE') . ': <a href="index.php/search/browse.html.html?sort=online">' . count( $onlineMembers ) . '</a>';?>

Place it outside 'for' loop.

count( $onlineMembers ) will count online members.
JText::_('COM_COMMUNITY_CURRENTLY_ONLINE') will display text according to your language (you can change it in Extensions -> Language manager -> Overrides
<a href="index.php/search/browse.html.html?sort=online"> will link to search results that shows only online users.


- 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
The following user(s) said Thank You: Thomas
10 years 3 months ago
  • Thomas's Avatar
    Topic Author
  • Thomas
  • Offline
  • Fresh Boarder
  • Posts: 37
  • Thank you received: 1
Licenses:
JomSocial Expired Socialize Expired

Thank you verry mouch

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