vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - socialbookmark on first post. (https://vborg.vbsupport.ru/showthread.php?t=264642)

naveeid 06-02-2011 10:00 PM

socialbookmark on first post.
 
1 Attachment(s)
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 here.

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


Quote:

Originally Posted by GeorgeB85 (Post 2203387)
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

PHP 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 :)

Quote:

Originally Posted by Dr.osamA (Post 2203658)



you can ad your code without code

PHP Code:

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

</
vb:if> 

just add

"YOUR SOCIAL BOOKMARKING CODE"


GeorgeB85 06-09-2011 07:03 PM

Quote:

Originally Posted by Dr.osamA (Post 2203658)
installed thank you bro keep it up




you can ad your code without code

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


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01144 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete