It's a weekend. Stay calm and enjoy.

It is currently a weekend from where we are at. If your client or employer requires you to work during the weekend, this would be a good read. Rest assured that we will get back to your posts as soon as the week starts!

Official support hours is from 10AM — 7PM Monday to Friday (GMT +8)

Unauthorized Access
Resolved

Hello! In order to develop an EasySocial app I wanted to first test out the EasySocial functions in the http://stackideas.com/docs/easysocial/developers/ directory. So i copied the Retrieving User's Name code and made a php file in my website's localhost to try it out. But when I executed the php file I got the Unauthorized Access error. I don't know how to solve this and if this has to do with joomla or easysocial. I would appreciate any help. Please note I haven't done this before so I would appreciate that you don't assume I already know anything. Here is the code I used:

<html>
<body>
<?php

require_once('C:\wamp\www\inhinito\components\com_easysocial\easysocial.php');
$my = ES::user();
echo $my->getName();
echo "hello world";
// Shorter way of writing it
echo ES::user()->getName();
// Getting another person's name
echo ES::user($id)->getName();

$path = getcwd();
echo "Your Absoluthe Path is: ";
echo $path;

?>
</body>
</html>
Where there's a will there's a way.
4 replies
Arlex Wong replied on Sunday, September 18 2016, 01:55 PM
Accepted Answer
Hey there,

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

I have no ideas why you hitting this infinite loop on your local page.

Can you download my attached file and replace into this same file location and see how it goes?

JoomlaFolder\components\com_easysocial\easysocial.php

To test this :
1. Try login in your site, it will show your current logged in user name.
2. Try view another user profile page in Easysocial, it will show the user name which you viewing that user profile.
3. it will show the Absolute path.
Attachments:
You might want to check these cool stuff :
http://stackideas.com/easysocial || http://stackideas.com/easyblog || http://stackideas.com/easydiscuss || http://stackideas.com/komento || http://stackideas.com/metaman || http://stackideas.com/joomla-templates

Demo site : http://stackideas.com/demo
App Store : http://stackideas.com/apps
Changelog : http://stackideas.com/changelog
Support Policy : http://stackideas.com/support
Feature Request : http://stackideas.com/voices
Documentation : http://stackideas.com/docs

You can also contact us via our helpdesk if you would like to require for some customisation or sales question.
https://crm.stackideas.com


Best Regards
Arlex

We are sorry, you need a valid subscription for EasySocial
in order to view replies for this post in this category.

Your time
Stack Ideas time
Support is
Offline
It's weekend!

It is currently a weekend from where we are at. Some answers may already be available on our documentation at http://stackideas.com/docs

Rest assured that we will get back to your posts as soon as the week starts!


Official support hour is:
Monday — Friday. 10:00 am - 7:00 pm
Our timezone:
Kuala Lumpur (GMT +8)