![]() |
Mini YouTube Video in Profile (right side block)
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] I have mine arter $blocks[friends_mini].. Like this,, Code:
$blocks[stats_mini] Go to youtube dot com,,find the video you want.. Say the link is Code:
http://www.youtube.com/watch?v=HhuVgywiO3w 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)) ================================================== ============== If you have an older version,,uninstall the plug-in and revert the memberinfo_block_youtube template before installing the newest version.. Enjoy !! stangger5:) :) |
thank you man
|
sounds like fun!
|
good job :)
|
Hey, stangger5. I downloaded the plugin to see what it looks like. I thought there would be more code to the hook...Go figure. :D
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. :) |
Quote:
That makes it look alot better...:D |
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. |
Hey! This one works. :D Thanks!
|
Is there a way to get the video to auto start?
Never mind...figured it out. :) |
Quote:
|
Looks solid and in the right side is right where it looks good. Will install. Nice job man.
|
THANK YOU!!!
i downloaded the zip and clicked install. i'll actually install it in a little bit. |
installed easily enough works great
|
Yay It Works!!!!
|
Can you please add functionality to allow only certain usergroups to put this on their profile?
This works like a charm. It only strikes me as odd, to put the video title between the block title and the video, instead of replacing the block title with the video title. I have changed this by moving some code around in memberinfo_block_youtube: PHP Code:
Would it be possible to change this hack, so that more flash video sites can be used and not just youtube? |
Thank You .... works great :)
|
Quote:
Next version...;) I made both the box title and video title,,,to make it look more like the other info blocks.. |
For some reason when users who have already added a video are change it to a different video it doesn't show.
|
If it doesnt show,,,then they didnt put the YouTube code in right...
Have them try anther video too... |
there a way to use full URL man? instead of the ID
for us is good, but for some members they dont know that, they just paste the full url |
My guess is that just rip the entire http// line and substitute it with:
Code:
src="$userinfo[fieldx]" |
Quick question...does this allow users to put in any youtube video they want in their profile?
|
Installed and working fine.
|
Quote:
I just left more detailed instructions on how to get youtube ID's in the profile field description. |
Thanks, very nice mod! Could you perhaps write a tutorial on how to add custom blocks? As i wish to add more containing other stuff.
|
excellent, thanks
|
Quote:
|
This is really nice. Thanks for the work. :)
Quote:
|
works perfectly! :)
|
Quote:
|
This mod is quality!
Awesome and brings a myspace / facebook feel to the page :) Is there anyway of letting users add the whole http://www etc ?? If so can you let me know how and what to loose etc etc |
agreed...it is a sweet mod. The only problem is having to only put in the youtube code instead of the whole URL. If that can be done, this would be awesome!
|
It will work useing the full url...
You have to use the url from the Embed code tho.. Say your Embed code is this,, Code:
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/wfjWwGPtAls&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/wfjWwGPtAls&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object> Code:
http://www.youtube.com/v/wfjWwGPtAls&rel=1 |
I just uploaded mini youtube in profile (right side block)v2 full url..
Its install info is in the zip... |
how would i make this work on 3.6.8 ?
I dont find those blocks anywhere |
Quote:
|
If you change
PHP Code:
PHP Code:
Thanks anyway for the mod! Checkout here: http://validator.w3.org/check?uri=ht...Inline&group=0 |
Quote:
|
Nvm wait till vbulletin is out of beta
|
Quote:
I could make one for 3.6 if enough members want it...;) |
All times are GMT. The time now is 06:28 PM. |
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:
|