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) Embed-URL Details »»
Mini YouTube Video in Profile (right side block) Embed-URL
Version: 2.6, by stangger5 stangger5 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.0 Rating:
Released: 03-02-2008 Last Update: Never Installs: 145
Supported Uses Plugins Template Edits
 

Mini YouTube Video for member profile in (right side block) Embed URL v2.6

(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 URL,
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 URL
Description: Put your YouTube URL here.

Field Length: 50
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_url.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..

You need to use the link from the Embed code..
Code:
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/7e9wgshS0qI&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/7e9wgshS0qI&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

Just use the URL,
Code:
http://www.youtube.com/v/7e9wgshS0qI&hl=en
in your YouTube URL field..

Then put,,two minute new knight rider preview,,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
  #62  
Old 06-18-2008, 06:38 PM
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Location: Washington State
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NannyMin View Post
It's still not working using this. I do not see a video or any type of box. Help Please!
should work man, if everything is correct.
The only problem I had, and I didnt see a box before or anything was because I didnt add the autoplay option and put yes first.

I would try deleting that profile field and make a new one and put default to yes.

Here is mine

http://www.myls1.com/member.php?u=1
Reply With Quote
  #63  
Old 06-18-2008, 07:32 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 NannyMin View Post
It's still not working using this. I do not see a video or any type of box. Help Please!
Do you mind if I have a look ??
Reply With Quote
  #64  
Old 06-18-2008, 08:19 PM
NannyMin's Avatar
NannyMin NannyMin is offline
 
Join Date: May 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure.
Reply With Quote
  #65  
Old 06-19-2008, 10:00 AM
RedeemedWarrior RedeemedWarrior is offline
 
Join Date: Apr 2008
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great
Reply With Quote
  #66  
Old 07-05-2008, 01:09 AM
Lift for Life Lift for Life is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got this plugin working great in two different skin styles in Firefox, however the video drops below the main table when viewed in Explorer. I've played with the main table width with no success.

Can you tell me how to correct this?

Thanks
Reply With Quote
  #67  
Old 07-05-2008, 02:27 AM
Lift for Life Lift for Life is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, just switched the Youtube width to 200 and it now formats correctly in Explorer.

Lift
Reply With Quote
  #68  
Old 07-06-2008, 10:48 PM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a small suggestion if i may...
the main url can be hard-coded into the xml, so why not do that, and then users only need the last part of the url (and thus, don't need to go hunting embedded codes, and so on).

So, eg.

Code:
http://www.youtube.com/v/
is hard-coded
and the remaining file element is entered by each user
Code:
ORzHF2kgqJ4&hl=en
Would solve a lot of problems and make users lives easier
Reply With Quote
  #69  
Old 07-07-2008, 01:31 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope you don't mind, but here's my suggested edit to this modifcation.

What this does is allows the member to add the youtube file without needing to meddle with the 'embed' function. Instead, they simply need the very last portion of the URL.

So, if the URL is http://www.youtube.com/watch?v=foKKLSGJFxw then any member need only paste the actual file identifier, which is:

foKKLSGJFxw

Whereas previously, they would need to hassle with the embed script, and then manually seek out the embed url:
http://www.youtube.com/v/foKKLSGJFxw

In addition, you may note I have added the &autoplay= function, so now when the member is adding their favourite youtube file, they need to only type 1 for yes, or 0 to not autoplay! Again, much simpler for the member.

Seems like an all-around easier way of doing things for the members of the site.

To use my edit, you'll need to change the memberinfo_block_youtube template in your chosen style:
Code:
<!-- youtube -->
<if condition="$userinfo[field9]">
<div id="youtube" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('youtube')"><img id="collapseimg_youtube" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
        <a name="albums"></a>
        <span class="block_name">YouTube Video</span>
    </h4>
    <div class="block_content" id="collapseobj_youtube" style="">
    

        
    <div class="alt1 smallfont block_row"><if condition="$userinfo[field10]">Title:&nbsp;$userinfo[field10]</if></div>
            
    <div class="alt2 block_row block_footer"><object width="240" height="200"><param name="movie" value="<embed src="http://www.youtube.com/v/$userinfo[field9]"></param><param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/$userinfo[field9]&autoplay=$userinfo[field11]" type="application/x-shockwave-flash" wmode="transparent" width="240" height="200"></embed></object>
    
    </div>

</div>
</div>
</if>
<!-- / youtube -->
For a demonstration of it working, clicky.
Reply With Quote
  #70  
Old 07-07-2008, 07:22 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 karlm View Post
I hope you don't mind, but here's my suggested edit to this modifcation.

What this does is allows the member to add the youtube file without needing to meddle with the 'embed' function. Instead, they simply need the very last portion of the URL.

So, if the URL is http://www.youtube.com/watch?v=foKKLSGJFxw then any member need only paste the actual file identifier, which is:

foKKLSGJFxw
I allready made one that uses just the youtube video number..
Its posted here,,Mini YouTube Video in Profile (right side block)

Some members wanted a URL one so I made both..
If you use this one,,the URL one,,,you can use URLs from other video sites...
Reply With Quote
  #71  
Old 07-11-2008, 09:03 AM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stangger5 View Post
I allready made one that uses just the youtube video number..
Its posted here,,Mini YouTube Video in Profile (right side block)

Some members wanted a URL one so I made both..
If you use this one,,the URL one,,,you can use URLs from other video sites...
i think i prefer this one...
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 12:09 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.05028 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (4)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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