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)

charlesr 07-01-2012 06:16 PM

Nice one. I'll give this a shot on my test server.

BirdOPrey5 07-04-2012 10:39 PM

Updated to version 3.1.1. No real new feature but I updated the option in Admin CP when selecting styles to disable to a checkbox list instead of having to manually enter styleids.

Syxguns 07-06-2012 04:43 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2345163)
Updated to version 3.1.1. No real new feature but I updated the option in Admin CP when selecting styles to disable to a checkbox list instead of having to manually enter styleids.

Okay, well I'm having a little problem with it not showing once I log in to the forum. I wanted to see it in action so I registered on your forum. I asked about that problem there. I'll go ahead and install the updated version. I doubt it will solve the issue though!!:erm:

BirdOPrey5 07-06-2012 09:35 AM

DO you have a customs style? Please give a link to your forum.

You can try it on the default style by doing the following:

To get the default style go to Admin CP -> Styles & Templates -> Style Manager -> Add New Style and create a new style with no parent style. This will be the default style.

Then go to Admin CP -> Settings -> Options -> Style & Language Settings and give permission for users to change styles (if it was disabled) so you can change to the default style to test it.

BaanFarsang 07-06-2012 02:57 PM

Hi., Are your MOD supported for https: site?

I have been found that your MOD cause warning on site with https installed

Syxguns 07-06-2012 07:30 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2345474)
DO you have a customs style? Please give a link to your forum.

You can try it on the default style by doing the following:

To get the default style go to Admin CP -> Styles & Templates -> Style Manager -> Add New Style and create a new style with no parent style. This will be the default style.

Then go to Admin CP -> Settings -> Options -> Style & Language Settings and give permission for users to change styles (if it was disabled) so you can change to the default style to test it.

My style is a style that I created based off the default style, but it has no parent style. I created the style the same way you mentioned above. I will try the Style & Language settings real quick. That may be what the problem is. In the meantime my site is http://www.place4musicians.com I'll post back shortly, because I have other styles that I might need to do the same thing to. Let me know if you need AdminCP access. I will PM you with the details.

Edit: I tested it. For some reason my default style doesn't look correct on header and footer, but I think that is because of some code changes that I made to disable it. However, I have the same issue where the mod does not show up once I'm logged in. I'll send you a PM to look at the site for me.

Thanks!

Edit 2: Very strange. I logged in as the user I sent you credentials for and the mod was working. For some reason I'm not able to view it as the owner of the Forum. I might have a setting set wrong in the AdminCP. I'm going to create a new user and see if they can view it.

BirdOPrey5 07-07-2012 10:11 AM

Quote:

Originally Posted by BaanFarsang (Post 2345533)
Hi., Are your MOD supported for https: site?

I have been found that your MOD cause warning on site with https installed

The next version should fix this.

Quote:

Originally Posted by Syxguns (Post 2345587)
My style is a style that I created based off the default style, but it has no parent style. I created the style the same way you mentioned above. I will try the Style & Language settings real quick. That may be what the problem is. In the meantime my site is http://www.place4musicians.com I'll post back shortly, because I have other styles that I might need to do the same thing to. Let me know if you need AdminCP access. I will PM you with the details.

Edit: I tested it. For some reason my default style doesn't look correct on header and footer, but I think that is because of some code changes that I made to disable it. However, I have the same issue where the mod does not show up once I'm logged in. I'll send you a PM to look at the site for me.

Thanks!

Edit 2: Very strange. I logged in as the user I sent you credentials for and the mod was working. For some reason I'm not able to view it as the owner of the Forum. I might have a setting set wrong in the AdminCP. I'm going to create a new user and see if they can view it.

As a gust it is displaying fine as well.

Syxguns 07-07-2012 07:58 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2345751)
As a gust it is displaying fine as well.

Yes, I figured this part out. I have around 22 different ranks, which means in turn 22 different usergroups, even though only 1/2 of those are used. Let me give you an example:

My Usergroup is Admin. That is my primary usergroup.

Secondary Usergroups are: Musician, Guitar, and Vocals.

What I learned was that if I turned off permissions for secondary Usergroups, it would effect the primary Usergroup in the Mod. Maybe this could be fixed?

However, I still have one small problem. My Facebook Connect does not show when the mod is enabled, but if I disable it then it shows! I'm not sure about this, I'll double check my settings.

BirdOPrey5 07-08-2012 09:01 AM

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.

I have another big fix in the works for custom pages as well, I will bundle them both in the next update coming shortly (later today hopefully.)

I will take a look on your site about the Facebook connect- I confirm it works fine on my site with the mod enabled.

BirdOPrey5 07-08-2012 04:38 PM

Updated to version 3.2.

If upgrading from below 3.2 you will have to redo the Usergroup permissions in the mod settings. I have changed it from disabling it for selected groups to enabling it for selected groups. (By default it is active for all standard usergroups except banned users (groups 1 - 7)).

Added a new plugin that will give better results when sharing custom pages via Facebook. This plugin requires a hook that was introduced in VB 4.1.10. If you are running an older version there us a new text file in the mod zip that tells you how to make 1 easy file edit if you want.

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

BirdOPrey5 08-04-2012 08:45 AM

1 Attachment(s)
Quote:

Originally Posted by Budabing (Post 2354264)
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


Mick,

Facebook only offers 2 options for the button, light or dark. The colors never change.

https://vborg.vbsupport.ru/attachmen...1&d=1344073336

They do this for consistent branding. Even if it was technically possible to change colors, which I don't believe it is, part of their Terms or Service is you will not modify their buttons in any way.

Budabing 08-04-2012 11:40 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2354288)
Mick,

Facebook only offers 2 options for the button, light or dark. The colors never change.

Aaah, didnt see I could change the button color. Changed it and fixed! Thanks for the tip. The text just happened to be the same color as my background. Thanks heaps for your help and work :)

WhatChaMissin 08-05-2012 03:26 PM

Just wanted to say thank you for this mod. Installed and working as advertised!

SilverBoy 08-13-2012 06:10 AM

Hi BirdOPrey5
Is it possible to change the place of the bar in CMS articles to be under the article text?

BirdOPrey5 08-14-2012 11:37 AM

Not really. Best you cold do is follow manual template instructions and put it in the footer instead of navbar.

Fongool 08-16-2012 02:04 PM

Installed and working great on VB 4.2...
Thanks a bunch...Other Mods didn't want to work right, but this does everything I need...

Thank you again..

F

DougCooper 08-28-2012 02:34 PM

installed on my board www.ukmusic.com but the facebook pop when clicking on the LIKE buttom appears for 1 second and them disappears, please help.

BirdOPrey5 08-29-2012 04:58 PM

I would need to see the mod active to see what the problem is.

bzcomputers 08-29-2012 09:03 PM

Request: Instead of just the option to "Disable on these Scripts", offer an option to "Enable on these Scripts".

There are a lot of scripts related to pages that I don't want to display on and I always seem to be coming across more.

private, usercp, profile, faq, search, misc, group, showgroups, subscription, online, calendar, memberlist, activity + any mods you don't want it to appear on, etc.

I think overall it would be easier (at least for me) to keep track of which scripts/pages it displays on than which scripts I don't want it to display on.

BirdOPrey5 09-02-2012 12:49 PM

Quote:

Originally Posted by bzcomputers (Post 2361043)
Request: Instead of just the option to "Disable on these Scripts", offer an option to "Enable on these Scripts".

There are a lot of scripts related to pages that I don't want to display on and I always seem to be coming across more.

private, usercp, profile, faq, search, misc, group, showgroups, subscription, online, calendar, memberlist, activity + any mods you don't want it to appear on, etc.

I think overall it would be easier (at least for me) to keep track of which scripts/pages it displays on than which scripts I don't want it to display on.

I understand... Not sure when the next update will be but I will make an option so the specified scripts can either be to enable on or to disable on. :up:

dougdirac 09-14-2012 07:54 AM

Quote:

Originally Posted by bzcomputers (Post 2361043)
Request: Instead of just the option to "Disable on these Scripts", offer an option to "Enable on these Scripts".

There are a lot of scripts related to pages that I don't want to display on and I always seem to be coming across more.

private, usercp, profile, faq, search, misc, group, showgroups, subscription, online, calendar, memberlist, activity + any mods you don't want it to appear on, etc.

I think overall it would be easier (at least for me) to keep track of which scripts/pages it displays on than which scripts I don't want it to display on.

What you have so far is useful, though. Do we have a list of all the scripts we should block that could be copy and pasted in?

Basically I want it to work in Blogs, Threads, Forums and my add-ons. Probably everything else I want to block.

BirdOPrey5 09-16-2012 10:51 PM

I only disable on these scripts:

Code:

private
usercp
profile


Vick98 09-17-2012 04:57 AM

Installed but for some reason this mod only shows on forum home. What do I need to do to allow this to show on all forum except private forums? I changed the options to disable in private forums but they don't show in any of the public forums.

http://www.elitedevildogs.com

BirdOPrey5 09-17-2012 08:36 AM

Quote:

Originally Posted by Vick98 (Post 2366044)
Installed but for some reason this mod only shows on forum home. What do I need to do to allow this to show on all forum except private forums? I changed the options to disable in private forums but they don't show in any of the public forums.

http://www.elitedevildogs.com

You're using the old and unsupported version.... The current version is in the file: More Share Options TNG FREE (v 3.2) by BOP5.zip and that is the one described in the first post now.

The version you are using does not work well on custom styles, it would probably work on the default style.

Vick98 09-17-2012 01:44 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2366066)
You're using the old and unsupported version.... The current version is in the file: More Share Options TNG FREE (v 3.2) by BOP5.zip and that is the one described in the first post now.

The version you are using does not work well on custom styles, it would probably work on the default style.

Thank you, installed and works great. Another question, is there any way when I tweet a topic from my forum that it will automatically change the title of the tweet to the title of the topic. Currently the title is always the name of the forumhome/website.

Superorb 09-17-2012 09:33 PM

I'm not familiar with all these social sharing things, but when you click the "Like" button or any of the others is it liking the entire forum/site or is it only liking that particular page/section/post/thread?

Syxguns 09-17-2012 10:19 PM

Quote:

Originally Posted by Superorb (Post 2366274)
I'm not familiar with all these social sharing things, but when you click the "Like" button or any of the others is it liking the entire forum/site or is it only liking that particular page/section/post/thread?

It will post a link to the post with the post title. If you select it on the forum home page it is like saying that you liked the forum and has a link to the forum and not a post on the forum.

Superorb 09-17-2012 10:35 PM

Quote:

Originally Posted by Syxguns (Post 2366293)
It will post a link to the post with the post title. If you select it on the forum home page it is like saying that you liked the forum and has a link to the forum and not a post on the forum.

Gotcha, thanks.

BirdOPrey5 09-18-2012 11:47 AM

Quote:

Originally Posted by Superorb (Post 2366274)
I'm not familiar with all these social sharing things, but when you click the "Like" button or any of the others is it liking the entire forum/site or is it only liking that particular page/section/post/thread?

On my forum sharing a thread share the title of the thread, not the forum name.

Twitter should be picking up the title from the <title> tag in the HTML page, can you post a link to a thread on your site so I can see it?

Superorb 09-18-2012 04:01 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2366404)
On my forum sharing a thread share the title of the thread, not the forum name.

Twitter should be picking up the title from the <title> tag in the HTML page, can you post a link to a thread on your site so I can see it?

I've downloaded the plugin but haven't installed it yet, I was just curious how it worked. I am trying to figure out a place to stick it on the site. I was thinking right under the search bar in the white row underneath. What do you think?

www.snowdaycolorado.com


All times are GMT. The time now is 09:35 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.02237 seconds
  • Memory Usage 1,886KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (19)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