Forums / All Other Contributions/Addons / Numinix Pinterest mod

Numinix Pinterest mod

Started by pityocamptes on 20 Apr 2012, 9:25 PM · Views: 2,131

Results 1 to 4 of 4
20 Apr 2012, 9:25 PM
#1
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

Numinix Pinterest mod

Can someone show how to install this inline - compatible with FF and IE - with facebook, twitter, and share icons???? Here is my tpl_product_info_display.php file:

<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <!-- Pin It Button BEGIN --> <a class="pinitButton"> <?php if (PINTEREST_BUTTON_STATUS == 'true') { require($template->get_template_dir('/tpl_modules_pin_it_button.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_pin_it_button.php'); } ?></a> <!-- Pin It Button END --> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4cd1ec2b08cdcb12"></script> <!-- AddThis Button END -->

Its not coming out right at all. For the pinitButton css I have:

/pininterest/
#pinitButton {margin-left:5em !important;}

Can someone help??? Thanks!!!!!!!!!

21 Apr 2012, 8:33 PM
#2
enylred avatar

enylred

New Zenner

Join Date:
Apr 2012
Posts:
17
Plugin Contributions:
0

Re: Numinix Pinterest mod

I just did something similar on my site. I recommend going to www.addthis.com and selecting the buttons you want. The site allows you to fill in the information you need to link to your site. Once you have done this, go to:

public_html/includes/templates/you_theme/common

and add this either to your tpl_header.php or tpl_footer.php

I hope this helps!

23 Apr 2012, 11:02 PM
#3
pityocamptes avatar

pityocamptes

New Zenner

Join Date:
Aug 2007
Posts:
77
Plugin Contributions:
0

Re: Numinix Pinterest mod

Enylred:

I just did something similar on my site. I recommend going to www.addthis.com and selecting the buttons you want. The site allows you to fill in the information you need to link to your site. Once you have done this, go to:

public_html/includes/templates/you_theme/common

and add this either to your tpl_header.php or tpl_footer.php

I hope this helps!

Thanks! I saw that, but do I ignore this code? What about the mod? Thanks again!

24 Apr 2012, 7:03 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Numinix Pinterest mod

I simply followed the install instructions and then pasted the code in at the top of tpl_product_info_display.php. I have it installed along with the Social Media Icons mod. Like this:

<?php /** * Page Template * * Loaded automatically by index.php?main_page=product_info.<br /> * Displays details of a typical product * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_product_info_display.php 16242 2010-05-08 16:05:40Z ajeh $ */ //require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php'); ?> <div class="centerColumn" id="productGeneral"> <!-- Pin It Button BEGIN --> <?php if (PINTEREST_BUTTON_STATUS == 'true') { require($template->get_template_dir('/tpl_modules_pin_it_button.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_pin_it_button.php'); } ?> <!-- Pin It Button END --> <!-- bof Social Media Icons --> <?php if (SOCIAL_MEDIA_STATUS == 1) { if (SOCIAL_POSITION == 'top' || SOCIAL_POSITION == 'both') { echo '<div id="socialIcons">'; echo social_media($products_id_current, $products_name); echo '</div>'; } } ?> <!-- eof Social Media Icons -->

You can see it in action here:

http://pinupsplus.com/index.php?main_page=product_info&cPath=1&products_id=146

The best way to learn is to try stuff. But, back it up first.