Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action denied by interconnect plugin #2

Open
merilturock opened this issue Oct 16, 2017 · 1 comment
Open

Action denied by interconnect plugin #2

merilturock opened this issue Oct 16, 2017 · 1 comment

Comments

@merilturock
Copy link

My interconnect plugin is not showing share buttons in all pages at side bar. I tried to figure our why it's not showing. I noted that the sidebar/interconnection says ..

$access_denied = $INTERCONNECTED_PAGE_DATA['access_denied'];

if ($access_denied)
{
    $body = elgg_echo ('interconnected:access-denied');
    $label = elgg_echo ('interconnected:no-share');
}

So i tried to remove the IF loop completely but still no luck my share buttons never came up for any mod's other than Profile.. Later i figured out that i am getting the following error in my console window so i thought i will place them here for a clarification & fix..

I also want to change my share button on the summary of every mod.. so i would like to know what should i change.


http://website.com/action/interconnected/get_share_data 500 (Internal Server Error) jquery.js:2
send @ jquery.js:2
ajax @ jquery.js:2
elgg.ajax @ elgg.js:109
elgg.post @ elgg.js:116
elgg.action @ elgg.js:119
(anonymous) @ get_shares.js:3
i @ jquery.js:2
add @ jquery.js:2
n.fn.ready @ jquery.js:2
(anonymous) @ get_shares.js:2
execCb @ require.js:117
check @ require.js:59
(anonymous) @ require.js:76
(anonymous) @ require.js:12
(anonymous) @ require.js:78
each @ require.js:4
emit @ require.js:78
check @ require.js:64
(anonymous) @ require.js:76
(anonymous) @ require.js:12
(anonymous) @ require.js:78
each @ require.js:4
emit @ require.js:78
check @ require.js:64
enable @ require.js:77
init @ require.js:57
callGetModule @ require.js:78
completeLoad @ require.js:110
onScriptLoad @ require.js:117

@propertunist
Copy link
Owner

The 'access denied' flag will produce a notice informing you of why the sharing buttons are not available and it is mostly due to permissions on the page not being public. If you see that warning on your pages then you just need to change the permissions of the item in elgg to be public.

The other possibility is that you need to add a line to start.php to define where on your pages the sidebar sharing box is going to be added. So you need to pick the view where you want to add the buttons and then add this line to start.php:

elgg_extend_view('your_view','sidebar/interconnected',500);

replacing 'your_view' with the name of the view you want to extend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants