View Full Version : Adding MySpace ID To User Profile
dougeetx
09-24-2006, 10:00 PM
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:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
and below it, add:
<if condition="$post['field5']"><div>MySpace ID: <a href="http://www.myspace.com/$post[field5]" target="_blank">$post[field5]</a></div></if>
Save.
REMEMBER!! CHANGE THE [field99] to whatever field ID you have, i.e [field6] or [field9] !!
Comalies
09-25-2006, 03:59 AM
Screenshot? Demo?
transitbus
09-25-2006, 05:49 PM
works great!
ChavMagnet
09-25-2006, 07:51 PM
Great Stuff
Oddjob
09-25-2006, 08:37 PM
Screenshot? Demo?
Heres mine, i like it.
Nice job.
hotwheels
09-26-2006, 12:01 AM
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.
gords
09-26-2006, 02:57 AM
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 (https://vborg.vbsupport.ru/showthread.php?t=111701&highlight=myspace)
transitbus
09-26-2006, 07:48 PM
I like this one much better than having an icon. too many icons make for a cluttered page. Thsi keeps things very clean
TheBlackPoet
09-30-2006, 02:44 AM
i didnt put a number in... i put my username and it works great...
the icon looks great on mine..
Installed
BreeBears
10-16-2006, 04:28 AM
I was looking for something that could help me get a specific link in the postbit... this is the best I could find but when trying to alter it just a tad.. well can't get it to work =0( Is there something I am doing wrong... Here's the code I am putting in where ya'll are putting it in..
<if condition="$post['field6']"><div><a href="http://breebux.smnlikdat.com/BreeBux.php?$post[field6]" target="_blank">View Statement</a></div></if>
What I am trying to do is use the the field to add in the users Nic so that it brings up the info on that member.. I'm so new at this.. is that code just not able to work here or there something else I am doing wrong that you can see... In the field6 I am just putting the user's Nic so that it will complete the address for that person.. Or does anyone know a better way of doing this... Like I said, I am sooo new at this LOL I hope ya'll can even understand my untechnical talk. Also this would work perfect as I JUST want this to display IF I put something in Field6 (Users can't edit) that way only people with BreeBux comes up... Make sense?
Thanks for any input in advance!
Always, Bree
BreeBears
10-16-2006, 10:47 PM
I figured it out.. wasn't the code that was the problems it was my cookies I guess.. was working the whole time but my browser wasn't reflecting the chances... cleared cookies and wa-la there it was!
Thanks for the code!!! Perfect solution for what I needed to do!
Always, Bree
Mr.Haze
10-26-2006, 12:16 PM
*Installed* perfectly... Tanks!
TheBlackPoet
11-24-2006, 04:21 AM
Rather than having a line that says "MySpace ID:" you could consider adding a small MySpace icon (like this one (http://www.kevinludlow.com/images/contact/icons/social_myspace.gif)) to the spot under the postcount where the other IM icons usually appear.
i came to get the icon for the myspace..... and your link gave me what i was looking for the last time... but not this time... this is the perfect example why i dont like linking to other people's sites......
its funny as hell though........
LILMORA4
11-25-2006, 06:57 PM
not working for me
BigDog56
07-28-2007, 08:59 PM
Been trying for hours to figure out how to add this. Did a search and found your mod! Thanks! Just what I was looking for.
SVTCobraLTD
08-20-2007, 10:27 AM
How would you go about making this work in the profile too? I want people to be able to click it in the profile as well.
SVT
Shaliza
08-20-2007, 01:48 PM
How would you go about making this work in the profile too? I want people to be able to click it in the profile as well.
SVT
Good question. I want to know the same thing.
syrus.xl
08-20-2007, 02:15 PM
You would need to edit the memberinfo template to show this in peoples profiles.
SteveC
08-20-2007, 04:18 PM
sorry, I'm confused here. You say you're using "field99" for your instructions but in the code you show there's no field99
SVTCobraLTD
08-21-2007, 11:38 AM
You would need to edit the memberinfo template to show this in peoples profiles.
So I do the same edit in the profile?
SVT
SVTCobraLTD
08-21-2007, 12:01 PM
Figured it out.... added
<if condition="$post['field5']"><a target="_blank" href="http://www.myspace.com/$post[field5]">
<img border="0" src="http://www.yoursite.com/images/myspace.jpg">$post[field5]</a>
</if>
to MEMBERINFO. Works now.
twitch
08-21-2007, 04:17 PM
very cool
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.