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)

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.


All times are GMT. The time now is 09:36 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.01160 seconds
  • Memory Usage 1,769KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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