By Tony Boutemeur on Tuesday, 22 October 2019
Posted in General Issues
Likes 0
Views 517
Votes 0
Hello,

For my needs, I build a module about an Easysocial application.

In this module, I created a show more button and I need to put the link of this easysocial application.

This url link doesn't work:


$url = 'index.php?option=com_easysocial&view=apps&id='.$this->app->id.':'.$this->app->alias.'&layout=profile&type=user&uid='.$juser->id.':'.$juser->username.'&Itemid='.$app->input->getInt('Itemid');


and the link have to be like this:

https://mywebsite.com/$userid-$username/$appid-$appalias ( or https://mywebsite.com/304-alex/310-who-visited-my-profile or https://mywebsite.com/alex/who-visited-my-profile (hidden id) )

Could you write me the correct path to call an easysocial user application?

Thank you for your help.

Tony
Hi Tony,

Ah I see, I think you can use the code below and see how it goes?

ESR::profile(array('id' => $user->getAlias(), 'appId' => $app->getAlias()));

Make sure you get the user alias and app alias correctly
·
Wednesday, 23 October 2019 19:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

I am not quite get the exact link to provide you. May I know the is it certain app's view? or list of apps as shown https://take.ms/vvgw6 ?
Perhaps, can you give us the link that already exist so that it is easier for me to trace it?

Thanks for your cooperation and understanding
·
Wednesday, 23 October 2019 10:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Muhammad,

Thank you for your reply.

I am not quite get the exact link to provide you. May I know the is it certain app's view? or list of apps as shown https://take.ms/vvgw6 ?


I don't want a list of apps.

I would like to get app's view profile from one particular application (compatible with easysocial but not provided by Stackideas) and I need to get the right link path url for getting the profile view of this application.

I think there is a generic construction link path for all applications installed in Easysocial, and I think it is possible to get a particular view depending user id, user name, app id and app name/alias and getting the profile view by the profile owner. Also I have need to get the right path link url to let users getting the application profile view of another user.

Thank you for your help,

Tony
·
Wednesday, 23 October 2019 15:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Muhammad this question is exactly what we need so I allow myself to ask here
ok, what me and the other guy asked for is:
1) I have a third party app that show on user profile for example "who visited my profile" app (the app is related to userid)
2) from home page I need to create a link or a button that is linked to that app for example a button called: "Show Me My Visits"
now the question is:
please can you point me to the link that show a single userid related app
alternatively can you indicate the link construction to achieve that results?
·
Thursday, 24 October 2019 15:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Bioboy,

You can use the router that I have given in the previous reply.
·
Thursday, 24 October 2019 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Muhammad,

Thank you for your reply.

Indeed, user alias is correctly set but not app alias.

I have to find how to set the right app alias.
·
Thursday, 24 October 2019 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I see, yes, you need to assign/get the correct app alias into the router in order to populate the correct user's app link
·
Thursday, 24 October 2019 15:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Muhammad

ok so your first answer is the correct way to proceed but unfortunally Im a super dumb user please can you write an example link here so I can follow the link philosophy?
Basically what I try to do is to make a custom module on frontend with a 2 buttons to direct link to a couple of user related apps
·
Thursday, 24 October 2019 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Bioboy,

I am really sorry but unfortunately, we cannot accommodate your request currently as it is quite difficult and beyond our support scope's policy as outlined in https://stackideas.com/support

Having said that, if you require us to perform the customization for you, you can always request a quote from us at https://crm.stackideas.com and select "Customizations" . Our salesperson would gladly send you a quote for the customization that you have requested.
·
Thursday, 24 October 2019 18:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Muhammad,

Thank you for your help.

I set correctly app alias and my module works.

Thank you
·
Friday, 25 October 2019 15:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

Great! Glad to help you to make it work on the module, Tony

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Friday, 25 October 2019 15:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post