Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding MySpace ID To User Profile Details »»
Adding MySpace ID To User Profile
Version: 1.00, by dougeetx dougeetx is offline
Developer Last Online: Sep 2009 Show Printable Version Email this Page

Version: 3.6.8 Rating:
Released: 09-24-2006 Last Update: Never Installs: 44
Template Edits
 
No support by the author.

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>
and below it, add:

Code:
<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] !!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-16-2006, 04:28 AM
BreeBears BreeBears is offline
 
Join Date: Aug 2006
Location: Washington State
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..

PHP Code:
<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
Reply With Quote
  #13  
Old 10-16-2006, 10:47 PM
BreeBears BreeBears is offline
 
Join Date: Aug 2006
Location: Washington State
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 10-26-2006, 12:16 PM
Mr.Haze Mr.Haze is offline
 
Join Date: Oct 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Installed* perfectly... Tanks!
Reply With Quote
  #15  
Old 11-24-2006, 04:21 AM
TheBlackPoet's Avatar
TheBlackPoet TheBlackPoet is offline
 
Join Date: May 2006
Location: Pasadena, Texas, USA
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gords View Post
Rather than having a line that says "MySpace ID:" you could consider adding a small MySpace icon (like this one) 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........
Reply With Quote
  #16  
Old 11-25-2006, 06:57 PM
LILMORA4 LILMORA4 is offline
 
Join Date: Feb 2006
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working for me
Reply With Quote
  #17  
Old 07-28-2007, 08:59 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 08-20-2007, 10:27 AM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 08-20-2007, 01:48 PM
Shaliza Shaliza is offline
 
Join Date: Apr 2006
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTCobraLTD View Post
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.
Reply With Quote
  #20  
Old 08-20-2007, 02:15 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would need to edit the memberinfo template to show this in peoples profiles.
Reply With Quote
  #21  
Old 08-20-2007, 04:18 PM
SteveC SteveC is offline
 
Join Date: Mar 2005
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, I'm confused here. You say you're using "field99" for your instructions but in the code you show there's no field99
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05159 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete