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)

Syxguns 07-08-2012 07:54 PM

Quote:

Originally Posted by BirdOPrey5
Yes I am realizing that if I give permissions to "disable" by usergroup I shouldn't factor in secondary groups.

I'm going to re-write the permissions to ENABLE by usergroup and will have the regular groups (registered users, mods, super-mods, admins) enabled by default but easily changed.

Great fix! It works not using the secondary usergroup perfectly! Many thanks :)

socceronly 07-11-2012 06:13 PM

Hi! I bought the Gold version, really glad to have this mod.

It works when show under nav bar is selected.

But when I turn that off and insert {vb:raw more_share_tng} into a template, nothing comes up. I am trying to get this into the top of articles in the CMS.

This is my first time doing anything this, so maybe I am missing something. If I just put in some text like AAA in the template it appears, so that part of the template is visible.

Running 4.2

Thanks,
JM

datoneer 07-11-2012 07:14 PM

Awesome much better than first one. Thanks +++++++

BirdOPrey5 07-11-2012 08:21 PM

Quote:

Originally Posted by socceronly (Post 2347058)
Hi! I bought the Gold version, really glad to have this mod.

It works when show under nav bar is selected.

But when I turn that off and insert {vb:raw more_share_tng} into a template, nothing comes up. I am trying to get this into the top of articles in the CMS.

This is my first time doing anything this, so maybe I am missing something. If I just put in some text like AAA in the template it appears, so that part of the template is visible.

Running 4.2

Thanks,
JM

The ONLY templates it will work on are Header, Navbar, and Footer. It is not set to work in any other templates. It says that in the instructions.

You can use a template conditional to only show it in the CMS if that is your goal-

Code:

<vb:if condition="THIS_SCRIPT == 'vbcms'">{vb:raw more_share_tng}</vb:if>
But still must be in one of the 3 templates mentioned.

socceronly 07-13-2012 02:07 PM

Ooops sorry, I didn't see that!

Thanks for the reply! And the mod!

djbaxter 07-31-2012 01:08 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2215823)
Reserved.

This post will contain useful hints and options for the Share Buttons that are outside the scope of the mod itself.


Condition to show Share Button(s) Only on Specific / Guest Viewable Forusm

This is a useful conditional if you want to hide the Facebook Like button (and all of the share buttons) in forums that aren't open to the public. If someone "Likes" a thread in a private forum people will be greeted with a no-permission "have to register" message which usually people will just get annoyed at rather than register. In fact if it's a private forum they may not even have access even after registering.

To use this conditional edit the SHOWTHREAD template... find the code:
Code:

<vb:if condition="$show['fb_likebutton']">
and change it too:
Code:

<vb:if condition="$show['fb_likebutton'] AND !in_array($threadinfo['forumid'], array(3,4,5))">
Where 3,4,5 are forum id's of the forums you want to hide the button in. You can add or remove more numbers as needed so long as they are separated by commas.


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.

Screenshot Attached.

Issue 1:
These relocation instructions do not work for me: vBulletin 4.2.0 PL2

Using the Gold TNG version - see http://localsearchforum.catalystemar...L-LAUNCH-TODAY!

Issue 2:

As you can see from the link, the share icons are not evenly spaced. How do I fix that?

BirdOPrey5 07-31-2012 11:31 AM

Quote:

Originally Posted by djbaxter (Post 2352910)
Issue 1:
These relocation instructions do not work for me: vBulletin 4.2.0 PL2

Using the Gold TNG version - see http://localsearchforum.catalystemar...L-LAUNCH-TODAY!

Issue 2:

As you can see from the link, the share icons are not evenly spaced. How do I fix that?

Regarding issue 1- sorry those tips are not relevant to version 3.0+ of More Share Options. I have edited that post- that was legacy stuff for the old version of the mod.'

Issue 2 - They aren't evenly spaced because there are no likes yet for Facebook or Google. Once you get 1 like for each the count boxes will show filling in the gaps. There is no way to make them evenly spaced and keep the counts. If you disable the count for the Google button then it will have better spacing but you'll never see the count.

There's no way to disable the count for Facebook, it will need that room regardless.'

djbaxter 07-31-2012 11:43 AM

Would inserting {vb:raw more_share_tng} work to accomplish that relocation? and if so, where would it be inserted?

BirdOPrey5 07-31-2012 06:46 PM

Due to the global nature of the TNG version of this mod {vb:raw more_share_tng} can only be pasted in global templates (header, navbar, and footer.) As designed it simply won't work in any other template.

Budabing 08-04-2012 05:10 AM

Hi Joe, hopefully this is an easy one for you!
Firstly, thanks for this mod, Its awesome! Secondly, the text next to the facebook like button (Be the first of you friends to like this) inherits the text color from the body.plugin I have tried altering all of the code but to no avail? I have altered these so far:

PHP Code:

.connect_widget .connect_widget_text {
    
line-height14px;
    
color:#ffffff
}
.
connect_widget td.connect_widget_vertical_center {
    
border-spacing0;
    
font-size11px;
    
line-heightnormal;
    
color#ffffff;
}
body {
    
color#ffffff;
    
directionltr;
    
font-family'lucida grande',tahoma,verdana,arial,sans-serif;
    
font-size11px;
    
line-height1.28;
    
text-alignleft;


Changing the color code from #333333 to #ffffff on all of the above changes the color of the font, which I am saving into the additional.css template, however, the font still reverts back to #333333 after refreshing the page? Is there anything you suggest? Thanks again.

Mick


All times are GMT. The time now is 05:19 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.01949 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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