Is there anyway to support pinterist?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

floydm’s picture

Status: Active » Needs review
FileSize
416 bytes

The attached patch adds Pinterest support to the 7.x-2.x branch in git. It adds no css because there is no CSS in the 7.x-2.x branch.

jherencia’s picture

Status: Needs review » Reviewed & tested by the community

Worked perfectly.

q0rban’s picture

Ok, we have duplicate issues here, each set to RTBC (See #1667782: Pinterest support). Can someone review both patches please and make a call on which to use?

jherencia’s picture

This one works on 7.x and the other is for 6.x so there is no duplication.

irk’s picture

Actually this is for 2.x whereas the other is for 1.x, both are for d7.

jherencia’s picture

Title: Support pinterist » Support Pinterest
Carlos Miranda Levy’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha1

This patch works fine applied against 7.x-2.0-alpha1.

To get the icons working, copy them from
http://drupal.org/node/1667782#comment-7118954
- http://drupal.org/files/icon-pinterest.png into follow/icons/large/icon-pinterest.png
- http://drupal.org/files/icon-pinterest_0.png follow/icons/small/icon-pinterest.png

Be aware that you have to rename the second one from icon-pinterest_0.png to icon-pinterest.png because it has been renamed by Drupal upload system.

Then, edit follow/follow-css.tpl.php, adding:

<?php print $selector_prefix; ?>a.follow-link-pinterest {
  background-image: url(<?php print $icon_path; ?>/icon-pinterest.png);
}

right after (it really doesn't matter if after or before):

<?php print $selector_prefix; ?>a.follow-link-spiceworks {
  background-image: url(<?php print $icon_path; ?>/icon-spiceworks.png);
}

Clear your cache, and/or change the follow block settings (horizontal to vertical, block region, etc.) and the icon will appear.

littlecookingtips’s picture

Hi,
since not many of us know how to do what Carlos Levy suggests, are you planning in releasing a new version of the module that will include the growing in popularity Pinterest?
Thank you.

aaronglamb’s picture

Assigned: Unassigned » aaronglamb
Status: Reviewed & tested by the community » Patch (to be ported)
FileSize
959 bytes

Carlos's css template suggestion in a patch.

Keep in mind if you don't see any change after cache clearing, you may need to rename the file at your public directory /css/follow.css to follow.old.css or something - this way the template will be recreated. You public directory is likely sites/default/files, but you probably know better than I. You'll also still need an icon.

Cheers.

aaronglamb’s picture

Sorry - this is just for the Pinterest css.

cwithout’s picture

Patch that includes both Pinterest and Instagram with instructions for applying to 7.x-2.x posted to #1879484: Support for instagram and pinterest

BWPanda’s picture

Assigned: aaronglamb » Unassigned
Issue summary: View changes
Status: Patch (to be ported) » Closed (duplicate)

Marking as a duplicate of #1667782: Pinterest support which has an updated patch for 7.x-2.x.