View Single Post
  #2  
Old 02 Jul 2011, 13:08
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved.

The following text is not relevant to Version 3.0 or above.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it too:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

DELETE IT.

Now find the code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And right below it add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Attached Images
File Type: jpg share_alt_locationVB4.jpg (173.6 KB, 1146 views)
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.

Last edited by BirdOPrey5; 31 Jul 2012 at 13:25.
Reply With Quote