![]() |
Adding MySpace ID To User Profile
This template mod will allow you to add your users MySpace ID as a link, on their forum posts. This link, when clicked on, will open the users MySpace page in a new browser!
Admin CP -> User Profile Fields -> Add New User Profile Field Choose "Single Line Text Box" Title: MySpace ID Display Order: (you choose!) Field Required: (you choose!) Field Editable by User: (you choose!) Private Field: NO Field Searchable on Members List: Yes Show on Members List: (you choose!) Display Page: Edit Profile [SAVE] NOTE: You must now make a note of the field ID for your MySpace ID input. You can check what field ID is assigned by going to: Admin CP -> User Profile Fields -> User Profile Field Manager and looking at what ID is next to "MySpace ID" For my instructions, i am going to use '99' as my Field ID, and you should change the number to suit what YOUR field ID is! Go to AdminCP Go to "Style Manager" Go to "Edit Templates" for your theme. Scroll down until you get to "Postbit Templates" Open up either Postbit or Postbit Legacy (depending on what you use!) Find in this template: Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> Code:
<if condition="$post['field5']"><div>MySpace ID: <a href="http://www.myspace.com/$post[field5]" target="_blank">$post[field5]</a></div></if> REMEMBER!! CHANGE THE [field99] to whatever field ID you have, i.e [field6] or [field9] !! |
Screenshot? Demo?
|
works great!
|
Great Stuff
|
Quote:
Nice job. |
great job man, clicks install for my members.
I don't have a myspace account, so i used a false number to show an example of the set up. I attached an image of my setup in postbit legacy. |
Rather than having a line that says "MySpace ID:" you could consider adding a small MySpace icon to the spot under the postcount where the other IM icons usually appear.
|
Actually the Myspace Postbit Mod in the 3.5 area works flawlessy for 3.6.1. This modification also includes the Myspace Icon within the IM icon area..
Original Author/Thread Here |
I like this one much better than having an icon. too many icons make for a cluttered page. Thsi keeps things very clean
|
i didnt put a number in... i put my username and it works great...
the icon looks great on mine.. Installed |
All times are GMT. The time now is 11:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|