vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Add-On Releases - Add "LIKE" button and other Facebook plugins to threads. (https://vborg.vbsupport.ru/showthread.php?t=243319)

Digital Jedi 07-03-2010 05:09 AM

For what it's worth, I've been having problems installing the Like button even before I found this mod. I pretty much did everything they instructed at Facebook before I read the install instructions here, and it appears to be the same problem. "Like" does not like vBulletin threads. At least not vB3 threads.

BirdOPrey5 07-03-2010 03:37 PM

Quote:

Originally Posted by Digital Jedi (Post 2063612)
For what it's worth, I've been having problems installing the Like button even before I found this mod. I pretty much did everything they instructed at Facebook before I read the install instructions here, and it appears to be the same problem. "Like" does not like vBulletin threads. At least not vB3 threads.

I agree this is much more difficult then it should be- something isn't playing nicely in vB... but I did end up getting this to work using all the instructions in this mod but instead if pasting the last step here into the template I used the IFRAME code provided by facebook...

Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAIN/forums/showthread.php$session[sessionurl]?t=$threadid" &amp;show_faces=false&amp;width=350&amp;action=like&amp;colorscheme=dark&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe>
edit YOURDOMAIN to be your web domain...

Additionally I put it in an if tag:
Code:

<if condition="!in_array($GLOBALS[forumid], array(2, 3, 6, 15, 24, 45))">
 -iframe code-
</if>

Where the numbers are the forum id's of private forums that aren't viewable by guests and therefore useless to add a 'like' button too.

Finally I moved this to under where the page navigation menu would show if it was a multiple page thread on the showthread template... I moved the <td></td> tags out of the built in <if> statement so the table will be there regardless of whether the page nav menu is displayed... the code for everything now looks like:

Code:

        <td align="$stylevar[right]"><if condition="$show['pagenav']">$pagenav</if>
<if condition="!in_array($GLOBALS[forumid], array(2, 3, 6, 15, 24, 45))">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAIN/forums/showthread.php$session[sessionurl]?t=$threadid" &amp;show_faces=false&amp;width=350&amp;action=like&amp;colorscheme=dark&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe>
</if>
</td>

Anyway this all works fine (for me), you can see a demo at:
http://www.juot.net/forums/showthread.php?t=41185
No login required.

Xtrigit 07-04-2010 10:03 PM

MOD has been updated, enjoy!

Digital Jedi 07-07-2010 06:46 AM

Quote:

Originally Posted by Xtrigit (Post 2064546)
MOD has been updated, enjoy!

Okay, made the updated changes. Still giving me the iframe error, even though I'm not using an iframe. Really, I don't see any reason why this shouldn't be working. Everything is as Facebook says it should be done.

Digital Jedi 07-07-2010 06:50 AM

Quote:

Originally Posted by Digital Jedi (Post 2065726)
Okay, made the updated changes. Still giving me the iframe error, even though I'm not using an iframe. Really, I don't see any reason why this shouldn't be working. Everything is as Facebook says it should be done.

Looks like we're not the only one's having this problem: http://thecandycrew.webs.com/ http://forum.developers.facebook.com...php?pid=242948

Xtrigit 07-07-2010 08:57 PM

Quote:

Originally Posted by Digital Jedi (Post 2065728)
Looks like we're not the only one's having this problem: http://thecandycrew.webs.com/ http://forum.developers.facebook.com...php?pid=242948

What is your site URL?

I've implemented facebook plugins in dozens of sites and they all seem to be working great.

I believe some javascript on your site is interfering with facebook plugins.

sundarmobiles 07-08-2010 11:55 AM

1 Attachment(s)
can u give the procedure to use navbit area like in this screen shot and also can i use this one for this version 3.7.3?

BirdOPrey5 07-08-2010 03:20 PM

Quote:

*YOUR PROFILE ID = http://www.facebook.com/profile.php?id=randomnumbers
Are these random numbers made up by us or are they generated somewhere? How many digits- does it matter?

BirdOPrey5 07-08-2010 10:24 PM

Quote:

*This will place the Facebook Comment box below the last post, you may change the width to your liking.
*The comment box will only be shown to guests.
Also- why would I only want to show the comment box to guests? Wouldn't I want anyone to be able to make a comment when they Like something?

Xtrigit 07-10-2010 01:58 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2066371)
Are these random numbers made up by us or are they generated somewhere? How many digits- does it matter?

Those numbers are your facebook profile ID, you'll find this in the address bar when you sign in to facebook.

If you have assigned your profile a custom "name", please read this:
http://www.ehow.com/how_5753004_facebook-id.html

Quote:

Originally Posted by BirdOPrey5 (Post 2066562)
Also- why would I only want to show the comment box to guests? Wouldn't I want anyone to be able to make a comment when they Like something?

Replace:
PHP Code:

<br /> 
<!-- 
Facebook Comment --> 
<if 
condition="in_array($bbuserinfo[usergroupid],array(2,6,7,5))"><else /><div align="center"
<
fb:comments numposts="3" width="800"></fb:comments></if></div
<!-- / 
Facebook Comment --> 

With:
PHP Code:

<br /> 
<!-- 
Facebook Comment --> 
<
div align="center"
<
fb:comments numposts="3" width="800"></fb:comments></if></div
<!-- / 
Facebook Comment --> 

Now all members and guests can see and write in the comment box.

BirdOPrey5 07-10-2010 03:41 AM

Thanks for the reply, but I guess my question is why would I only want to show the comment box to guests? I think I'm missing something because wouldn't everyone want a comment to be entered by anyone, member or guest alike? If I don't show the comment box to registered users, like you originally coded, then how would registered users leave comments- is there some other way for them?:confused:

BirdOPrey5 07-10-2010 04:16 AM

You say:
Quote:

Code:

<br />
<!-- Facebook Comment -->
<if condition="in_array($bbuserinfo[usergroupid],array(2,6,7,5))"><else /><div align="center">
<fb:comments numposts="3" width="800"></fb:comments></if></div>
<!-- / Facebook Comment -->

*This will place the Facebook Comment box below the last post, you may change the width to your liking.
*The comment box will only be shown to guests.

But that code shows it to anyone not in the registered users, mods, admins, or supermods group. Many people have additional usergroups besides these. If you really only want to show to guests you should use:
Code:

<br />
<!-- Facebook Comment -->
<if condition="in_array($bbuserinfo[usergroupid],array(1))"><div align="center">
<fb:comments numposts="3" width="800"></fb:comments>
</div></if>
<!-- / Facebook Comment -->

You also have the start of the <div> inside the conditional and the end of it outside, so the </div> will always be output even if the beginning <div> isn't.
I'm starting to think this is something different then the box where users enter a comment to be posted to their page- maybe this is where comments are left for the thread it's showing?
EDIT- I see this is a completely different thing then simply the 'Like' button... OK, not sure if I need it but will try.

One more thing- I tried this in IE, FF, Chrome, Safari, and Opera- and it worked in all of them but Opera- in Opera I just get the 'loading' graphic and the comment box never appears- but I don't care about Opera anyway- just an FYI.

Xtrigit 07-10-2010 08:26 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2067106)
Thanks for the reply, but I guess my question is why would I only want to show the comment box to guests? I think I'm missing something because wouldn't everyone want a comment to be entered by anyone, member or guest alike? If I don't show the comment box to registered users, like you originally coded, then how would registered users leave comments- is there some other way for them?:confused:

This is just a comment box, good for visitors that are just passing by, they can leave a comment without having to register on your site, the comment gets posted on the page and on their facebook wall. Why show it to members when they can just click the "LIKE" button and write a comment there?

You may not need it, others may.

Personally, i would recommend it, why force someone to register if he/she is only going to post once and never come back? You may "lose" that one registration but in return you will get 3 more to replace him/her.

Let visitors drive you more traffic. :D

Xtrigit 07-10-2010 08:45 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2067113)
You say:

If you really only want to show to guests you should use:
Code:

<br />
<!-- Facebook Comment -->
<if condition="in_array($bbuserinfo[usergroupid],array(1))"><div align="center">
<fb:comments numposts="3" width="800"></fb:comments>
</div></if>
<!-- / Facebook Comment -->


Yes, that is correct :up:

Quote:

You also have the start of the <div> inside the conditional and the end of it outside, so the </div> will always be output even if the beginning <div> isn't.
Hehe, that, too, is correct.

Thanks for noticing :)

BirdOPrey5 07-10-2010 01:46 PM

Quote:

Originally Posted by Xtrigit (Post 2067165)
This is just a comment box, good for visitors that are just passing by, they can leave a comment without having to register on your site, the comment gets posted on the page and on their facebook wall. Why show it to members when they can just click the "LIKE" button and write a comment there?

You may not need it, others may.

Personally, i would recommend it, why force someone to register if he/she is only going to post once and never come back? You may "lose" that one registration but in return you will get 3 more to replace him/her.

Let visitors drive you more traffic. :D

I get it now, I am using it- I just was confused with the terminology since I thought by 'comment box' it was the small 1 line comment field when you press the like button.

Also I agree with your logic of showing it only to guests but I would suggest also at least the admin, if not mods, in case there is a comment that needs to be removed- I don't usually visit my board as a guest and I may not even be aware of a 'bad' comment otherwise.

BirdOPrey5 07-10-2010 03:49 PM

OK, I made a comment with the comment box, it showed up on Facebook but after I left the page and returned to it the comment on the page was gone.

sundarmobiles 07-13-2010 10:59 AM

can u give the procedure to use navbit area like in the screen shot and also can i use this one for this version 3.7.3?

https://vborg.vbsupport.ru/attachmen...1&d=1278593714

Digital Jedi 07-14-2010 08:49 PM

Quote:

Originally Posted by Xtrigit (Post 2066071)
What is your site URL?

I've implemented facebook plugins in dozens of sites and they all seem to be working great.

I believe some javascript on your site is interfering with facebook plugins.

City of Gamers. Been having trouble with it since before trying this mod out.

Xtrigit 07-15-2010 01:25 AM

Quote:

Originally Posted by sundarmobiles (Post 2068494)
can u give the procedure to use navbit area like in the screen shot and also can i use this one for this version 3.7.3?

Open:
Navbar template located in Navigation / Breadcrumb Templates

Find:
PHP Code:

        <else />
            <
div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
        </if> 


Replace with:
PHP Code:

        <else />
            <
div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>&nbsp;&nbsp;&nbsp;<fb:like href="$vboptions[bburl]/showthread.php$session[sessionurl]?t=$threadidlayout="button_count" show_faces="false"></fb:like></div>
        </if> 


Digital Jedi 07-15-2010 03:35 AM

Quote:

Originally Posted by Xtrigit (Post 2066071)
What is your site URL?

I've implemented facebook plugins in dozens of sites and they all seem to be working great.

I believe some javascript on your site is interfering with facebook plugins.

Actually, I just installed the Wibiya toolbar, so I'm think going with the Like button on that. Thanks, though.

sundarmobiles 07-15-2010 05:22 PM

hey i installed fully but flike button not showing and also dont get any error pls help me

Xtrigit 07-15-2010 06:53 PM

did you edit and upload the javascript file?

sundarmobiles 07-16-2010 01:48 AM

s sir i did tat my vbulletin version is 3.7.3 is this work with this version?

sundarmobiles 07-16-2010 05:00 AM

hi if i logged out of the forum facebook comment box and like button display if i logged in it wont display and one more error if i click the like button am getting this error
Quote:

You failed to provide a valid list of administators. You need to supply the administors using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users.
and in navbit area i tried as u said but it wont display in both condition please help me out.

sundarmobiles 07-16-2010 05:25 AM

ok i got it its permission problem i edit the user group id and fixed but still getting this error if i click the like button
Quote:

You failed to provide a valid list of administators. You need to supply the administors using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users.
and also wont display in navbit area please help me out

Xtrigit 07-16-2010 07:22 AM

Quote:

Originally Posted by sundarmobiles (Post 2069892)
you failed to provide a valid list of administrators...

PHP Code:

<meta property="fb:admins" content="YOUR PROFILE ID"/> 

Make sure you replace YOUR PROFILE ID with your actual id:

If you don't know what your ID is, log in to facebook and look in the address bar, you will see a set of random numbers.

sundarmobiles 07-16-2010 07:32 AM

i fixed this one sir now working fine postbit area but still navigation area fb button not display sir

Xtrigit 07-16-2010 08:34 AM

PHP Code:

<meta property="fb:app_id" content="125002750876861" /> 

Delete that meta tag, you don't need it.

PHP Code:

<meta property="fb:admins" content="http://www.facebook.com/profile.php?id=100000107178422"/> 

Replace the above with:

PHP Code:

<meta property="fb:admins" content="100000107178422"/> 

Everything else seems to be fine, except for the like button which you haven't added.

sundarmobiles 07-17-2010 02:44 AM

ok now its work fine in postbit area but not displayed in navbar area

sundarmobiles 07-17-2010 11:30 AM

finally i fixed the navbar area now fb button displayed there but url problem am using vbseo but i used <fb: comments> in showthread area this one correcly pick my url automatically but in my navbar area i used <fb:like> it wont pick my url correctly it said ur url is not reachable can u get my point?

sundarmobiles 07-17-2010 02:08 PM

fb like button only displayed in homepage if i get in to any thread the fb like button wont display in navbar area

Xtrigit 07-19-2010 01:26 PM

Quote:

Originally Posted by sundarmobiles (Post 2070655)
fb like button only displayed in homepage if i get in to any thread the fb like button wont display in navbar area

Find:
PHP Code:

</span>
        
</
td>
            </
tr>
            <
tr>
                <
td class="navbar" 

Paste above the fb like code.

Also, you pasted this twice:
PHP Code:

<div id="fb-root"></div
<
script src="/images/fb.js" type="text/javascript"></script


sundarmobiles 07-19-2010 01:43 PM

now everything ok but in this link http://www.srimeenakshimobiles.com/f...announcements/ fb like button dont pick the url correctly it said ur url not reached but in this link http://www.srimeenakshimobiles.com/f...ral-rules.html it pick the url correctly

sundarmobiles 07-19-2010 01:51 PM

1 Attachment(s)
check the difference of url in this screen shot

sundarmobiles 07-19-2010 01:55 PM

1 Attachment(s)
this screen shot for correctly picked url

sundarmobiles 07-24-2010 07:18 AM

hi xtrigit any solution for this?

Support 07-31-2010 02:41 PM

Hi every one,
i added LIKE button to my forum and it works just fine except one issue, if i click on LIKE and write a comment it shows on my profile with Random Thumbnail, so how can i get the option to choose the Thumbnail i want to add with the topic i LIKE ?

BirdOPrey5 07-31-2010 04:05 PM

Quote:

Originally Posted by Support (Post 2077242)
Hi every one,
i added LIKE button to my forum and it works just fine except one issue, if i click on LIKE and write a comment it shows on my profile with Random Thumbnail, so how can i get the option to choose the Thumbnail i want to add with the topic i LIKE ?

The Thumbnail should be controlled by the line:
<meta property="og:image" content="IMAGEPATH"/>

in the headerinclude template. You need to replace "IMAGEPATH"/> with the path to a thumbnail image, or usually your forum logo... something like "/forums/images/misc/logo.gif"

Support 07-31-2010 06:24 PM

Still not working

Code:

<meta property="og:image" content="http://www.mixlogy.com/vb/images/mix.gif"/>
I added it from here
http://developers.facebook.com/docs/...e/plugins/like

im just need the full come which show my forum image on every LIKE click on user profiles
and i need to know why i have to put my id ?

Support 07-31-2010 07:55 PM

Is this right ?
Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.mixlogy.com/vb/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true">
<meta property="og:site_name" content="Mixlogy.com"/>
<meta property="og:image" content="http://www.mixlogy.com/vb/images/mix.gif"/>
<meta property="fb:admins" content="100000769173722"/>
</iframe>



All times are GMT. The time now is 01:37 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.01987 seconds
  • Memory Usage 1,886KB
  • 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
  • (8)bbcode_code_printable
  • (10)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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