Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Multiple Mini YouTube Videos In Profile 10+ Details »»
Multiple Mini YouTube Videos In Profile 10+
Version: 1.00, by Conner85 Conner85 is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.8 Rating:
Released: 04-07-2008 Last Update: 04-11-2008 Installs: 4
Template Edits
Re-useable Code Code Changes  
No support by the author.

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

Quote:
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 http://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.

Show Your Support

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

Comments
  #2  
Old 04-08-2008, 11:17 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about a live demo?
Reply With Quote
  #3  
Old 04-08-2008, 11:25 AM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.metal-clinic.org/conner" target="_blank">www.metal-clinic.org/conner</a>

*EDIT*

If you're viewing in IE, the MySpace player kills my profile - until the developer finds a fix. Have to view it with FireFox.
Reply With Quote
  #4  
Old 04-08-2008, 03:24 PM
Endurer Endurer is offline
 
Join Date: Sep 2006
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks promising, I will give it a go tonight. Thanks
Reply With Quote
  #5  
Old 04-08-2008, 04:19 PM
Bilderback's Avatar
Bilderback Bilderback is offline
 
Join Date: Sep 2007
Location: Illinois
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... and cant wait for registration to open at your site.
Reply With Quote
  #6  
Old 04-08-2008, 11:14 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty cool, I would probably install this if I was not going to be installing vb 3.7 in the coming weeks.
Reply With Quote
  #7  
Old 04-09-2008, 02:36 AM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot guys. And I'll post when the site is open. Still have a lot of bugs and stuff to go through.. mainly the MySpace player in IE. I've heard 3.7 is coming out soon, but I'm dreading the upgrade because of all the modifications I've installed and having to see if they're compatible (minus the profile enhancements that 3.7 is supposed to have). Let me know how your installations went, for everyone installing this.
Reply With Quote
  #8  
Old 04-09-2008, 02:55 AM
Forumi Shqiptar's Avatar
Forumi Shqiptar Forumi Shqiptar is offline
 
Join Date: Aug 2005
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont get this mode to say the true (the instructions are fine but not what id does).

What i mean is if i add this mode and do the template changes than what does a user needs to do in order to add his 10 youtube videos to his profile?

Is there a way so that the user can upload the code from his users cp or the admin has to do it for him?

if i want to add it exactly at the same place that you have putted it on the demo shown what exactly do i have to do?

Sorry for this but i just dont get it
Reply With Quote
  #9  
Old 04-09-2008, 04:51 AM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll post a screen shot of the profile fields in the UserCP.

Let's say your user wants to add their band's YouTube video.. or anything for that matter.

They'll get their YouTube link. Example: http://www.youtube.com/watch?v=0f9Q7VYnLJk

Then in the profile field, they would paste the 0f9Q7VYnLJk part into the field. Then to add more videos, they just have to repeat the same step as many times as they want for however many videos you allow them to have.

If you want to place the videos in the same spot I have them, you'll first have to install the Interactive Profiles mod here https://vborg.vbsupport.ru/showthread.php?t=150028. After you have installed that, find the following code in your MEMBERINFO template:

Code:
<td class="alt1"><center><img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></center></td>
</tr>
</table>
</if>
<br />
And add the code below that. Note: I have edited the Profile Pic table script to my needs, so it may differ from yours slightly.
Reply With Quote
  #10  
Old 04-10-2008, 07:40 AM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking through the code today and saw that I had a lot of sizes mixed up. I guess that's what I get for doing this half asleep. Anyways, corrected all the errors I could see. Let me know if there are any others I left out.
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 06:32 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
  • Page Generation 0.04567 seconds
  • Memory Usage 2,298KB
  • 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
  • (2)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (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