Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Calling the UserPoints API

6 years 3 months ago
Licenses:
JomSocial Active

I don't know how to configure the user point so it will appear where a member can see it

6 years 3 months ago
Licenses:

HI.

Thank you for contacting us.
Do you mean User Points?
In Backend -> Components -> JomSocial -> Configuration -> User Points you'll find a set of rules that grant user points called karma.
On each user profile karma points are displayed in graphical form as karma bar: prntscr.com/i18mx0
So you don't have to do anything as by default karma bar is displayed on each profile.
If you want to display karma points as number - you'll need to customize profile page.
Here you'll find how to customize temples in JomSocial: documentation.jomsocial.com/wiki/Customizing_Template
And here you'll find a code snippet that will display points number: www.jomsocial.com/forum/installation/202...r-point-karma#102686


- 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
6 years 3 months ago
Licenses:
JomSocial Active

I've gone through the information and also seen the video... but the method on the video did not work. I want the karma point to display in numbers. Any other solution

6 years 3 months ago
Licenses:

HI.

I tested this om my dev site and I confirm it works.
I used this code:

<?php echo $user->_points; ?>
<?php echo JText::sprintf((CStringHelper::isPlural($user->_points)) ? 'COM_COMMUNITY_POINTS':'COM_COMMUNITY_SINGULAR_POINT');?>

And I pasted it to templates/jomsocial/layouts/profile/focus

Result:

prntscr.com/i1jtgk

So solution is valid.


- 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