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)

smirkley 10-10-2015 04:54 PM

Thank you Bop

friendlymela 10-12-2015 10:12 AM

This is nice one.. thanks

lapiervb 10-12-2015 01:41 PM

Can you pick which forums to show this in? Also can you select which usergroups see it?

smirkley 10-12-2015 03:52 PM

Liking this mod.

Anyone have any luck getting this injected into the navbar instead?

friendlymela 10-14-2015 03:46 AM

any latest button for share on social media

smirkley 10-17-2015 06:04 PM

This mod is working good for me.

Anybody figure out how to manually inject this into the navbar beside tabs and in between tabs and search bar?

smirkley 11-14-2015 03:50 PM

I have injected the manual string to put the addthis bar in the main navbar, and adjusted the padding to locate it just before the searchbox.

I cant figure out how to adjust the code or padding to get the addthis bar vertically centered in the main navbar. I need to raise it 10 or so pixels up so it aligns well with the tabs.

Any ideas?

to see what I mean, http://www.ignorancedenied.com

Thanks

smirkley 11-14-2015 04:26 PM

OK, figured it out. Had to edit the more_share_tng template and remove the initial linebreak.

Thanks BOP! Love the addon.

djbaxter 01-24-2017 06:35 PM

Actually using the Gold version but the forum at QAPLA is prettymuch closed.

Recently converted a 4.2.3 forum to SSL/TSL and Chrome now objects to two insecure scripts from this mod:

Code:

  <!-- Twitter -->
 
      <div style="float: left; width: 95px;">
        <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://www.localsearchforum.com/showthread.php?t=43388" data-count="horizontal"    lang="en">Tweet</a>
      </div>
     
        <script id="bop5twt" type="text/javascript">
        (function() {
                var twitterScriptTag = document.createElement('script');
                twitterScriptTag.type = 'text/javascript';
                twitterScriptTag.async = true;
                twitterScriptTag.src = 'http://platform.twitter.com/widgets.js';
                var s = document.getElementsByTagName('script')[0];
                s.parentNode.insertBefore(twitterScriptTag, s);
        })();
        </script>
     
   
  <!-- /Twitter -->

and

Code:

  <!-- Linked In -->
 
    <div style="float: left; margin-left: 15px;"><script type="in/share" data-url="https://www.localsearchforum.com/forum-tech-support/43388-upgrading-forum-ssl-please-let-us-know-if-any-problems.html" data-counter="right"></script></div>
    <script type="text/javascript">
    (function() {
        var sli = document.createElement('script');
        sli.type = 'text/javascript';
        sli.async = true;
        sli.src = 'http://platform.linkedin.com/in.js';
        var lix = document.getElementsByTagName('script')[0];
        lix.parentNode.insertBefore(sli, lix);
    })();
    </script>
 
  <!-- /Linked In -->

Any idea what to edit to convert these to https:// ???

pokesph 01-24-2017 07:32 PM

Easy fix..
Change
Code:

twitterScriptTag.src = 'http://platform.twitter.com/widgets.js';
and
Code:

sli.src = 'http://platform.linkedin.com/in.js';
to reflect https URLs

djbaxter 01-24-2017 07:52 PM

Yes, thanks. I was coming back to post that as the fix. It's working now.

Nice when there's only one file to edit so if there is an issue you can identify which file pretty fast! :)

BirdOPrey5 01-25-2017 01:37 PM

I apologize, I had setup Qapla to email me when a question was posted on a premium mod forum, but found out emails were broken due to a change by the host, I wasn't getting them. I should check in more regularly.

djbaxter 10-22-2017 12:06 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2215823)
Reserved.

The following text is not relevant to Version 3.0 or above.

Quote:

Alternate location for Share Buttons

This location has been used by VB 3.x forms and was recently suggested by someone (forget who, sorry) as a good location for the Facebook button on VB 4.x.

To do this edit the SHOWTHREAD template.

Find the code:
Code:

<vb:if condition="$show['fb_likebutton']">
{vb:raw fblikebutton}
</vb:if>

DELETE IT.

Now find the code:
Code:

<div id="thread_controls" class="thread_controls toolsmenu">
<div>

And right below it add:
Code:

<vb:if condition="$show['fb_likebutton']">
<span style="margin-left:0px; position:absolute; left:60px;
margin-top:3px;">{vb:raw fblikebutton}</span>
</vb:if>

This is for the default vBulletin 4 style. You may have to play with the style settings to get it to look right on a custom style.

This looks good on Chrome, IE9, and Firefox. The height alignments are a little off on Opera browsers but nothing too bad.


I am trying to relocate the share buttons as described above using version 3.2 of this mod.

You say this is not relevant to versions above 3.0 and as expected the instructions don't work.

How would I relocate the buttons using version 3.2?

Bestrafung 12-27-2017 03:45 PM

I'm having an issue but I'm not sure if it's with the mod or Facebook. When I Share something to Facebook the mod shows the CMS banner image but when submitted Facebook just has text. Is the image supposed to be posted to FB or not? If it is supposed to show the image how can we fix this?

BirdOPrey5 12-27-2017 06:26 PM

Facebook determines what image, if any, is available to be posted. You can give them a hint by filling out the Facebook Image URL in Facebook Options in your vBulletin Settings.

Facebook favors square or rectangular images, something around a 4:3 ratio rather than wide like a banner.

The mod has zero control over the share image.

Bestrafung 12-27-2017 07:27 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2591876)
Facebook determines what image, if any, is available to be posted. You can give them a hint by filling out the Facebook Image URL in Facebook Options in your vBulletin Settings.

Facebook favors square or rectangular images, something around a 4:3 ratio rather than wide like a banner.

The mod has zero control over the share image.

Thanks for the reply, good to know. I'll have to test a few things out to see if I can get it working.

BirdOPrey5 12-27-2017 07:57 PM

Use this link to debug the page (clear the cache and have it re-scanned) if you make a change: https://developers.facebook.com/tools/debug/

(you must be logged into facebook first to use the link)

Bodybuilder 11-02-2018 02:00 AM

Can this mod be altered in any way to support showing both social counts from http and https? Changing from http to https has caused some pages to lose social counts. Any advice?


All times are GMT. The time now is 08:33 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.01997 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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