Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mini YouTube Video in Profile (right side block) Details »»
Mini YouTube Video in Profile (right side block)
Version: 2.1, by stangger5 stangger5 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.0 Rating:
Released: 02-05-2008 Last Update: 03-02-2008 Installs: 304
Supported Uses Plugins Template Edits
 

Mini YouTube Video for member profile in right side block v2.1

(New)Added cache_templates,,user group permissions and
the option for auto-play...

Demo-www.next-level-arcade.com

================================================== ==========

First create 3 profile fields.
One for YouTube ID'
one for YouTube title and
one for Auto-play..

================================================== ==========
admin >> User Profile Fields >> Add New User Profile Field

1:
Single-Line Text Box
Title: YouTube ID
Description: Put your YouTube ID here.

Private Field: Yes
Field Searchable on Members List: NO
Show on Members List: NO

Then Save..

Remember the Field number..
Say the field number is 9,,you will need to change the
i in $userinfo[fieldi] to 9 like this,, $userinfo[field9]
================================================== ==========
Add anther Profile Field,,

2:
Single-Line Text Box
Title: YouTube Title
Description: Put your YouTube Title here.

Private Field: Yes
Field Searchable on Members List: NO
Show on Members List: NO

Then Save..

Remember the Field number..
Say the field number is 10,,you will need to change the
t in $userinfo[fieldt] to 10 like this,, $userinfo[field10]
================================================== ==========
Add anther Profile Field,,

3:
Single-Line Text Box
Title: YouTube Auto-play
Description: Put &autoplay=1 in the input box below,to have it auto-play..

Private Field: Yes
Field Searchable on Members List: NO
Show on Members List: NO

Then Save..

Remember the Field number..
Say the field number is 11,,you will need to change the
a in $userinfo[fielda] to 11 like this,, $userinfo[field11]
================================================== ==========

Import the plugin..

admin >> Plugins & Products >> [Add/Import Product] and import
youtube-member-profile.xml file..

================================================== ==========

Edit two templates.

1:
admincp >> Styles & Templates >> Member Info Templates >>
memberinfo_block_youtube

Find three $userinfo[fieldi] and change the i to the YouTube ID field number..

Find two $userinfo[fieldt] and change the t to the YouTube title field number..

Find one $userinfo[fielda] and change the a to the YouTube auto-play field number..

2:
Edit: Styles & Templates >> Member Info Templates >> MEMBERINFO

Look for,,

Code:
$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
Put $blocks[youtube] anywhere in there..
I have mine arter $blocks[friends_mini]..
Like this,,

Code:
$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[youtube]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
================================================== ==============

Go to youtube dot com,,find the video you want..
Say the link is
Code:
http://www.youtube.com/watch?v=HhuVgywiO3w
Put HhuVgywiO3w in your YouTube ID field..

Then put,,Welcome Home Roscoe Jenkins,,in your YouTube title field..

To edit your YouTube fields..
USERCP >> Edit Your Details >> Additional Information

================================================== ==============

To edit usergroups,,
admincp >> Plugins & Products >> Plugin Manager:
Mini right side YouTube for Member Profile

Add the usergroup ID,,that you want to be able to use the YouTube vidoes..

Code:
if (is_member_of($vbulletin->userinfo,1 ,2 , 5, 6, 7))
Like this: ,1 ,2 , 3, 4, 5, 6, 7 ,8 ,9

================================================== ==============

If you have an older version,,uninstall the plug-in and revert the memberinfo_block_youtube template before installing the newest version..

Enjoy !!
stangger5

Show Your Support

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

Comments
  #2  
Old 02-06-2008, 07:50 PM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you man
Reply With Quote
  #3  
Old 02-06-2008, 08:00 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds like fun!
Reply With Quote
  #4  
Old 02-06-2008, 08:55 PM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job
Reply With Quote
  #5  
Old 02-06-2008, 10:11 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, stangger5. I downloaded the plugin to see what it looks like. I thought there would be more code to the hook...Go figure.

Just a suggestion, you may want to add the <tr> and <td> tags to your Table code or just remove <table> all together...You don't need it.
Reply With Quote
  #6  
Old 02-06-2008, 10:58 PM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz View Post
Hey, stangger5. I downloaded the plugin to see what it looks like. I thought there would be more code to the hook...Go figure.

Just a suggestion, you may want to add the <tr> and <td> tags to your Table code or just remove <table> all together...You don't need it.
I updated the template..Took out the <table>s and added block_row and block_row block_footer..
That makes it look alot better...
Reply With Quote
  #7  
Old 02-06-2008, 11:50 PM
nerofix nerofix is offline
 
Join Date: Mar 2006
Location: Saarland
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello my friend,

you have 2 typing errors in your step 3 description.

--> $useinfo[fieldi] --> $userinfo[fieldi]

--> $useinfo[fieldt] --> $userinfo[fieldt]

Thank you for this mod.
Reply With Quote
  #8  
Old 02-07-2008, 12:12 AM
Romeos Tune Romeos Tune is offline
 
Join Date: Jun 2004
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey! This one works. Thanks!
Reply With Quote
  #9  
Old 02-07-2008, 12:14 AM
Romeos Tune Romeos Tune is offline
 
Join Date: Jun 2004
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to get the video to auto start?

Never mind...figured it out.
Reply With Quote
  #10  
Old 02-07-2008, 12:39 AM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nerofix View Post
Hello my friend,

you have 2 typing errors in your step 3 description.


--> $useinfo[fieldi] --> $userinfo[fieldi]

--> $useinfo[fieldt] --> $userinfo[fieldt]


Thank you for this mod.
Fixed it...Thanks..
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 09:23 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.04989 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (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
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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