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)

sweetpotato 08-14-2011 02:04 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2233332)
The Facebook isn't showing in AddThis because you already have the Facebook Like button enabled. It is a feature of this mod to NOT show any service in AddThis that you already have a dedicated button showing for on the page- this includes Twitter, Digg, and the others too.

This is a quote from the instructions included with the mod:


If you don't want it to work as intended you must manually edit the more_share_options template.

Delete the TWO instances of:
Code:

services_exclude: 'print,<vb:if condition="$vboptions['bop5more_fbtype']">, facebook</vb:if><vb:if condition="$boptwit">, twitter</vb:if><vb:if condition="$bopdigg">, digg</vb:if><vb:if condition="$bopsutype">, stumbleupon</vb:if>'
and it should show Facebook, twitter, and the rest in AddThis all the time.

Thank you very much for your instruction. Because of Facebook Like is different with facbook share so I only need Facebook Share to show and I only removed this code:
Code:

<vb:if condition="$vboptions['bop5more_fbtype']">, facebook</vb:if>
Now the Facebook Share showed and works like a charm on my site.

Thank you one again for the nice mod.

vb50kgpoo 08-15-2011 12:34 PM

Superb, thank you.

But is there any way to get rid of the space consuming "(facebook icon) Sign Up to see what your friends like."?

BirdOPrey5 08-15-2011 12:55 PM

Quote:

Originally Posted by Antique-Swords (Post 2233744)
Superb, thank you.

But is there any way to get rid of the space consuming "(facebook icon) Sign Up to see what your friends like."?

It's different depending on whether you are a facebook member and how many people like it. so you really shouldn't be changing the size. I suggest using the button-count style if you don't like the spacing on the "standard" button.

If you want to edit the size anyway edit the more_share_options template... find the code:
Code:

<vb:if condition="$vboptions['bop5more_fbtype'] == 1">
<td>
<fb:like href="{vb:raw bophref}" font="tahoma" layout="standard" send="false" show_faces="false" width="260" action="like" colorscheme="{vb:raw boplord}"></fb:like>
</td>
</vb:if>

and change the width to whatever you want.

kinhell 08-17-2011 09:07 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2231039)
I'd consider it but I don't find any info on their button. On their own site, the link is dead for me, a Page not found error: http://www.reddit.com/reddits/buttons/

If you have a link to their button somewhere I'll take a look.

http://www.reddit.com/buttons/

Should find some buttons there, thanks a lot

Edit: Just seen someone else posted the link sorry.

Anyway this mod is awesome and has been used a lot on our CMS site and forums.

derbi 08-21-2011 01:15 PM

How I change the google button +1 language?

I tried adding this:

Code:

{lang: 'es'}
into

Code:

<!-- Google+1 START -->

<vb:if condition="$bopgoog">
<td>
<script type="text/javascript">
var gp1script = document.createElement('script');
gp1script.type = 'text/javascript';
gp1script.async = true;
gp1script.src = 'https://apis.google.com/js/plusone.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(gp1script);
gg = document.getElementById('google_plus_one');
gg.style.width="70px";
lang: 'es';
</script>
<div class="g-plusone" data-size="medium" data-count="<vb:if condition="$bopgoog == 2">false<vb:else />true</vb:if>" data-href="{vb:raw bophref}"></div>
</td>
<vb:if condition="$bopgoog == 2"><td>&nbsp;&nbsp;&nbsp;</td></vb:if>
</vb:if>

<!-- Google+1 END -->
<!-- DO NOT EDIT BELOW THIS LINE -->

But not works

BirdOPrey5 08-21-2011 03:20 PM

Quote:

Originally Posted by derbi (Post 2236141)
How I change the google button +1 language?

I tried adding this:

Code:

{lang: 'es'}
into

Code:

<!-- Google+1 START -->

<vb:if condition="$bopgoog">
<td>
<script type="text/javascript">
var gp1script = document.createElement('script');
gp1script.type = 'text/javascript';
gp1script.async = true;
gp1script.src = 'https://apis.google.com/js/plusone.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(gp1script);
gg = document.getElementById('google_plus_one');
gg.style.width="70px";
lang: 'es';
</script>
<div class="g-plusone" data-size="medium" data-count="<vb:if condition="$bopgoog == 2">false<vb:else />true</vb:if>" data-href="{vb:raw bophref}"></div>
</td>
<vb:if condition="$bopgoog == 2"><td>&nbsp;&nbsp;&nbsp;</td></vb:if>
</vb:if>

<!-- Google+1 END -->
<!-- DO NOT EDIT BELOW THIS LINE -->

But not works

I don't understand why you have to change the +1 language, there are no words. :confused:

Kuya 08-21-2011 03:27 PM

Brilliant mod. Shame about the twitter count, and I think on my forum there is also an issue with the counting of diggs..

All the same, I still give it 5 stars!

derbi 08-21-2011 04:00 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2236188)
I don't understand why you have to change the +1 language, there are no words. :confused:

when you do click in button, appears a message in english. The language can be changed.

Look this

http://www.google.com/webmasters/+1/button/

Thanks

BirdOPrey5 08-21-2011 04:34 PM

Quote:

Originally Posted by derbi (Post 2236206)
when you do click in button, appears a message in english. The language can be changed.

Look this

http://www.google.com/webmasters/+1/button/

Thanks

I see... try this:

Code:

<!-- Google+1 START -->

<vb:if condition="$bopgoog">
<td>
<div class="g-plusone" data-size="medium" data-count="<vb:if condition="$bopgoog == 2">false<vb:else />true</vb:if>" data-href="{vb:raw bophref}"></div>
<script type="text/javascript">
  window.___gcfg = {lang: 'es'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
</td>
<vb:if condition="$bopgoog == 2"><td>&nbsp;&nbsp;&nbsp;</td></vb:if>
</vb:if>

<!-- Google+1 END -->


Please "Mark as Installed" if you use this.

derbi 08-22-2011 09:52 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2236225)
I see... try this:

Code:

<!-- Google+1 START -->

<vb:if condition="$bopgoog">
<td>
<div class="g-plusone" data-size="medium" data-count="<vb:if condition="$bopgoog == 2">false<vb:else />true</vb:if>" data-href="{vb:raw bophref}"></div>
<script type="text/javascript">
  window.___gcfg = {lang: 'es'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
</td>
<vb:if condition="$bopgoog == 2"><td>&nbsp;&nbsp;&nbsp;</td></vb:if>
</vb:if>

<!-- Google+1 END -->


Please "Mark as Installed" if you use this.

It's great! Woks! Very thanks.


All times are GMT. The time now is 08:23 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.01697 seconds
  • Memory Usage 1,762KB
  • 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
  • (9)bbcode_code_printable
  • (7)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