Back to vBulletin 3.6 Add-ons

Multiple Mini YouTube Videos In Profile 10+
Mod Version: 1.00, by Conner85

This modification is in the archives.
vB Version: 3.6.8 Rating: (0 vote - 0 average) Installs: 4
Released: 08 Apr 2008 Last Update: 12 Apr 2008 Downloads: 67
Not Supported Template Edits Code Changes Re-usable Code External Content  

I'm not sure if anyone has created this yet, but I do know that there are a lot of YouTube In Profile scripts floating around. All I have seen are hacks that only allow the inexperienced user (being me) one YouTube video in their users' profiles without explaining that they can add more if they want. If I seem to have ripped anyone's concept or idea off, PM me and I'll gladly remove this with no problems. I am fairly new to vB, so this is my first. Feel free to correct me on any of my mistakes. But please use constructive criticism.

What this does:

1. Allows you to have 10 mini YouTube videos in your profile (unless you edit the script to add more). All you have to do is copy and paste some of the script and add another $post[fieldX <--- replace the X with a correct field ID] after making a custom profile field.

2. Uses a Javascript pop up to detach and enlarge the video (just a little - it's a mini player) so you don't have to worry about staying at a person's profile waiting for the video to end. With this pop up, you do not have to create any additional pages.

3. The pop up is customizable as far as background color, size, scroll and the title. The flash script should be left alone as well as the <HTML> and <BODY> tags for the inexperienced user.

NOTE: I have installed the Interactive Profiles mod to have more of a MySpace type of setup. I also have a very slim style installed. So this is why everything is set up so small. You may adjust the sizes to fit your needs, as well as adding more or removing videos.

EDITS

1. 1-2 template edits
2. Editing of the downloaded script and that's all.

INSTALLATION

FRESH INSTALL
1. Create however many profile fields you want to equal up to the amount of videos that will be available for your users. The template edit is preset to 10. Write the profile fields down in order. field10, field11.. etc.

2. The first field description should probably say something like this

Want to display up to 10 videos from YouTube in your profile? Enter the Video ID below. Example: If the video you want to link to is https://www.youtube.com/watch?v=JCnioLOANaM, then the ID you will enter will be JCnioLOANaM.
3. Edit the fields in the script. Example: $post[field10] should be changed to your first custom profile ID. So change EVERY 10 to whatever your first profile field is. The next field is 11. Whatever the next profile field you create says, you will replace EVERY 11 with the next number.. and so on. I'm sure you get the idea.

4. Go to AdminCP --> Styles & Templates --> Style Manager --> click the down arrow on the style of your choice and select Edit Templates. Scroll down until you see Member Info Templates. Double click and wait for the page to load.

5. Double click MEMBERINFO. Depending on how your profile is set up or whether you have installed something like Interactive Profiles like myself, it's kind of hard to determine where you would want something like this. So this is what we're going to do.. on to step 6.

6. Open Notepad and select all the text in your MEMBERINFO template and paste it into Notepad. This ensures that if something screws up, you know you have a backup of your template. Including any past customizations you've made.

7. Once you've backed your template up, find a spot (anywhere you want to try) and paste the whole script you've edited. Click save and refresh your profile. If something goes wrong, no worries. You still have a backup in Notepad. Simply paste the backup back into MEMBERINFO and try again. If I had a regular profile, I'd probably place it under the Contact Details. Since I have Interactive Profiles installed, I placed them under the Profile Pic section in the profile.

Sorry for such long instructions, but I was VERY confused when I started installing hacks on my vB and rarely had anyone to explain in detail. Did the best I could to make it noob friendly, as I am still a noob myself.

Please let me know if I left anything out.. or have an advanced coder fix any mistakes.

--------------------------------------------------------------------------------

UPGRADING
FIND
Code:
<if condition="$userinfo[field10] OR $userinfo[field11] OR $userinfo[field12] OR $userinfo[field13] OR $userinfo[field14] OR $userinfo[field15] OR $userinfo[field16] OR $userinfo[field17] OR $userinfo[field18] OR $userinfo[field19]">
and Replace the field ID's in the order you have your YouTube videos. There are more added <if condition="$userinfo[fieldX]"> and those should be updated as well.. in order of course.

Updated and fixed bugs

Users can now choose any field to enter a YouTube video ID without the profile script breaking.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s multiple-youtube-videos-in-profile.txt (18.0 KB, 55 downloads)

Screenshots

Click image for larger version
Name:	screenshot1.jpg
Views:	204
Size:	66.4 KB
ID:	78414   Click image for larger version
Name:	screenshot2.jpg
Views:	299
Size:	66.7 KB
ID:	78415   Click image for larger version
Name:	screenshot3.jpg
Views:	111
Size:	43.9 KB
ID:	78450  

Similar Mods

Add-On Releases Mini YouTube Video in Profile (right side block) vBulletin 3.7 Add-ons
Profile Enhancements Mini YouTube Video in Profile (right side block) Embed-URL vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024