Hi, I followed
this tutorial to get the Google +1 button/script in this location of my forum:
http://i.imgur.com/lrFeQ.png
I would however would like to remove the "Threaded Mode | Linear Mode" options and put the Google +1 button/script in that section instead. Like this:
http://i.imgur.com/awHx8.png
Would anyone know how to achieve that? Thanks!
ACP > Templates > Your theme's templates > Showthread Templates > showthread > and find;
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
and Add the Google +1 code in place of that.
Like this;
<g:plusone size="standard" expr:href="data:post.url"/>
So that area will be look like this;
<div style="float: right;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
(2011-06-07, 05:53 PM)Yaldaram Wrote: [ -> ]ACP > Templates > Your theme's templates > Showthread Templates > showthread > and find;
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
and Add the Google +1 code in place of that.
Like this;
<g:plusone size="standard" expr:href="data:post.url"/>
So that area will be look like this;
<div style="float: right;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
Awesome thanks! Is there a way to put it a little closer to the right? I'm not sure where the padding is coming from with it now (
click here to see)
Replace this;
<div style="float: right;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
with;
Quote:<div style="float: right; padding: 3px;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
(2011-06-07, 06:10 PM)Yaldaram Wrote: [ -> ]Replace this;
<div style="float: right;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
with;
Quote:<div style="float: right; padding: 3px;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
Thanks, but that doesn't really seem to have done much hehe. If it's not possible I don't mind, so long as it's in that area I'm okay with it I guess
I guess the Google +1 button is using Iframe ?
To be honest I don't know lol, I don't see any iFrame in the code though.
Google +1 doesn't use iframes. I have a solution though:
Find:
<div style="float: right; padding: 3px;">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
Replace with:
<div style="float: right; margin-right: -20px">
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
Change the -20px value if you want it even closer to the right.