2011-06-04, 05:34 AM
Pages: 1 2
2011-06-04, 06:35 AM
Install Template Conditionals plugin and wrap the +1 code with this;
This'll add the code in the first post only. You just need to add that code in postbit and postbit_classic templates.
<if ({$postcounter} - 1) % {$mybb->settings['postsperpage']} == "0" then>
YOUR_CODE_GOES_HERE
</if>
This'll add the code in the first post only. You just need to add that code in postbit and postbit_classic templates.
2011-06-04, 07:37 AM
2011-06-04, 07:43 PM
Not exactly what i wanted. I was hoping like this.
But only for the first posy of the topic on all the pages it might have.
But only for the first posy of the topic on all the pages it might have.
2011-06-04, 07:45 PM
Try this:
(2011-06-04, 06:35 AM)Yaldaram Wrote: [ -> ]Install Template Conditionals plugin and wrap the +1 code with this;
<if ({$postcounter} - 1) % {$mybb->settings['postsperpage']} == "0" then> YOUR_CODE_GOES_HERE </if>
This'll add the code in the first post only. You just need to add that code in postbit and postbit_classic templates.
2011-06-04, 07:48 PM
Try this. In template 'postbit' and 'postbit_classic', add this:
<if $postcounter == 1 then>
<div style="float:right"><g:plusone></g:plusone></div>
</if>
above{$post['signature']}
2011-06-04, 08:07 PM
(2011-06-04, 07:48 PM)Aries-Belgium Wrote: [ -> ]Try this. In template 'postbit' and 'postbit_classic', add this:Not exactly what I wanted but close enough.
above<if $postcounter == 1 then> <div style="float:right"><g:plusone></g:plusone></div> </if>
{$post['signature']}
2011-06-04, 08:10 PM
In postbit and postbit_classic templates, find;
{$post['message']}
and Add the following code just Before that;<if $postcounter == 1 then>
<div style="float: right;"><g:plusone></g:plusone></div>
</if>
2011-06-04, 08:30 PM
(2011-06-04, 08:10 PM)Yaldaram Wrote: [ -> ]In postbit and postbit_classic templates, find;Thats what i have, I mean on like page 2, post 1 there would be a +1 to.
and Add the following code just Before that;{$post['message']}
<if $postcounter == 1 then> <div style="float: right;"><g:plusone></g:plusone></div> </if>
2011-06-04, 08:31 PM
You mean +1 button on first post of each page, right ? If so, try this;
In postbit and postbit_classic templates, find;
In postbit and postbit_classic templates, find;
{$post['message']}
and Add the following code just Before that;<if $postcounter - 1) % $mybb->settings['postsperpage'] == "0" then>
<div style="float: right;"><g:plusone></g:plusone></div>
</if>
Pages: 1 2