propertunist / interconnected

This plugin allows users to share elgg items/pages on various social networks without using javascript - for increased privacy.
GNU General Public License v2.0
4 stars 1 forks source link

Action denied by interconnect plugin #2

Open merilturock opened 7 years ago

merilturock commented 7 years ago

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 commented 7 years ago

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.