vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Add like Button to 3.8.x for Threads >> direct and easy (https://vborg.vbsupport.ru/showthread.php?t=273205)

as7apcool 11-01-2011 11:00 PM

Add like Button to 3.8.x for Threads >> direct and easy
 
1 Attachment(s)
Add like Button to 3.8.x for Threads >> direct and easy

1 - open VB control panel >> styles >> search in Templates for ( postbit ) Template >> open to edit

2 - search in ( postpit ) for

Code:

<!-- message -->
and after you find it .. add this code

Code:

<div id="post_message_$post[postid]">
<if condition="($post[postcount]==1)">
       
        <div style="float: left; margin: 0 0 0px 0px;">
                <iframe src="http://www.facebook.com/widgets/like.php?locale=en_US&href=http://www.YOURDOMAIN.com/vb/showthread.php$session[sessionurl]?t=$thread[threadid]&layout=button_count&show_faces=false&width=168&action=like&colorscheme=light&height=25" scrolling="no" frameborder="0" allowtransparency="true" class="fbif" height="20" width="90" name="0">
                </iframe></div>
</div>
</if>

after u finish >> save (postbit ) Template
- This will make like button in the first post only and in the left of the page
- this code when any one press like on the post , it will make the link which liked refer directly to Thread page >> ?t= on Facebook ... not like the old code >> ?p= .. and this is very good for Google and back links from Facebook

plz rate this if u like :p

Max Taxable 11-02-2011 01:45 AM

Quote:

after this add LIKE button code direct to Thread page
Showthread template?

as7apcool 11-02-2011 08:13 AM

Quote:

Originally Posted by Max Taxable (Post 2263650)
Showthread template?

sorry this was a wrong from me .. u can see the post again now

RJ2 11-02-2011 06:53 PM

I know you said if there's an error not to worry about it, but it looks like your code is leaving an open <if> and two open <div>'s

as7apcool 11-05-2011 09:59 AM

Quote:

Originally Posted by RJ2 (Post 2263847)
I know you said if there's an error not to worry about it, but it looks like your code is leaving an open <if> and two open <div>'s

hi
thank u

now code is True 100 %

abdobasha2004 11-08-2011 07:57 AM

this is a template modification ! :) :P

edenx 11-09-2011 11:51 AM

Will this work with VBSEO?

Jimmy_z 12-18-2011 12:02 PM

It's not pretty but it works :)

duketxboy 12-18-2011 04:06 PM

Screen shots?

yeppuda 12-19-2011 10:38 PM

caps? please...


All times are GMT. The time now is 07:17 PM.

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.01121 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_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