Back to vBulletin 4.x Add-ons

socialbookmark on first post.
Mod Version: 1.00, by naveeid

vB Version: 4.x.x Rating: (1 vote - 5.00 average) Installs: 11
Released: 03 Jun 2011 Last Update: Never Downloads: 0
Not Supported Template Edits  

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....
PHP 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.

PHP 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 http://www.nidokidos.org/threads/52699-Axe-Google-Alisha-Peterson

Download

No files for download.

Screenshots

Click image for larger version
Name:	Untitled.jpg
Views:	566
Size:	88.4 KB
ID:	129696  


vblts.ru supports vBulletin®, 2022-2024