Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: help with Google+ badge
PostPosted: Wed Feb 08, 2012 10:21 pm 
Offline
CRE Addict
User avatar

Joined: Tue Mar 30, 2010 8:36 pm
Posts: 206
hi,

i am trying to add the G+ badge to my store in one of the info boxes. i got it to show up and it is clickable, but wanted to make it open in a new window and also to remove the extra whitespace that appears below the badge (about an inch).

following the G+ directions, i added these 2 pieces of code to the relevant infobox php:

(1) this one i added at the top of the php code, before the <tr> designation:

<link href="https://plus.google.com/xxxxxxxxxxxxx" rel="publisher" /><script type="text/javascript">
window.___gcfg = {lang: 'en'};
(function()
{var po = document.createElement("script");
po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(po, s);
})();</script>



(2) this one i added within the code where i wanted it to render:

<g:plus href="https://plus.google.com/xxxxxxxxxxxxxx" width="100" height="131" theme="light"></g:plus>


i tried adding the TARGET="_blank" in the usual spot, as well as various other spots, but the link will not open in a new window. i am not a pro coder, but looking at the G+ code, it doesnt look like your run of the mill image link dealeo, so i assume something different needs to be done for this to work (?).

also, i tried fiddling with the code to remove the white space that appears below the badge to no avail.

if someone could enlighten me, i'd appreciate it!

thanks!

max

_________________
B2B 6.4.1 with MVS enabled


Top
 Profile  
 
 Post subject: Re: help with Google+ badge
PostPosted: Thu Feb 09, 2012 4:03 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Doubt you can - Google locks down how it's badges / Checkout logos etc look and function. It's in their Ts&Cs as well. We get what we gets.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: help with Google+ badge
PostPosted: Thu Feb 09, 2012 1:19 pm 
Offline
CRE Addict
User avatar

Joined: Tue Mar 30, 2010 8:36 pm
Posts: 206
I was afraid you were gonna say that. Oh well. Thanks.

_________________
B2B 6.4.1 with MVS enabled


Top
 Profile  
 
 Post subject: Re: help with Google+ badge
PostPosted: Sat Feb 11, 2012 1:38 am 
Offline
CRE Addict
User avatar

Joined: Tue Mar 30, 2010 8:36 pm
Posts: 206
in the alternative, id like to reduce the white space at the bottom of the info box. it's the example.php. do i change something in the boxes.tpl? if so, can you provide some guidance?

_________________
B2B 6.4.1 with MVS enabled


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Thu May 24, 2012 4:33 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy