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)

zelnik 07-21-2011 01:59 PM

thanks for the update!

odln018 07-21-2011 02:15 PM

BOP -
Any further thoughts on why my other buttons aren't showing up?

BirdOPrey5 07-21-2011 02:43 PM

Quote:

Originally Posted by odln018 (Post 2223222)
BOP -
Any further thoughts on why my other buttons aren't showing up?

Not really- please disable this mod, enable the built in facebook options, and give me a link to your forum. I should be able to see the built in facebook button in threads.

8thos 07-21-2011 04:13 PM

Hey when hitting the Like button in this mod, does it give a preview of the page you liked on your Facebook Wall?

onegawd 07-21-2011 09:58 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2223167)
You might have a corrupted install file... Download a new copy, preferably using a different browser and try to install that way.

if the template still isn't full just copy and paste the full template odln018 posted in and see if it works- but you probably have bigger problems then just the template.



Yes, you can individually enable or disable more share options in each location (except albums and pictures are both or neither.)

I uninstalled the mod. Downloaded a new copy using a different browser. Imported it, then enabled it. Still not showing up.
Checked the template and it's broken how it was before.. So I copy and pasted the template from odlin018. Still no go.

8thos 07-21-2011 10:07 PM

Nevermind BOP I found the answer: https://vborg.vbsupport.ru/showthread.php?p=2223367

8thos 07-21-2011 11:34 PM

The day I try figuring this out is the day they decide to change it. https://github.com/facebook/connect-js/issues/280

yahooooh 07-22-2011 09:33 PM

syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/xxxxxx/public_html/includes/class_core.php(4464) : eval()'d code on line 108

vbulletin 4.0.4 pl2
i try v225
and this error appeared

8thos 07-22-2011 11:07 PM

Works perfect! How can I get this working with 8way Media Library?

How can I get the Facebook Share button to let us choose an image?

BirdOPrey5 07-23-2011 02:03 AM

Quote:

Originally Posted by yahooooh (Post 2223677)
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/xxxxxx/public_html/includes/class_core.php(4464) : eval()'d code on line 108

vbulletin 4.0.4 pl2
i try v225
and this error appeared

Thank you for your report. Unfortunately I can't reproduce the problem so I don't have any suggestions at this time. I will keep a look-out should I find more info on the problem.

Quote:

Originally Posted by Octavius. (Post 2223726)
Works perfect! How can I get this working with 8way Media Library?

How can I get the Facebook Share button to let us choose an image?

I don't use the media library so I'm not sure how it would fit in, if at all. I'd imagine it would require you to manually modify a template to add {vb:raw more_share_options} to the template and then a custom plugin to register the share template to the media library template(s).

As for setting an image you should be able to set an image for your facebook application and it should use that if you have your app-id set in facebook settings.

8thos 07-23-2011 02:14 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2223772)
Thank you for your report. Unfortunately I can't reproduce the problem so I don't have any suggestions at this time. I will keep a look-out should I find more info on the problem.



I don't use the media library so I'm not sure how it would fit in, if at all. I'd imagine it would require you to manually modify a template to add {vb:raw more_share_options} to the template and then a custom plugin to register the share template to the media library template(s).

As for setting an image you should be able to set an image for your facebook application and it should use that if you have your app-id set in facebook settings.

My Facebook App Image seems to be broken. I'll figure it out thanks!

onegawd 07-23-2011 03:09 AM

Quote:

Originally Posted by yahooooh (Post 2223677)
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/xxxxxx/public_html/includes/class_core.php(4464) : eval()'d code on line 108

vbulletin 4.0.4 pl2
i try v225
and this error appeared

I'm getting the exact same thing.

But on Vbulletin 4.1.4 pl2 with v225

Mukashi 07-24-2011 12:56 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2221363)
Thanks for the info, I'm not 100% sure what the issue yet, althogh VBSEO seems like a good scape-goat. :D

I actually just noticed I left some debug code in causing all parts of the mod to be active at all times. I just fixed this and released version 2.25. Please try it when you get a chance- you will probably still get the error but maybe you can tell me if it's specific to 1 page this time? (Like just formhome, just theeads, just albums, just member profiles, etc...) or if you still get them on all pages.

Thanks.

I suggest everyone upgrade to 2.25 as it should have better performance with the debug code removed.

Okay, finally got a chance to update, let's see what we've got.

As soon as I turn the extension on, with all the other settings set to No or disabled, threads show me this. Just get a white page with this error, no thread loading whatsoever.

Code:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/themozz/public_html/bmgf/includes/class_core.php(4465) : eval()'d code on line 108

Parse error: syntax error, unexpected '=' in /home/themozz/public_html/bmgf/includes/class_core.php(4465) : eval()'d code on line 108

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php(4465) : eval()'d code:108) in [path]/vbseo/includes/functions_vbseo_url.php on line 549

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php(4465) : eval()'d code:108) in [path]/vbseo/includes/functions_vbseo_url.php on line 553


BirdOPrey5 07-24-2011 01:01 PM

Quote:

Originally Posted by onegawd (Post 2223778)
I'm getting the exact same thing.

But on Vbulletin 4.1.4 pl2 with v225

Quote:

Originally Posted by yahooooh (Post 2223677)
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/xxxxxx/public_html/includes/class_core.php(4464) : eval()'d code on line 108

vbulletin 4.0.4 pl2
i try v225
and this error appeared

Could you guys try turning Auto Template Edits OFF (No) and see if anything changes?

Quote:

Originally Posted by Mukashi (Post 2224131)
Okay, finally got a chance to update, let's see what we've got.

As soon as I turn the extension on, with all the other settings set to No or disabled, threads show me this. Just get a white page with this error, no thread loading whatsoever.

Code:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/themozz/public_html/bmgf/includes/class_core.php(4465) : eval()'d code on line 108

Parse error: syntax error, unexpected '=' in /home/themozz/public_html/bmgf/includes/class_core.php(4465) : eval()'d code on line 108

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php(4465) : eval()'d code:108) in [path]/vbseo/includes/functions_vbseo_url.php on line 549

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php(4465) : eval()'d code:108) in [path]/vbseo/includes/functions_vbseo_url.php on line 553


You said everything was already off, but if yo left auto template edits on please try again with them off.

Also if everyone could confirm WHAT PAGES do you get these errors on?
ALL?
Threads?
Blogs?
Forumhome?

etc... Please would help in debugging these issues.

onegawd 07-24-2011 04:32 PM

Same issue.

So I uninstalled the plugin, downloaded again with a different browser, installed, and enabled with auto template updates off. No go, same issue.

As well, what I just noticed, is if I edit the template files with the one that was posted earlier, I hit save, and it looks like it saves. But when I go back and check, nothing has changed.

BirdOPrey5 07-24-2011 07:34 PM

Quote:

Originally Posted by onegawd (Post 2224391)
Same issue.

So I uninstalled the plugin, downloaded again with a different browser, installed, and enabled with auto template updates off. No go, same issue.

As well, what I just noticed, is if I edit the template files with the one that was posted earlier, I hit save, and it looks like it saves. But when I go back and check, nothing has changed.

OK I found your problem- it is likely the problem everyone has been having.

Somehow in the code for the Facebook Send button I used a funky quote character instead of the normal quote character ("). Probably a copy and paste issue.

To fix your issue edit the XML product file... look for the line:

Code:

<fb:send <vb:if condition="$bophref">href="{vb:raw bophref}?</vb:if> font=?tahoma" colorscheme="{vb:raw boplord}"></fb:send>
Replace all the " quotes in red with a normal " quote.

You might not see a difference in the shape of the quote depending on the font you are using but trust me they are different characters.

The funky quote isn't valid on some systems.

I will fix the quotes in the next release, due out very soon, if you don't want to manually edit yourself.

Once you make the changes re-import the product, it should work.

The new version I am pleased to announce will allow for asynchronous javascript loading of all buttons to improve page load performance.

onegawd 07-24-2011 08:21 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2224460)
OK I found your problem- it is likely the problem everyone has been having.

Somehow in the code for the Facebook Send button I used a funky quote character instead of the normal quote character ("). Probably a copy and paste issue.

To fix your issue edit the XML product file... look for the line:

Code:

<fb:send <vb:if condition="$bophref">href="{vb:raw bophref}?</vb:if> font=?tahoma" colorscheme="{vb:raw boplord}"></fb:send>
Replace all the " quotes in red with a normal " quote.

You might not see a difference in the shape of the quote depending on the font you are using but trust me they are different characters.

The funky quote isn't valid on some systems.

I will fix the quotes in the next release, due out very soon, if you don't want to manually edit yourself.

Once you make the changes re-import the product, it should work.

The new version I am pleased to announce will allow for asynchronous javascript loading of all buttons to improve page load performance.

Nice, thanks. That seems to have solved 1 issue. I can see the facebook like button now when the mod is enabled.

But I cant see any more buttons. My template file still is incomplete, and when I copy over the completed one and save, it processes like it's saving, but it remains the same.
Not sure if you have any ideas what's going on there.

BirdOPrey5 07-24-2011 08:26 PM

Maybe you need to "revert" the more_share_options template now. It might have saved over the old version.

Worst case uninstall the mod, then go to edit templates- if the more_share_options template still exists after uninstalling, manually delete it, then re-install.

onegawd 07-24-2011 08:38 PM

Weird.
I uninstalled the mod, deleted the template. then re-installed it. And the template is still messed up.
It cuts off at the exact same point every time and won't allow it to go passed that.

onegawd 07-24-2011 08:54 PM

Ok. Fixed it.
For the template, when I copied over the good one that was posted here. I replaced the same quotes in that file as you specified for the xml. Worked perfect. Thanks!

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

fukdawrld 07-25-2011 08:51 PM

On a more thorough view I see its not just the username but the entire banner alignment..its all pushed to the left.

BirdOPrey5 07-25-2011 11:23 PM

I will need a link to your forum.

Taurus1 07-25-2011 11:28 PM

Joe, I want to thank you from the bottom of my heart for what you have done in this latest update! The asynchronous loading of all the buttons makes a huge difference on my forum. I live and work in China, and also have many Chinese members. And as Twitter, Facebook, google etc are blocked here, this always caused a huge lag on pageload. Now it loads great! Once again, thank you so much!!

onegawd 07-26-2011 01:51 AM

This is awesome, thanks for the update. Works perfect!
:)

fukdawrld 07-26-2011 02:15 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2224955)
I will need a link to your forum.

Ok...its an adult site so I pm the link and log in.

Mukashi 07-26-2011 04:07 AM

Looks like the latest version is now working perfectly for us. =)

BirdOPrey5 07-26-2011 09:26 AM

Quote:

Originally Posted by Taurus1 (Post 2224956)
Joe, I want to thank you from the bottom of my heart for what you have done in this latest update! The asynchronous loading of all the buttons makes a huge difference on my forum. I live and work in China, and also have many Chinese members. And as Twitter, Facebook, google etc are blocked here, this always caused a huge lag on pageload. Now it loads great! Once again, thank you so much!!

Thank You!! Donation received & appreciated. :up:

Quote:

Originally Posted by onegawd (Post 2225002)
This is awesome, thanks for the update. Works perfect!
:)

:up:

Quote:

Originally Posted by fukdawrld (Post 2225012)
Ok...its an adult site so I pm the link and log in.

Hot! Will check PMs.

Quote:

Originally Posted by Mukashi (Post 2225047)
Looks like the latest version is now working perfectly for us. =)

Good stuff. :up:

TTF 07-26-2011 12:31 PM

Think I must have a mod conflict as nothing is showing on the individual threads no matter if I align left or right and if I add to the what's going on box, it comes up with the word 'Share' twice. Looks like a top mod though and despite these problems is a handy way to have some buttons on the forum home.

If you have any ideas to track down the issue and get the mod working 100% I'd really appreciate it.

Thanks.

BirdOPrey5 07-26-2011 12:56 PM

Quote:

Originally Posted by TTF (Post 2225168)
Think I must have a mod conflict as nothing is showing on the individual threads no matter if I align left or right and if I add to the what's going on box, it comes up with the word 'Share' twice. Looks like a top mod though and despite these problems is a handy way to have some buttons on the forum home.

If you have any ideas to track down the issue and get the mod working 100% I'd really appreciate it.

Thanks.

What VB Version are you using?

Can I get a link to your forum?

Have you tried it on the default style?

zelnik 07-26-2011 03:27 PM

Quote:

Originally Posted by TTF (Post 2225168)
Think I must have a mod conflict as nothing is showing on the individual threads no matter if I align left or right and if I add to the what's going on box, it comes up with the word 'Share' twice. Looks like a top mod though and despite these problems is a handy way to have some buttons on the forum home.

If you have any ideas to track down the issue and get the mod working 100% I'd really appreciate it.

Thanks.

If you're talking about the part at the bottom of the forum display this is because you have not uploaded the image file(s) or to the correct path.


All times are GMT. The time now is 04:47 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.02130 seconds
  • Memory Usage 1,873KB
  • 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
  • (5)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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