vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=287287

Social Networking in Postbit Popup
by stoute
30 Aug 2012 22:13

2 Attachment(s)
This is my first posted template modification so be kind... ;)

This will add a users social networks icon and link in the popup menu in postbit when you click on the User's name. The link is only accessible by the user groups you choose.

To install:

Step 1:

Make Custom Profile Fields for each of the four social networks; Twitter, Facebook, Google+, and Youtube.

ACP> User Profile Fields> Add New User Profile Field

Profile Field Type: Single-Line Textbox

Create your profile fields as below. you can leave "default value" blank.

https://www.vbulletin.org/forum/

Make one of these for each of the social networks. Once you have created your fields for Twitter, Facebook, Google+, and YouTube continue to step 2.

Step 2:
ACP> User Profile Fields> User Profile Field Manager

Take note of your "field name". Below you will find a screen shot; notice I have labeled the field names A - D. for refrence a = twitter; b = facebook; c = google+; d = youtube

https://www.vbulletin.org/forum/

Step 3:

This step adds the links in the postbit popup.

ACP> Styles & Templates> Search in Templates for "memberaction_dropdown"

Links at the TOP:
http://greenromproject.com/a/completed-top.png
Find:

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

Continue to STEP 4

Links at the BOTTOM;
https://www.vbulletin.org/forum/

Find:

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

and find the next:

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

Continue to Step 4

Step 4:

Paste this:

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

Change the red letters to the correct information. X and Y are where you enter the user groups that can view this information. A, B, C, and D need to be replaced this the field names we found in the last step. in the image A = field5, B = field6, C = field7, D = filed13

Step 5:

Upload the extracted zip to your forum root.

Step 6:

This step adds the images to your postbit (you can edit these if you like just make sure you have them in the correct location and the size is 16px x 16px)

ACP> Styles & Templates > Style Manager> [your style]> Template Options> Edit Templates> CSS Templates> additional.css

Paste the below


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

Step 7:

Enjoy

https://www.vbulletin.org/forum/

Icon Images

http://greenromproject.com/images/si...up/twitter.png - Twitter
http://greenromproject.com/images/si...p/facebook.png - Facebook
http://greenromproject.com/images/si...googleplus.png - Google+
http://greenromproject.com/images/si...up/youtube.png - YouTube

Special Thanks to:
Mobo for Edit User link in postbit UserName popup menu
Lycaon @ theadminzone.com for assistance with resolving issue

Skyrider 30 Aug 2012 23:26

Images with the result would be awesome :)

stoute 30 Aug 2012 23:53

Duplicate Post

stoute 31 Aug 2012 00:07

lol this is the worst... after writing all this up it stopped working on my site. If you have success or fails please let me know so i can see where I went wrong.

stoute 01 Sep 2012 23:04

Code has been fixed and is now working again!

stoute 02 Sep 2012 21:08

Added "approved" twitter icon...

It's Damn Real! 14 Sep 2012 20:05

I have this set for registered users and Admins, and the dropdown is viewable for myself and my mods, but I can't view it under a registered user level.

stoute 14 Sep 2012 20:58

can you post your edited version of:


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


It's Damn Real! 14 Sep 2012 21:02

Yup:


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

I also tried:


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


stoute 14 Sep 2012 21:53

so the condition will allow the given usergroups to see the social network icons.

what this is basically saying is "if" you are a member of usergroup "x" then you can view the social network icons.

So when you have is set to usergroup 2 then only members of usergroup 2 can view the icons...
When you have it set to usergroup 2 and 5 then only those member groups can see them.

Are you having an issue once you set your usergroup to admin only to see it?

It's Damn Real! 14 Sep 2012 22:04

Usergroup 2 is registered users. Usergroup 6 is admin.

Even if I list it out with five or six groups to cover users, admin, mod, etc. it's still only viewable by an Admin or Mod.

stoute 14 Sep 2012 22:12

to make it easy you can delete the main condition and the last </vb:if> and it will allow all your user groups to see the icons.

I don't know if that is what your were trying to acheive or not but thats the simple solution.

It's Damn Real! 14 Sep 2012 22:17

Still doesn't work.

stoute 14 Sep 2012 23:04

does the user you're looking at have anything in the custom user fields? If not then it will not show up. It will only show up if the user has added information into the custom user field.

It's Damn Real! 17 Sep 2012 14:26

Yes. I've tested it by having myself and one of my moderators both add information in those fields.

I then log in under a registered account, or use VSa's log in as user plug-in to log into another users' account and none of our social media information is visible to them.


All times are GMT. The time now is 21:35.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.