Post by kevtheirish » Wed Dec 10, 2014 8:22 am

I am looking to add TheFind.com and Houzz.com badges to the footer section of my pages.

Code: Select all

<a class="tf_upfront_badge" href="http://www.thefind.com/store/about-MYSTORE" title="TheFind Upfront" style="text-decoration:none;"><b>MY STORE</b> is <u>Upfront</u></a>
  <script type="text/javascript">
    (function() {
      var upfront = document.createElement('SCRIPT'); upfront.type = "text/javascript"; upfront.async = true;
      upfront.src = document.location.protocol + "//upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js";
      upfront.text = "thefind.upfront.init('tf_upfront_badge', '107cd31b315a9674c5f483b0fcba3cb1')";
      document.getElementsByTagName('HEAD')[0].appendChild(upfront);
    })();
  </script>
and

Code: Select all

<table style="width: 181px;" cellpadding="0" cellspacing="0"><tr><td><a href="http://www.houzz.com/pro/MSTORE/MY-HOUZZ-STORE"><img src="http://st.houzz.com/static/badge181_25.png" alt="Remodeling and Home Design" width="181" height="25" border="0" /></a></td></tr></table>

but I cannot just add them to
/public_html/catalog/language/english/common/footer.tpl with out crashing the site until they are removed.

any help would be appreciated or if there is an VQMod where I can add these and others in the future it would be appreciated.

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by IP_CAM » Wed Dec 10, 2014 11:01 am

added your Code into my
JTI_Servers\openshop.li\cart\catalog\view\theme\default\template\common\footer.tpl
and it worked well. I did not align nothing, just placed it as shown below:

Code: Select all

  <a class="tf_upfront_badge" href="http://www.thefind.com/store/about-MYSTORE" title="TheFind Upfront" style="text-decoration:none;"><b>MY STORE</b> is <u>Upfront</u></a>
  <script type="text/javascript">
    (function() {
      var upfront = document.createElement('SCRIPT'); upfront.type = "text/javascript"; upfront.async = true;
      upfront.src = document.location.protocol + "//upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js";
      upfront.text = "thefind.upfront.init('tf_upfront_badge', '107cd31b315a9674c5f483b0fcba3cb1')";
      document.getElementsByTagName('HEAD')[0].appendChild(upfront);
    })();
  </script>
  <table style="width: 181px;" cellpadding="0" cellspacing="0"><tr><td><a href="http://www.houzz.com/pro/MSTORE/MY-HOUZZ-STORE"><img src="http://st.houzz.com/static/badge181_25.png" alt="Remodeling and Home Design" width="181" height="25" border="0" /></a></td></tr></table>
  
</div>
<div id="powered"><p><?php echo $powered; ?></p></div>
</div>
</body></html>
Good Luck
Ernie
ipc.li

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by kevtheirish » Wed Dec 10, 2014 1:40 pm

i was placing it the wrong footer.tpl
I was in /common, should have been in /template....

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am
Who is online

Users browsing this forum: No registered users and 210 guests