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.

Display JS User ID on Profile Page

8 years 1 month ago
  • Bryon's Avatar
    Topic Author
  • Bryon
  • Offline
  • Fresh Boarder
  • Posts: 33
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

May I know how can I display the jomsocial user id on the profile page?

Do I need to do code hack? If so, how can I do it? thks

8 years 1 month ago
Licenses:

Hi, Bryon.

This little snippet will display JomSocial user ID:

<?php if($my->id !=0) {
echo $my->id; }
?>

Now it depends where you want to display it. If somewhere on profile cover then you should add this code to:

ROOT/components/com_community/templates/jomsocial/layouts/profile/focus.php

But first copy it to:

ROOT/templates/your-template/html/com_community/layouts/profile (if you don't have those folders - feel free to create them)


- 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