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)

BirdOPrey5 07-24-2011 09:57 PM

Great to hear. :up:

Anyone else with an invalid character error should follow my instructions in post #176.

Revert or delete your existing more_share_options templates before re-installing the mod.


On an unrelated note I've noticed the way vBulletin loads the Facebook button is good (it loads last) but it could be better.

I found this issue in the bug tracker: http://tracker.vbulletin.com/browse/...story-tabpanel

Please vote for the issue if you want faster/better performing Facebook buttons.

sportsfroma2 07-24-2011 10:57 PM

Quick question- this probably isn't possible, but I thought I'd ask:

Sometimes, I've noticed that my pages hang up on the loading of the stumbleupon button, and when it got really bad I disabled your mod for a few hours and then enabled it, and it was loading fine again...

Is there a way to serve those images locally OR perhaps to make it so they load after the content (posts on that page) load?

If not, not a big deal, I understand it's probably quite difficult to implement that change.

Thanks!

BirdOPrey5 07-24-2011 11:36 PM

The next version of this mod will have all the share options (including stumbleupon) loading asynchronously which means the rest of the page will load and not wait for any of the share buttons to finish loading.

sportsfroma2 07-24-2011 11:47 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2224551)
The next version of this mod will have all the share options (including stumbleupon) loading asynchronously which means the rest of the page will load and not wait for any of the share buttons to finish loading.


incredible... Thanks BirdOPrey!!

onegawd 07-25-2011 05:11 AM

Love this mod. :)

1 Question. Any plans to have an option to disable the share icon on specified forums (such as private sections) ?

BirdOPrey5 07-25-2011 12:36 PM

Quote:

Originally Posted by onegawd (Post 2224631)
Love this mod. :)

1 Question. Any plans to have an option to disable the share icon on specified forums (such as private sections) ?

Yes, will also be part of the next version.

BirdOPrey5 07-25-2011 04:51 PM

Updated Mod to Version 2.5

New Features:
  • New simpler template layout- no virgin template required for edits.
  • All buttons now load asynchronously so the page load does not wait for the buttons.*
  • New option to disable or enable the share buttons in specific forums (to disable in private forums).
  • Includes "Invalid Character" in template bug fix.

I strongly recommend everyone upgrade to this latest version.

Note: I have moved the default order of the buttons- the Goolge +1 button does not resize automatically so to have a clean look and consistent spacing between buttons I had to move it to the very end.

You can easily change the order of buttons by manually editing the more_share_options template. A "virgin template" is no longer required- simply copy and paste the button codes in whatever order you want them.

I strongly recommend you revert any customization you've made in the more_share_options template so you work off the new, simplified, template- however the mod should still work with the old 2.25 template.

BirdOPrey5 07-25-2011 05:01 PM

Oh on older versions of vBulletin (4.1.1 and below) the Facebook Button Code loads asynchronously because it's supplied by this mod.

However in 4.1.2 and above vBulletin itself supplies the code and it's not technically asynchronous, HOWEVER it loads at the very bottom of the page so the result is virtually the same as asynchronous loading.

I strongly urge everyone to vote this issue in the tracker to ask vBulletin convert it to completely asynchronous code: http://tracker.vbulletin.com/browse/...story-tabpanel


If You absolutely must have asynchronous loading on Facebook in 4.1.2 and above you can manually edit your facebook_footer template.

Erase it all and replace it with:
Code:

<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin_facebook.js?v={vb:raw vboptions.simpleversion}"></script>
<div id="fb-root"></div>       
                <script type="text/javascript">
                        window.fbAsyncInit = function() {
                                FB.init({appId: '{vb:raw vboptions.facebookappid}', status: true, cookie: true,xfbml: true});
                                FB.Event.subscribe('edge.create', function(url) {
                                  _gaq.push(['_trackSocial', 'facebook', 'like', url]);
                                });
                                FB.Event.subscribe('edge.remove', function(url) {
                                  _gaq.push(['_trackSocial', 'facebook', 'unlike', url]);
                                });
                        };
                        (function() {
                                var e = document.createElement('script'); e.async = true;
                                e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
                                document.getElementById('fb-root').appendChild(e);
                        }());
                </script>

<script type="text/javascript">
<!--
YAHOO.util.Event.onDOMReady(
        function()
        {
                vBfb = new vB_Facebook({
                        appid : "{vb:raw vboptions.facebookappid}",
                        connected : {vb:raw connected},
                        active : {vb:raw active},
                        autoreg : {vb:raw vboptions.facebookautoregister},
                        feed_newthread : {vb:raw vboptions.fbfeednewthread},
                        feed_postreply : {vb:raw vboptions.fbfeedpostreply},
                        feed_blogentry : {vb:raw vboptions.fbfeedblogentry},
                        feed_blogcomment : {vb:raw vboptions.fbfeedblogcomment},
                        feed_newarticle : {vb:raw vboptions.fbfeednewarticle},
                        feed_articlecomment : {vb:raw vboptions.fbfeedarticlecomment}
                });
        }
);
-->
</script>


EDIT - It appears sometime between 4.1.2 an 4.2.0 the default code is now asynchronous. I do not know when the change happened but I suggest you not make this change on a newer VB version (certainly not 4.2.0+)

BaanFarsang 07-25-2011 05:08 PM

Thanks, work on 4.1.5 beta versions and fast loading page too. But press like button above some Pictures, there aren't show any contents on Facebook, by set like as like button counts. Also, if set like as like standard it show error: "Your page's type requires that a meta tag of the form <meta property="og:image" ...> be present."

fukdawrld 07-25-2011 08:37 PM

1 Attachment(s)
Hello I'm on 4.1.4 pl2 and everything is working great on the mod. The only thing I noticed is its breaking the template on chrome only..opera and firefox seem to work fine. Any suggestions?

I've tried turning auto templates off but nothing changes it except disabling the mod.

Attachment 131393


All times are GMT. The time now is 11:42 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.01661 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (2)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