PDA

View Full Version : Mini Mods - socialbookmark on first post.


naveeid
06-02-2011, 10:00 PM
About
If you want to place any social book marking script / facebook like / twitter at the bottom of the first post of every thread of your forum , then this mod is for you.

Installation
we will just edit a single file , postbit_legacy
edit your default template files.
open postbit templates

1)edit postbit_legacy

2) find this code....

{vb:raw template_hook.postbit_signature_start}
{vb:raw ad_location.ad_showthread_firstpost_sig}
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
</vb:if>
{vb:raw template_hook.postbit_signature_end}
</div>
</vb:if>


3)AFTER THIS CODE
ADD THIS CODE.

<vb:if condition="$post[postcount] == 1">
"YOUR SOCIAL BOOKMARKING CODE"
</vb:if>


4) Replace "YOUR SOCIAL BOOKMARKING CODE" with the code of addthis.com or Sharethis.com or any other social book marking widget which you like for your website.

5)SAVE THIS FILE.
AND YOU HAVE DONE IT.



live Demo
you can see this code implemented here. (http://www.nidokidos.org/threads/52699-Axe-Google-Alisha-Peterson)

GeorgeB85
06-04-2011, 12:24 PM
Is there a way to add this to every post? Perhaps someone wants to tweet or facebook say post 5 only. Is there a way to include every post in a thread?

GeorgeB85
06-04-2011, 12:32 PM
Also, how can I make it show at the end of the post, and not underneath the signature itself?

Dr.osamA
06-05-2011, 03:24 AM
installed thank you bro keep it up


Is there a way to add this to every post? Perhaps someone wants to tweet or facebook say post 5 only. Is there a way to include every post in a thread?

you can ad your code without code

<vb:if condition="$post[postcount] == 1">

</vb:if>

just add

"YOUR SOCIAL BOOKMARKING CODE"

naveeid
06-09-2011, 09:13 AM
welcome

naveeid
06-09-2011, 09:14 AM
correct :)





you can ad your code without code

<vb:if condition="$post[postcount] == 1">

</vb:if>

just add

"YOUR SOCIAL BOOKMARKING CODE"

GeorgeB85
06-09-2011, 07:03 PM
installed thank you bro keep it up




you can ad your code without code

<vb:if condition="$post[postcount] == 1">

</vb:if>

just add

"YOUR SOCIAL BOOKMARKING CODE"

I mean, how can you make them show on every post, and not just the first post?

naveeid
06-16-2011, 03:33 AM
brother remove these 2 lines from the code
<vb:if condition="$post[postcount] == 1">

</vb:if>

and after that the social bookmark will be shown after each and every post. i hope you understand now?

krustyx
06-17-2011, 11:32 PM
you should align this to the right!

Kraxell
06-20-2011, 08:47 AM
very great, installed, 5 stars and nomitated!

naveeid
07-31-2011, 05:46 AM
thanks kraxell