Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
Youtube Video in User Profiles Details »»
Youtube Video in User Profiles
Version: 1.00, by ryans ryans is offline
Developer Last Online: Jun 2015 Show Printable Version Email this Page

Version: 3.5.7 Rating:
Released: 01-17-2007 Last Update: Never Installs: 3
 
No support by the author.

This has been covered on how to embed it in posts, but here is how you can do it on your user profile pages.

in AdminCP scroll down to "User Profile Fields" and Add New User Profile Field.

Choose Single Line Text Box
Title: You Tube Video #1
Description: Add the last part of the youtube url after the ?v=ngWb3oyUSow ie just the <b>ngWb3oyUSow</b part
default value - leave it blank
max length 100
display size 100

Up to you to have the field searchable and required. I say no though.

Now edit memberinfo template. Add this code. anywhere you want.

Code:
<if condition="$userinfo[field88]"> 
     <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat"> 
         <td class="text" wrap="" style="" align="left" height="10" valign="center" colspan="2"> 
            <span class=""><strong>$userinfo[username]'s Favorite Video Clip </span> </td> </font></strong>
        </tr> 
        <tr class="alt2"> 
         <td align="left" valign="top"> <div align="center">
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/$userinfo[field88]">
</param>
<embed src="http://www.youtube.com/v/$userinfo[field88]" type="application/x-shockwave-flash" width="425" height="350">
</embed>
</object>
</div></td> 
        </tr> 
     </table> 
</if>
Be sure to change the field88 to the number that corresponds with your value on your forums.

Example URL: http://www.sromagazine.com/members/ryans

Show Your Support

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

Comments
  #2  
Old 01-21-2007, 12:09 AM
Soliloquy's Avatar
Soliloquy Soliloquy is offline
 
Join Date: Mar 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added this (thanks!) and it works well, except the video id number shows up under Additional Information, in addition to the embedded video. I've checked and made sure that custom fields are disabled under User Listing & Profile Viewing, but the id number is still showing up. How did you disable it on your demo site?
Reply With Quote
  #3  
Old 01-21-2007, 04:01 AM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please pm me your site so I can take a quick look.
Reply With Quote
  #4  
Old 02-04-2007, 01:21 AM
salata salata is offline
 
Join Date: Nov 2003
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

isnt there a way to just add the complete url instead of taking a part of it?
Reply With Quote
  #5  
Old 02-04-2007, 01:53 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a bit lost on it to. Does it allow the members to set there own video?
Reply With Quote
  #6  
Old 02-07-2007, 08:13 AM
Bass Nutz's Avatar
Bass Nutz Bass Nutz is offline
 
Join Date: Jul 2004
Location: New England
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did just what you posted......it doesn't work. :down:
Reply With Quote
Reply

Thread Tools

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 01:49 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.04255 seconds
  • Memory Usage 2,242KB
  • Queries Executed 21 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete