vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - More Share Options TNG by BOP5 (Facebook, Twitter, Google +1, AddThis) Share Buttons (https://vborg.vbsupport.ru/showthread.php?t=266159)

jschvili 10-03-2012 04:49 AM

Quote:

Originally Posted by jschvili (Post 2370407)
Smooth addons. Thanks.

Unfortunately we can't use it since it doesn't support https. Could we possible change the url's used for Twitter and Addthis to https somewere in the code or could you add an option in the admin?
Code:

http://s7.addthis.com/js/250/addthis_widget.js
http://platform.twitter.com/widgets.js


I found it in the "more_share_tng" template. :cool:

BlogTwits 10-05-2012 06:31 AM

Buttons for twitter, g+ and facebook are fine. However, when clicking the add this button on my site, it just links and goes to the homepage.

Hovering over the button gives the homepage address along with /#

eg website.com/#

Any ideas how to fix?

BirdOPrey5 10-06-2012 12:51 AM

Quote:

Originally Posted by nezr (Post 2370403)
holy 51 pages....

Does this work on CMS at the bottom of each article?
Like on wordpress sites.

It puts share buttons by default under the navbar of every page, including articles. If you follow the instructions included for manual template edits you can instead move the buttons to the top of the footer instead, and if you used some template conditionals you could restrict it to show on only CMS pages, but it is intended to be used on all vBulletin pages.

Quote:

Originally Posted by jschvili (Post 2370407)
Smooth addons. Thanks.

Unfortunately we can't use it since it doesn't support https. Could we possible change the url's used for Twitter and Addthis to https somewere in the code or could you add an option in the admin?
Code:

http://s7.addthis.com/js/250/addthis_widget.js
http://platform.twitter.com/widgets.js


I thought I had already done this but if you edit the more_share_tng template and remove the http: from all the URLs, for example you get:

Code:

//s7.addthis.com/js/250/addthis_widget.js
//platform.twitter.com/widgets.js

It will use whatever protocol (http or https) as your current site uses automatically. In my testing only one or two of the less popular share buttons weren't compatible with https.

Quote:

Originally Posted by BlogTwits (Post 2370895)
Buttons for twitter, g+ and facebook are fine. However, when clicking the add this button on my site, it just links and goes to the homepage.

Hovering over the button gives the homepage address along with /#

eg website.com/#

Any ideas how to fix?

I would need to see a link to a page on your site where this is happening.

jaffaman 10-08-2012 03:56 PM

Installed and working great thanks for a great mod :)

gedsta 10-08-2012 04:21 PM

Have you an idea of what is possibly causing this?

Quote:

The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 25.2KiB.

http://static.ak.facebook.com/connec...php?version=11
https://s-static.ak.facebook.com/con...php?version=11

Superorb 10-10-2012 01:39 PM

How do I link my forum with its fan page on Facebook so that like counts are shared between sites?

BirdOPrey5 10-12-2012 10:54 AM

Quote:

Originally Posted by gedsta (Post 2371577)
Have you an idea of what is possibly causing this?

Perhaps my mod and vBulletin are both serving the same facebook file... If you search the more_share_tng template for either of those URLs, it looks like you could remove the one from the template and everything *should* still work on your setup- if you want to try it.

Quote:

Originally Posted by Superorb (Post 2372018)
How do I link my forum with its fan page on Facebook so that like counts are shared between sites?

I don't know if that is possible- some people seem to think it is- if so my only guess would be if your Fan Page has an application ID, then make that the application ID in Facebook Options in vBulletin settings- but just a guess.

Superorb 10-12-2012 04:52 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2372499)
I don't know if that is possible- some people seem to think it is- if so my only guess would be if your Fan Page has an application ID, then make that the application ID in Facebook Options in vBulletin settings- but just a guess.

I figured it out. You have to enter the URL of the Fan Page in the TNG template and it will be linked, but it will be like this everywhere the TNG plugin is shown. This is fine for me since I enabled the FB Like button for posts. Plus, since my site was newly launched I have no members and the easier it is to get those likes adding up the better. I'll change it when the site gets busier though.

dougdirac 10-13-2012 03:05 PM

Quote:

Originally Posted by Superorb (Post 2372567)
I enabled the FB Like button for posts.

How did you do FB likes for posts?

gedsta 10-13-2012 03:53 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2372499)
Perhaps my mod and vBulletin are both serving the same facebook file... If you search the more_share_tng template for either of those URLs, it looks like you could remove the one from the template and everything *should* still work on your setup- if you want to try it.

Removing the line,

e.src = document.location.protocol + '//connect.facebook.net/{vb:rawphrase facebook_language}/all.js';

Allows the likes to still be shown, but doesn't get rid of the error. :(

Thanks anyway.


All times are GMT. The time now is 02:08 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.03417 seconds
  • Memory Usage 1,758KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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