Hello,
I've a problem. When I try to install an icon set, it doesn't work. tried it a view times now an nothing. I don't know, what I've done wrong.

Hope, someone can help me.

have a nice day

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joedag32’s picture

I'm having a problem installing icon sets too. I'm trying to install the Icon Dock set, and this is my path:

sites/all/modules/socialmedia/icons/icondock/16px/[files]
sites/all/modules/socialmedia/icons/icondock/24px/[files]
sites/all/modules/socialmedia/icons/icondock/32px/[files]

Should I have my directory setup differently once I get to icondock folder?

joedag32’s picture

I just solved my path question. I looked in the source and found the path it was expecting.

This is the path that worked for me for using icondeck:

sites/all/modules/socialmedia/icons/icondock/Vector Social Media Icons/PNG/16px/[files]
sites/all/modules/socialmedia/icons/icondock/Vector Social Media Icons/PNG/24px/[files]
sites/all/modules/socialmedia/icons/icondock/Vector Social Media Icons/PNG/32px/[files]

TomDude48’s picture

Can you send me where you are installing the icons?

Icon sets should go under their own sub-directories in socialmedia/icons/. The subdirectories are given on the admin > settings > social media page in the icon set area.

For example, the icondock set should be un-archived under socialmedia/icons/icondock. The 32x32 twitter icon for the icondock set should end up being located at:
sites/all/modules/socialmedia/icons/icondock/Vector Social Media Icons/PNG/32px/twitter.png

Note that everything after icons/[iconsetnamespace] is from the iconset package.

Morrison’s picture

Thx for the help. Icondock works now, but dryicons doesn't. also Instantshift.
I followed your explanation, but nothing.

this is the path for dryicons
sites/all/modules/socialmedia/icons/dryicons/png/32x32
and this for instantshift
sites/all/modules/socialmedia/icons/instantshift/32

I unpacked the archive and put the folders as they were on the server, like the instructions. I dunno, what I've done wrong.

have a nice day

TomDude48’s picture

FileSize
215.1 KB

I think I know what the problem is with instantshift. I am running my example on a PC and there are capitalization differences which Windows doesn't care about but *NIX does. So I will have to fix that.

As far as dryicons, you have them in the right place. There is a few extra steps with dryicons. First there are 4 icon packs, you want to install them all. Second, one or more packs have inconsistent naming of the directories. You will get directories that are named with a "px" at the end, e.g. 32x32 px. You need to copy the icons out of the "px" directories and into the non. E.g. copy the icons from the "32x32 px" directory to the "32x32" directory.

I have attached a screenshot of what the directory path and included icons should look like.

Morrison’s picture

That's what I've done with dryicons. changed the directories that are named with px. I've the same directory path as in your screenshot.

../sites/all/modules/socialmedia/icons/dryicons/png/32x32

won't work. tried a view times now. I can't say what's wrong there. all the other iconssets just working fine. it's a total mystery for me.

ikeizer’s picture

I had the same problem. It is a simple matter of renaming the 'png' directory to 'PNG'. The path is noted in capitals in the source, whilst it is not after unzipping.

Morrison’s picture

Status: Active » Closed (fixed)

thx, now it works. don't know why it didn't work before. i've tested it.

janes_p’s picture

I had the same issues as listed in this thread; finally I got icondock up and running (using correct path and capitalisation), but so far not instant shift. It appears to me that both the path and capitalisation are pretty much hard coded in the module. Just reading folders underneath 'icons' would be much more fault tolerant (and would allow to install icon sets which are not in the list) - consider this an item for my wish list :-)

Carlos Miranda Levy’s picture

For IconDock it's the opposite. Rename PNG to png :-)

drupalreggie’s picture

Status: Closed (fixed) » Active

I've just had this problem today trying to install the instant shift icon set.

chered’s picture

I was having problem also using icondock. It is confirmed #10 is the fix for me.

mmeldrem’s picture

I am not versed enough in Drupal module development to do this, but I vote that someone who is able please add some consistency to this naming scheme. It would save many people a lot of time and help make the module much more useable.

griz’s picture

There really shouldn't be anything unzipped into the modules directory at all. When updating the module using drush these changes are lost, and I think for the third time now I'm having to waste time messing with filepaths.

MatthijsG’s picture

Issue summary: View changes

My problem was the icon set of ristaumedia. Searched the name in the code and come across socialmedia.icons.inc: on line 293 the path is mentioned.

Search for function socialmedia_icon_path_[ICONSETNAME], from line 211 and further.

Luke_Nuke’s picture

I think author just wants us to put the directory from extracted archive without changing names of anything. :P For example in archive with ristaumedia icons is "icons png" directory with icons. We are supposed to just put it in ristuamedia directory, without doing anything more with the directory structure, and it will work. The problem is that we are just too smart for this, and trying to make path similar to existing set of icons. :P

ronsnow’s picture

Just wanted to confirm answer on #7 - changing case of png to PNG worked

ronsnow’s picture

Found that the social shift - instantshift issue is also due to case sensitivity - The module seems to confirm the installation by use of the Twitter icon but it is case sensitive, so when the instant shift twitter icon is "Twitter.png", change that file name to lower case "twitter.png" to allow the module to find it. Need to change the twitter icon in the /32 directory.

Also, confirm that the paths are ending in 16, 32, 64 and NOT 16x16, 32x32, 64x64

taw.boston’s picture

The paths are a problem. I have ~30 sites I'd like to add this module to, but cannot reasonably manage the updates with the path being in the module folder. Additionally, some icon sets are either incomplete or need to be renamed in order to work. It makes the module not worth the risks, IMO. However, I will keep an eye out for improvements. It's a good concept and mostly works - just not for managers of many sites.

b0red’s picture

Still having trouble with the Instantshift iconset.
This is my path: sites/all/modules/socialmedia/icons/instantshift/16. But the icons won't show up. Very annoying, since these are the ones I'd like to use on my site.

The module should be "self-aware", so it looks in the subfolder of icons and you should be able to drop any iconset in that folder. I'm not enough of a programmer to accomplish this in drupal/Php, otherwise I'd be happy to help out.

Lee Gaitiu’s picture

i had the same problem #7 worked for me. Thanks.

sean.walker’s picture

As ronsnow already commented, the issue with InstantShift is that the module looks for the twitter.png file, but the .zip package file contains a Twitter.png file amongst many other capitalized images. All you have to do is go in the '32' folder and in linux rename the file from "mv Twitter.png twitter.png" so it is not capitalied and refresh your social media module page. I had to do this for Vimeo.png and many others, but it fixed the issue no problem. Seems all the issues are capitalization or folder path corrections. If you nano the socialmediaicons.inc file, you can straight up read the following behavior of the module.

Every icon set uses a similar function of checking the 32 folder for twitter.png, if it isn't there -- the icon set will not load.

Hope this helps.
--------------------------------------------------------------------------------------------------------------------------------------

function socialmedia_icon_path_instantshift($platform = 'twitter', $style = NULL) {
$style = isset($style) ? $style : '32';
$pt = array(
'delicious' => 'del.icio.us',
'email' => 'mail',
'googleplus' => 'buzz',
'lastfm' => 'last_fm',
'stumbleupon' => 'StumbleUpon',
);
$path = drupal_get_path('module', 'socialmedia') . '/icons/instantshift/' . $style . '/' . ((isset($pt[$platform]))? $pt[$platform] : $platform) . '.png';
return $path;
}

b-reid’s picture

Status: Active » Needs review
FileSize
3.68 KB

I have noticed that some of the iconsets being used in this module have different path names then they used to, and some people are still having issues with renaming stuff.

I wrote a little patch that should fix issues with DryIcons not properly installing, and fixed the filepath issue for socialshift icons.

I am also working on possibly creating a second version of this social media module, making it more simplified with updated iconsets for 2017.