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.

Making plugin only appear for the user logged in on their own page.

11 years 6 months ago
Licenses:
JomSocial Expired

ISSUE SUMMARY:
I have created a profile plugin which I only want to displayed to the user when the user is looking at their own profile page. Currently, the plugin loads however if a user navigates to a different user's profile, she sees the plugin populated with her info instead of preferably not even having the tab for the plugin appear.

The live site is not up yet, so please use the development url
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

11 years 6 months ago
Licenses:

Hi, Sean.

That's expected behavior. If plugin/app is set as "core app" then it will be displayed obligatory on every profile.
You should rather modify your plugin that it displays content only if viewed user profile ID matches currently logged in user ID. If not then nothing is displayed or a notice.


- 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
11 years 6 months ago
Licenses:
JomSocial Expired

I can easily modify my plugin to show no content but i believe the navigation tab will still be there. how do get rid of the navigational tab when it isnt the users profile page? is there an option other than core that would achieve this?

Also, how do i determine the Profile ID?

11 years 6 months ago
Licenses:

Hi, Sean.

I think tab will be there and you can't remove it since - in a fact - plugin is there but with no content.

Please, read this: documentation.jomsocial.com/wiki/JomSocial_User_Object


- 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: Sean O'Connor
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