Hi,

I can't get the socialshareprivacy module up-and-running. I can see the block on every page, but no icons are visible.

Here's what I did:

  • I installed the socialshareprivacy module (V 7.x-1.4) and activated it in the admin section.
  • I uploaded the files from heise.de to the directory ./sites/all/modules/libraries/socialshareprivacy/
  • Then I placed a block to be displayed on every page of every user just below the main content.

Now when I load a page (when I'm logged in as admin) I can find the following code in the source:

<div class="block block-socialshareprivacy contextual-links-region" id="block-socialshareprivacy-socialshareprivacy-block">
    <h2>SocialSharePrivacy</h2>
  <div class="contextual-links-wrapper contextual-links-processed"><a href="#" class="contextual-links-trigger">Konfigurieren</a><ul class="contextual-links"><li class="block-configure first last"><a href="/admin/structure/block/manage/socialshareprivacy/socialshareprivacy_block/configure?destination=node/6">Block konfigurieren</a></li>
</ul></div>
  <div class="content">
    <div id="socialshareprivacy">&nbsp;</div>  </div>
</div>

There are also the javascript-import .../sites/all/libraries/socialshareprivacy/jquery.socialshareprivacy.min.js?m02m93 and some javascript-jQuery-calls.

But no Icons for sharing are shown on the page.

When I'm logged out, then I can see the following code (and some javascript imports):

<div id="socialshareprivacy-node-6">&nbsp;</div>

and also the javascript-import and the javascript-jQuery-call (referencing the node with the ID "socialshareprivacy-node-6")

Can you help me to find out what I do wrong?

Here is the link to the site: http://dev.kochenmitclaudia.ch/

Thanx a lot in advance.
Don

CommentFileSizeAuthor
block-is-visible.png5.36 KBdon_busi

Comments

ytsurk’s picture

have you set the permissions and settings (default will show nothing .. i'm gonna change that - thick fe. twitter) ?
is there a javascript error ?

don_busi’s picture

Hi ytsurk,

thanx for your answer.

No, I don't see any JS-Errors in the Web-Developer-Error-Console of Firefox.

I see the following JS-Code inserted into my page:

<!--//--><![CDATA[//><!--
(function ($) { jQuery(document).ready(function () { if(jQuery("#socialshareprivacy-node-6").length > 0){ jQuery("#socialshareprivacy-node-6").socialSharePrivacy({
          services : {
              facebook : {
                  'status' : 'off',
                  'dummy_img' : '/sites/all/libraries/socialshareprivacy/socialshareprivacy/images/dummy_facebook.png',
                  'perma_option' : 'off',
                  'language'       : 'de_DE',
                  'txt_info'       : '2 clicks for more privacy: Click on this button to activate the Facebook share button. Activating the share button will already transfer data to Facebook. See more on <em>i</em>',
                  'referrer_track' : '',
                  'action'         : 'recommend',
              },

 ...and some more...

When I set a breakpoint in Firebug the debugger stopps at the breakpoint => the JS is executed.

When I check the "Net"-Tab in Firebug, I can see that all the included JS, CSS etc. files are found (no 404-errors).

And also I can see the DIV that is queried <div id="socialshareprivacy-node-6">&nbsp;</div>.

What permissions do you mean? Where can / do I have to change permissions?

Cheers,
Don

ytsurk’s picture

you have to configure the module here:
/admin/config/user-interface/socialshareprivacy
enable at least one service !

permissions are set here:
/admin/people/permissions#module-socialshareprivacy
as user one you should see it anyway, if not, you have to enable the access permission for your role

ytsurk’s picture

Status: Active » Postponed (maintainer needs more info)
don_busi’s picture

Hi,

thanx a lot for your help.

I figured out what the problem was.... at some point during the installation of the modules (amongst other of the socialshareprivacy module) the web-server had a memory-limit error from php.

So the module wasn't installed properly.

I installed drupal from scratch, now the instructions make sense and the module also works fine.

Thanx for the cool module!!

Cheers,
Don

ytsurk’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

nice to hear that :D

thx
Martin P.’s picture

I did all these things. When i check the field_socialshareprivacy variable with theme developer it is only containing the value 0 when disabled and 1 when enabled. But how to render the buttons and so on? in my node--article.tpl i added:


print render($content['field_socialshareprivacy']);

But there is nothing showing but the label.

ytsurk’s picture

add the field via the field UI.
you can bulk update existing content types here:
admin/config/user-interface/socialshareprivacy/bulkupdate

or use
field_get_items
in your code.

http://api.drupal.org/api/drupal/modules!field!field.module/function/field_get_items/7

ytsurk’s picture

Issue summary: View changes

formatting fixed