Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Social Networks in Postbit Details »
Social Networks in Postbit
Mod Version: 1.00, by zerovenom (Member) zerovenom is offline
Developer Last Online: Feb 2010 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (2 votes - 5.00 average) Installs: 18
Released: 10 Jan 2010 Last Update: Never Downloads: 89
Not Supported Template Edits Re-usable Code  

My Social Networks

I'd like to add my first modification because I feel like I just leech everything and don't give back, so I decided to start trying.

I don't take credit for this mod, it's based off of UKBusinessLive's Twitter profile link.
http://www.vbulletin.org/forum/showthread.php?t=212221

I simply edited it and added 2 more for Facebook and MySpace as well.

This should work with vBulletin 3.7 and Up. I'm not sure as I've only tested on 3.8.4. If you can test this on previous versions, it would be great if you can post that. Thanks!

Here's a live demo on my development site: Demo

You'll need to create 3 new User Profile Fields.
AdminCP>User Profile Fields>Add New User Profile Field

Profile Field Type: Single-Line Text Box

Title: Twitter Username
Description: Please Enter your Twitter Username
Profile Field Category: Choose your category (if you have extra custom ones)
Default Value: Leave Blank
Max length of allowed user input: 20
Field Length: Leave Default
Display Order: Choose any number that hasn't already been taken in your profile fields.
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: Yes
Regular Expression: Leave Blank

Save.

You'll need to make one for Facebook, Twitter, and MySpace using the same settings except you need to change the names to the proper social network.

For Display Order, I used 5 for Twitter, 6 for Facebook, and 7 for MySpace.
If you've made previous custom profile fields, then please enter your own numbers.

Remember which number you chose for Display Order.

Now go to AdminCP>Styles & Templates>Style Manager>Edit Templates and choose your template.

Scroll down and choose Postbit Templates. You can edit either postbit or postbit_legacy

Find:

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

And add this before:

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

This is the default code that I created, but felt like it needed work. This style is still available to use if you don't need any special look or feel to it.

Everything in red should be the only items you need to change. However, you may need to edit it further for different styles.

To change which usergroups can see these links, you can edit this code with the usergroup number you want to be able to view them.


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

Or you can simply delete this code to allow everybody to view them, but you'll also need to delete the </if> at the very end of the full code.

If you'd like to create a box specifically for it for more design and better formatting, then continue reading--

I don't take credit for this change either.
This modification is based off of jacki's Pro. Postbit Legacy.
http://www.vbulletin.org/forum/showthread.php?t=214565

You'll need to edit your template's CSS by going here:
AdminCP>Styles & Templates>Style Manager>All Style Options

Scroll down to Additional CSS Definitions and in the second box, scroll all the way down and add:

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

The items highlighted in red can be changed. These are the image codes and can be changed to your templates colors.

Now, you basically just need to follow the previous steps for adding it to your postbit or postbit_legacy. Except with minor changes to include the CSS and center it.

Find:


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

And add this before:

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


Since Facebook's Username system is fairly new, a lot of people don't know it exists as Facebook never fully advertised it. In order to create a Facebook username, you need to simply click on "Settings" on Facebook and you'll see "Username", click on "Change" and you can change your Facebook username to anything you want and be able to use it for this mod.


If you'd like further help, please click Install and I'll be more than happy to provide support.

The uploaded file includes the 20x20 icons. Place these in your template's images "misc" folder.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	mysocialnetworks_default.png
Views:	577
Size:	15.9 KB
ID:	109671   Click image for larger version

Name:	mysocialnetworks_myskin.png
Views:	446
Size:	13.8 KB
ID:	109672  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Profile Enhancements Show extra social networks to your Instant Messaging/Send Message and Postbit utahraves vBulletin 3.8 Add-ons 36 30 Mar 2010 01:52

Comments
  #2  
Old 11 Jan 2010, 19:58
mekanbursa mekanbursa is offline
 
Join Date: Feb 2009
Thanx..
Reply With Quote
  #3  
Old 11 Jan 2010, 20:35
zerovenom zerovenom is offline
 
Join Date: Jan 2009
Real name: Taylor
Updated:

Oops, when I posted it, I didn't realize I had Twitter on there three times. Updated to have Twitter, Facebook, and MySpace in their correct order.

Last edited by zerovenom; 13 Jan 2010 at 08:20.
Reply With Quote
  #4  
Old 19 Jan 2010, 06:22
zerovenom zerovenom is offline
 
Join Date: Jan 2009
Real name: Taylor
I know this is my mod, but since it's basically just based off of two other mods... I have a question on how to possibly edit it further to make it look better. I have it set to where only my usergroups, 2, 6, 7, 9, 20, 21, are able to see it... but if they don't fill out the information or don't have information to provide, the "My Social Networks" still shows with the box around it.

How would I be able to have the box show ONLY when at LEAST one of the fields has been entered?

I'm sure it's somewhere along the lines of

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

However... Would I have to enter that three times for each one? 5, 6, and 7? Or is it possibly to make it
[CODE]I know this is my mod, but since it's basically just based off of two other mods... I have a question on how to possibly edit it further to make it look better. I have it set to where only my usergroups, 2, 6, 7, 9, 20, 21, are able to see it... but if they don't fill out the information or don't have information to provide, the "My Social Networks" still shows with the box around it.

How would I be able to have the box show ONLY when at LEAST one of the fields has been entered?

I'm sure it's somewhere along the lines of

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

? That doesn't seem like it'd work... but does anybody have any idea? If so, please provide, I'll updated and give credit. =)

Last edited by zerovenom; 19 Jan 2010 at 06:28.
Reply With Quote
  #5  
Old 23 Jan 2010, 18:11
Tenth Doctor's Avatar
Tenth Doctor Tenth Doctor is offline
 
Join Date: Nov 2008
Can't seem to get this to work on vB 4.0.1. Would really love to get it working though.

It can't find this in any of the templates, even the default one:
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if>
Reply With Quote
  #6  
Old 28 Jan 2010, 22:22
zerovenom zerovenom is offline
 
Join Date: Jan 2009
Real name: Taylor
Originally Posted by Tenth Doctor View Post
Can't seem to get this to work on vB 4.0.1. Would really love to get it working though.

It can't find this in any of the templates, even the default one:
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if>
This is for 3.8 =(

I'll see what I can do about getting it for 4.0 though.
Reply With Quote
  #7  
Old 31 Jan 2010, 09:07
Tenth Doctor's Avatar
Tenth Doctor Tenth Doctor is offline
 
Join Date: Nov 2008
Originally Posted by zerovenom View Post
This is for 3.8 =(

I'll see what I can do about getting it for 4.0 though.
Thanks! I would really appreciate it. this is a great hack and exactly what I've been looking for! My community is based on Twitter, the vB CMS/forums is an extension of that, so we really do need Twitter integration with our board.
Reply With Quote
  #8  
Old 07 Jul 2010, 01:06
DarioVinci DarioVinci is offline
 
Join Date: Jul 2006
hi zerovenom, ty for this hack...i fixed the code to not display the social network box when fields are empty:


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

Reply With Quote
  #9  
Old 26 Jul 2010, 20:13
steeler7 steeler7 is offline
 
Join Date: Oct 2009
Any word on getting this or something like this for vB4?
Reply With Quote
  #10  
Old 28 Oct 2010, 07:42
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
I would kill for something like this in VB4
__________________
AudioNeeds.com - A forum dedicated for the Recording Enthusiast.
Reply With Quote
  #11  
Old 29 Oct 2010, 04:36
as7apcool's Avatar
as7apcool as7apcool is offline
 
Join Date: Feb 2009
thanks alot for this work
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:52.

Layout Options | Width: Wide Color: