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)
-   -   Miscellaneous Hacks - Share Buttons Bar by BOP5 (Facebook Like, Twitter, Google+1, and more share options) (https://vborg.vbsupport.ru/showthread.php?t=268967)

canaryforum 12-17-2011 10:57 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2274895)
You will need to edit the template more_share_options, find the code:

Code:

e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
and change it you your language settings.

What would I do if I have both English and Spanish installed as languages on my forum and want en_US if viewed in English and the Spanish equivalent if viewed in Spanish?

BirdOPrey5 12-19-2011 11:36 AM

I don't believe there is anything you can do about that. You might be able to use some sort of template conditional where you see what the current language id is and choose english or spanish based off that but I'm not going to support extensive code changes like this. There are articles on template conditionals in the articles section that can get you started.

B@Zzz... 12-25-2011 11:49 AM

Installed and works good (still playing with the settings) :)

Also changed the language of de facebooktext to dutch.
Is it possible to change all phrases to dutch?

B@Zzz... 12-25-2011 11:57 AM

Playing with the options and the first question is here:
Why do I have to fill in a number and where can I get this number (not by following the link):
Quote:

Facebook App ID
Your Facebook Application ID. If you don't have one, get one here.

BirdOPrey5 12-26-2011 06:07 PM

You need a facebook application ID for all facebook features to work. You must get it by following the link to the facebook developer's page, that is the only place you can get an app id.

As for other phrases in dutch, I don't think there are any other phrases, but if so you'd have to look up the button codes individually.

B@Zzz... 12-26-2011 06:20 PM

tnx for your answer, but what features will I get more with the appID?

When I follow the link I get this page:
https://developers.facebook.com/apps

But no ID?

VHLinks 12-31-2011 06:55 AM

Man I'm totally lost on the app thing. I must have the settings for it wrong.

I get the "Like" button on my forum no problem, I click it, it works and updates the counter. I look on my Facebook page, and NOTHING is on there. I did register an app and have an ID, and I put it in the plugin settings. Are there some other settings you need to do for the app to make it work? I mean I've put in the URL, email, name...I gotta be missing something.

HELP!!!

BirdOPrey5 12-31-2011 11:27 AM

Quote:

Originally Posted by B@Zzz... (Post 2281166)
tnx for your answer, but what features will I get more with the appID?

When I follow the link I get this page:
https://developers.facebook.com/apps

But no ID?

Posting that link doesn't mean much because it will be different for different people.
You must already be a facebook member and already be signed into your facebook account for the link to take you to the proper place.

If I remember right it takes you to a page that allows you to create an app, it doesn't just hand you an appid by clicking on it- you have to put in some info and when you are done you get an appid.

Quote:

Originally Posted by VHLinks (Post 2282471)
Man I'm totally lost on the app thing. I must have the settings for it wrong.

I get the "Like" button on my forum no problem, I click it, it works and updates the counter. I look on my Facebook page, and NOTHING is on there. I did register an app and have an ID, and I put it in the plugin settings. Are there some other settings you need to do for the app to make it work? I mean I've put in the URL, email, name...I gotta be missing something.

HELP!!!

Link to your site?

VHLinks 12-31-2011 10:12 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2282508)

Link to your site?

http://www.vhlinks.com/vbforums

Thank you very much for any help. This is driving me nuts!

BirdOPrey5 01-01-2012 09:12 PM

I put your site in the Facebook Debugger and got this:

https://developers.facebook.com/tool...ks-t52693.html

It's saying that there were too many redirects... if you scroll down you'll see at least two 301 redirects and a 3rd page.

I'm not really sure how or why this is happening- it may be the result of your .htaccess file or the way your domain is setup. I really don't have any more info- hopefully you know what is going on.

VHLinks 01-02-2012 12:58 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2282886)
I put your site in the Facebook Debugger and got this:

https://developers.facebook.com/tool...ks-t52693.html

It's saying that there were too many redirects... if you scroll down you'll see at least two 301 redirects and a 3rd page.

I'm not really sure how or why this is happening- it may be the result of your .htaccess file or the way your domain is setup. I really don't have any more info- hopefully you know what is going on.

Ok that at least helps! Thanks. Something to go off of.

VHLinks 01-02-2012 01:07 AM

Well once I turned off Zoints SEO and went back to the old way of calling the thread, showtread.php etc....THEN it worked. But I don't want to do that.

Does anyone know a work around to allow the like button to work with redirecting URL's with SEO scripts? I know most most people around here use VBSEO or Zoints SEO. I can't believe they don't have like buttons on their sites.

VHLinks 01-02-2012 05:04 AM

Well I turned off the 301 directing in the Zoints settings. That seemed to do it. I guess basically it won't redirect the old showthread.php stuff to the right place, but I haven't used that format on the board in like 5 years so I doubt it will matter.

But yep now it's working.

BirdOPrey5 01-04-2012 12:15 PM

Hey... all of a sudden the thread I "test liked" on your forum last week showed up on my wall this morning- so I guess any past likes will start working.

JesterP 01-13-2012 12:25 AM

When I go to get my app id, it asks for a password. I enter my password and it redirects me back to my own wall.

Any ideas??

BirdOPrey5 01-13-2012 12:55 PM

Sounds like a Facebook cookie issue. Do you keep yourself logged into facebook? Maybe try another browser.

j-bo 01-19-2012 03:55 PM

Edit: Found the problem, didn't have it uploaded in correct file.

B@Zzz... 01-19-2012 06:03 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2282508)
If I remember right it takes you to a page that allows you to create an app, it doesn't just hand you an appid by clicking on it- you have to put in some info and when you are done you get an appid.

Oops, didn't receive email notification, so I missed your post...
I think I wasn't logged in, because now it works. Thank you. I don't know what I can do more with the app created on facebook, but I have my ID.

Thank you!:)

juliannova 03-21-2012 05:53 AM

Can you add Pinterest button on the update

BirdOPrey5 03-21-2012 02:16 PM

I have setup a pinterest account and am working on how it can be integrated. Since pinterest wants a unique image for each share I don't know if it makes sense to include it yet since choosing a unique image from a thread is well out of scope of this mod.

juliannova 03-27-2012 03:59 PM

not sure I do have the button on my blog and people share images via plugin.

steve83 04-01-2012 06:28 PM

I've installed the mod on my forum at:
http://www.cancuncare.com/forum/

The Google+ button shows but the Facebook button does not. VB version 3.8.7

BirdOPrey5 04-02-2012 11:22 AM

I don't see it enabled at all anymore but it may be a conflict with your existing Facebook Like in the top right corner of the page. If you could try again and temp disable the top right button you could know for sure.

ShackMaster 04-05-2012 06:20 PM

Installed .... Uninstalled... did not do anything for me. Probably my customizations.

BirdOPrey5 04-12-2012 01:12 AM

Quote:

Originally Posted by juliannova (Post 2311625)
Can you add Pinterest button on the update

Pinterest wouldn't work with this mod- I released a Pinterest specific mod:
https://vborg.vbsupport.ru/showthread.php?t=281444

ludachris 04-19-2012 10:50 PM

This is more just a question for the developer - I like this mod but am looking for something that adds these same options to postbit... ideally right up next to the post # and report this post icon. This way a user can share individual posts instead of entire threads. Is there something in the code base that makes this difficult? I ask because I have only found mods that allow you to share entire threads, and not individual posts. Figured since you wrote this mod you might have some insight on this question.

Thanks!

BirdOPrey5 04-19-2012 11:21 PM

The reason I didn't make this to share individual posts is because I find threads as a whole to be more worthy of sharing than a specific post. If you share a post the point is for someone who has never been to your forum before to click on the link from Facebook and see it- I think a total "noob" to your forum is going to get confused if thrown into the middle of a thread- if they read from the start of a thread they have half a chance.

The other reason is between Facebook, Twitter, Google, and whatever else you are now using A LOT of screen real-estate for just share buttons already. Multiply that for every post and it's crazy IMO.

ludachris 04-20-2012 01:05 AM

I'm not worried about the real estate - I have plenty of room where I'd like it to go. As for getting noobs confused, I'm not worried about that either. The people who would be sharing links are car guys, which will attract other car guys. In my forum's case, it makes sense, especially since some of our threads are very long and the best post of the thread can be buried. It would be great for people to be able to share buried replies that have great info. Would it be difficult, in your opinion, to modify one of these sharing add-ons so that it would work with each post?

BirdOPrey5 04-20-2012 03:42 PM

If you were going to modify any you should start with my Pinterest Share mod. It already shows per post.

You would need to modify the template to add the Facebook and any other share buttons you want.

Pinterest requires URL Encoded URLs so you will need to modify the plugin too, grab the per-post URL before it is encoded, and make it part of the array that is registered to the template.

Finally you would move the template hook the mod creates to a suitable location in your postbit.

Then... wallah... facebook in every post.

busybeeburns 04-21-2012 01:35 PM

Hi BoP5 :)

Like this mod. I noticed your JUOT forums have them in the Thread Tools bar rather than below the navbar. Is that a modification that is applicable on 3.8.x or is that part of the vB4 mod only? I am running 3.8.5 and tried to do something similar to the showthread template without precision yet. Could you give me advice on how to edit it if applicable please?

BirdOPrey5 04-21-2012 02:08 PM

It was a lot of trial and error, I don't remember the exact changes- I know I had to edit the whole row, not just the one box-

Here is code from my current SHOWTHREAD template from juot.net- feel free to try it:

Code:

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
        <td class="tcat" width="185">
                <div class="smallfont">
                <if condition="$show['firstunreadlink']">
                        <a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
                        <a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
                </if>
                &nbsp;
                </div>
        <img src="clear.gif" width="185" height="1" border="0" />
        </td>
        <td class="alt1" width="100%" align="right" padding="0" style="padding-top:0px; padding-bottom:0px; padding-right:0px; background: #869BBF url(/forums/images/gradients/gradient_tcat.gif) repeat-x top left;">
        $more_share_options
        </td>
        <td class="vbmenu_control" id="threadtools" nowrap="nowrap">
                <a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
                <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
        </td>
        <if condition="$show['search']">
                <td class="vbmenu_control" id="threadsearch" nowrap="nowrap">
                        <a href="$show[nojs_link]#goto_threadsearch">$vbphrase[search_this_thread]</a>
                        <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>


busybeeburns 04-21-2012 03:32 PM

thanks :)

I had a quick play around and decided on the row below. I'm using Facebook Connect plugin which is causing some errors to the FB like app as per the previous posts. Is there a work around for the 3.8.x version?

BirdOPrey5 04-21-2012 05:11 PM

I've never used Facebook connect for VB 3.x- is there a specific error being returned? Can you check for a javascript error in your browser? (In Chrome right click-> View Element then click on the "Console" tab to see Javascript errors) - not sure how to do it in other browsers but I know there is a way.

B@Zzz... 04-24-2012 04:42 PM

Hello, just activated this mod and my users are happy! :)

Only one question, it doesn't show up on the vBadvancedCMPS-portal (v3.2.1)? Do I have to make any other changes? (vBulletin v3.8.1)

BirdOPrey5 04-24-2012 07:33 PM

Sorry I don't have any experience trying to get this to work on VBA CMPS.

For my own site I just put the HTML Facebook (and the other sites) give me directly into a module and use them that way.

B@Zzz... 04-25-2012 04:30 AM

Thanks for you fast reply!
You have an example of the HTML-code you used on your website?

BirdOPrey5 04-26-2012 11:18 AM

When I went to check I see I actually removed them from that page for some reason and didn't keep a copy...

For the facebook code just go here:
https://developers.facebook.com/docs.../plugins/like/

fill out the boxes and facebook will give you the code.

ChiNa 07-18-2012 12:56 PM

HI every one, I have a message to to you guys and to BOB...
I am using ur mods on my template, and all of them are clean with no errors!
I am very honored to see someone making such an incredible mod for vbulletin, there is no mod like this for vbulletin, and especially your private_policy addon, so simple and yet so easy and clean..

Thanks for your hard work for us vBulletin users, you make this worth more..
by China-Man

BirdOPrey5 07-18-2012 06:11 PM

If you are using this mod please click on "Mark as Installed" in the top-right of the first post.

pedrovazquez10 09-09-2012 04:23 PM

My forum is in spanish how can i translate the boton like and send to spanish? thanks

ok i replace en_US with es_ES thanks


All times are GMT. The time now is 02: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.01276 seconds
  • Memory Usage 1,832KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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