I see this was discussed for 6.x, but what about 7.x?
https://www.drupal.org/node/529780.

Comments

webservant316’s picture

I am interested in controlling the display of service links on all non-node pages including the profile, search, advanced search, user/password, user/register, views, and even admin pages.

webservant316’s picture

I guess if I knew the php code to display the service links I could create my own block with more control. Hey why does service links provide its own display permissions instead of simply depending upon the permissions available within the core block system?

webservant316’s picture

The basic feature request here is that the Service Link block permissions should NOT be governed by the checkboxes in the Service Link admin area, but only by the Block perms themselves.

Simon Georges’s picture

I'm willing to consider committing a working patch, but I currently have no time to work on the module, and I suspect it's the same for the other maintainer...

webservant316’s picture

wow, this seems to be more than a simple permission thing, but that your code simply doesn't support placing the block on any non-node page. can you take 5 minutes and point me in the right direction? After 30 minutes I cannot find the code that I need to mess with.

webservant316’s picture

The module code seems to allow for display of service link blocks on non-node pages. However, it does not work. I added this code at line 213 service_link.module to solve the problem.

case 'service_links':
  $block['subject'] = t('Bookmark/Search this post');
  $style = variable_get('service_links_block_style', SERVICE_LINKS_STYLE_IMAGE_AND_TEXT);
  $block['content'] = theme('service_links_block_format', array('items' => service_links_render(NULL, FALSE, $style), 'style' => $style));
  break;

Also the show service links permission scheme seems way too cumbersome. I added this code at line 865 of service_link.module. This line gives positive permission priority to the standard pages permission scheme.

if (_service_links_match_path()) { return TRUE; }

Thanks.

kumkum29’s picture

Hello,

I wants to display the service links in the user profile. Today, there is no solution for that.
Since 1 year, have you found a solution for this? Perhaps, with a alter hook in the template.php?

Thanks.