By Georges LEGER on Friday, 17 February 2017
Posted in Technical Issues
Likes 0
Views 433
Votes 0
About easysocial:

Here is the configuration of the site.
After the trial period on the site, users who have not subscribed to a subscription no longer have access to the community in easysocial and are automatically assigned in a easysocial profile called "restricted access".


Here is my problem:

There is no message that indicates that the user has been assigned to a new profile that no longer gives him access to the community. For proof, they are confused and think that it is the site that does not work.

I tried to create a message in the profile "restricted access" to guide users to the plans page but it does not work.

Here are my questions:

How to display a message in red or pop up with a redirect link only for users who are assigned in the "restricted access" profile? Here is the link :
Https://www.mybigpay.com/index.php?option=com_payplans&;view=plan&task=subscribe&plan_id=0&group_id=2&Itemid=3438


Thanks for your help and understanding.
Have a good day!
We don't provide support for customizations but I guess you could actually add a similar code like below,

[gist]
<?php
// Detect current logged in user
$my = ES::user();

if ($my->getProfile()->id == 99) {
return JFactory::getApplication()->redirect('index.php?option=com_xxx');
}
[/gist]

You need to replace 99 with the new profile id with the correct profile id which you have created.
·
Friday, 17 February 2017 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I'm really sorry for the inconvenience.
Can you just tell me the path of this file please?


thank you for your understanding
·
Saturday, 18 February 2017 00:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

The user edit profile page is located at JoomlaFolder/components/com_easysocial/themes/wireframe/profile/edit/default.php and you can use my following php code :


<?php
if (!$this->my->hasCommunityAccess()) {
echo "please subscribe again.";
}
?>



And we only help you just this once is because we don't provide support customise and this is not unfair with other customer.

Thanks for understand.
·
Saturday, 18 February 2017 11:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thank you sincerely for your help and sorry for the inconvenience.

Have a good day!
·
Saturday, 18 February 2017 13:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Saturday, 18 February 2017 14:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post