vBulletin Mods

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

Postbit Social Network Icons
by stoute
02 Sep 2012 18:03

2 Attachment(s)
This is a quick template modification that works with the "User Profile Fields" and adds a social network icon for; Twitter, Facebook, Google+, and YouTube. Once Completed you will see this:
Image Removed by Staff (image changed with new domain owner etc)

This will not work in the postbit_legacy. Use this for postbit_legacy template: HERE

Step 1: Create your User Profile Fields

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.

Image Removed by Staff (image changed with new domain owner etc)

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: Locate the Correct Field Names

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

Image Removed by Staff (image changed with new domain owner etc)

Continue to Step 3

Step 3: Adding the code

ACP> Styles & Templates> [Your Style]> Edit Templates> Postbit Templates > Postbit

Find:

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

Add After:

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

CHANGE THE RED LETTERS above or this will NOT work!

Step 4: Images!!!

Upload the extracted zip to your forum root.

Step 5: Enjoy!

Image Removed by Staff (image changed with new domain owner etc)

stoute 02 Sep 2012 20:04

uploaded "approved" twitter logo

clutchthese 01 Jul 2013 21:50

All these images are broken...

ramesh_umk3 03 Jul 2013 05:01

pls update your images

datoneer 13 Aug 2013 21:56

Thanks man! It is great! Installed and nominated v 4.2.1

tevbas 04 May 2016 15:33

please fix it tutorial images.

tme_power 19 Jun 2016 10:42

Just try, look pretty good, changed css a bit.

ukhostz 30 Jun 2016 16:16

Just to clarify for people who are not 100% code savvy, change the abcd to the field number as stated in the "User Profile Field Manager" e.g. field6, field7, field8, field9.
So if your twitter profile was say field 6 then it should be changed to the example below

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

Hope this helps :)

tme_power 10 Jul 2016 04:34

Quote:

Originally Posted by ukhostz (Post 2572649)
Just to clarify for people who are not 100% code savvy, change the abcd to the field number as stated in the "User Profile Field Manager" e.g. field6, field7, field8, field9.
So if your twitter profile was say field 6 then it should be changed to the example below

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

Hope this helps :)

Thank you man.


All times are GMT. The time now is 22:05.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, 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.