Fixed  Can only have one +1 button per page!

Jaxel

Well-known member
I have this: http://8wayrun.com/

Each article has a Google +1 button... however, the URL from the LAST +1 button on the page is being inserted into every +1 button, instead of each button having it's own URL.
 
Try href= not data-url=
Doesnt make a difference.... This is the code I am using...

Code:
<xen:foreach loop="$RecentNews" value="$news">
    .
    .
    .
    <div class="g-plusone" data-size="medium" data-count="true" data-url="{xen:link canonical:threads, $news}" data-lang="{$visitorLanguage.language_code}"></div>
    .
    .
    .
</xen:foreach>
 
figured it out... data-href= works...

XenForo is using data-url=, which is a bug... it should be using data-href=

If it doesn't find data-href=, it uses the current page its on... which silently fails; into success on normal pages. But its just bad form.
 
figured it out... data-href= works...

XenForo is using data-url=, which is a bug... it should be using data-href=

If it doesn't find data-href=, it uses the current page its on... which silently fails; into success on normal pages. But its just bad form.
Cool :) thought it was href.
 
Code:
<xen:foreach loop="$RecentNews" value="$news">
    .
    .
    .
    <div class="g-plusone" data-size="medium" data-count="true" data-url="{xen:link canonical:threads, $news}" data-lang="{$visitorLanguage.language_code}"></div>
    .
    .
    .
</xen:foreach>

How do I do in Spanish?
 
Top Bottom