I use a lot of icons and it looks slopwork. I think you'd like a compact display (eg http://drupal.org/project/addtoany or http://drupal.org/project/addthis are compact and beautifully).

Thanks
(p.s. http://drupal.ru/node/15280 - russian links)

Comments

TheCrow’s picture

Did you tried to enable share services (included in service links) + share? It's the official way for keep compact service links :))

pvasili’s picture

I do not understand how to integrate it :(
Can I get a little instruction?

TheCrow’s picture

Im sorry but the new Share alpha 2.0 with service links doesn't work well (i tried it with alpha1) :((, ill provide another solution soon!

pvasili’s picture

There is way to do without any additional modules?
I think that this will be useful to all...

I tested Russian links for 2 versions...
How to share results? (Links will be added occasionally...)

TheCrow’s picture

overwriting the theme (in node.tpl.php) can place the code for write the list of service links through the function service_links_render($node) and hide it:

<div class="service_links_popup_<?php print $node->nid; ?>" style="display:none">
<?php print implode(' ', service_links_render($node));?>
</div>

plus need a link that recall a javascript/jquery procedure for unhide it... by example this is the part of theme that render the other links:

<?php if ($links): ?>
 <div class="links">
  <?php print theme('links', $node->links); ?>
  <a href="javascript:$('div.service_links_popup_<?php print $node->nid ?>').toggle()">Link</a>
 </div>
<?php endif; ?>

This is really a short code... for a better look u can integrate something like thickbox...

If you packaged your russians services upload here the zipped file with module + icons and i'll integrate them in the CVS repo, thank you :))

TheCrow’s picture

about Share integration the problem was only the name of the module that extend the tabs... between the 2 alphas it's changed. Here the solution http://drupal.org/node/429800

Alexandr.P’s picture

Share bad. Why 3 table in database? please integration 1 button in service_links.

------------
rename class="service_links_popup_ in class="service-links- , _ not valid in W3C.org !!!!!

rename 'div.service_links_popup_ in '.service-links- !!!!

div.service_links_popup_ --- are searched for all first div, then class (Parsing js DOM elements).

.service-links- searched only class!!!

.service-links- smaller size DOM elements.

VladSavitsky’s picture

I think this posibility is a highly nessesary.
I'm using this module since version Drupal 5 was released and we (russian comunity) was added some new features which already in CVS now.
So, please, add a compact form like one button.
Site where Service Links 2.0 works: http://drupalcookbook.ru (This is a cooking Book for Drupalists written in russian).

Valeratal’s picture

Big thanks for this module
Its great module
But I need compact display too

Ingumsky’s picture

Please count my vote for compact form too.

TheCrow’s picture

Ehi guys this module is still under refactoring and compact view was already inserted into the refactoring plain. I just don't want the main module to get big so im studying the better mode for extend it.

Please 2.0 doesn't exist yet so be careful using it.

@Shamaner, it was just an example but i'll considerate your hints for the rest of development, thank you!

TheCrow’s picture

Title: Compact view » Compact view or flyout button
Status: Active » Closed (duplicate)

Too old discussion, let's continue here #1459932: Expandable share button (or flyout button)