Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
socialbookmark on first post. Details »»
socialbookmark on first post.
Version: 1.00, by naveeid naveeid is offline
Developer Last Online: Apr 2019 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 06-02-2011 Last Update: Never Installs: 11
Template Edits
 
No support by the author.

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.

Screenshots

File Type: jpg Untitled.jpg (88.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-04-2011, 12:24 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 06-04-2011, 12:32 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, how can I make it show at the end of the post, and not underneath the signature itself?
Reply With Quote
  #4  
Old 06-05-2011, 03:24 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed thank you bro keep it up


Quote:
Originally Posted by GeorgeB85 View Post
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"
Reply With Quote
  #5  
Old 06-09-2011, 09:13 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

welcome
Reply With Quote
  #6  
Old 06-09-2011, 09:14 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

correct

Quote:
Originally Posted by Dr.osamA View Post



you can ad your code without code

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

</
vb:if> 
just add

"YOUR SOCIAL BOOKMARKING CODE"
Reply With Quote
  #7  
Old 06-09-2011, 07:03 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.osamA View Post
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?
Reply With Quote
  #8  
Old 06-16-2011, 03:33 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 06-17-2011, 11:32 PM
krustyx krustyx is offline
 
Join Date: Jul 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you should align this to the right!
Reply With Quote
  #10  
Old 06-20-2011, 08:47 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very great, installed, 5 stars and nomitated!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04315 seconds
  • Memory Usage 2,328KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete