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
  #92  
Old 06-25-2009, 08:33 PM
ximenavi's Avatar
ximenavi ximenavi is offline
 
Join Date: Jul 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not understand from : Edit two templates.
Reply With Quote
  #93  
Old 09-07-2009, 01:03 PM
Dan! Dan! is offline
 
Join Date: May 2008
Location: Frome
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really dislike the fact that you have to have the embed url insted of the browser url, alot.

ill be using the id version untill you make it work with the browser url, its alot easier for my visitors.
Reply With Quote
  #94  
Old 09-13-2009, 10:56 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great and thanks..it works to my vB 3.8.4 here...

:up:
Reply With Quote
  #95  
Old 09-13-2009, 11:10 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ximenavi View Post
I do not understand from : Edit two templates.
hi you have to edit 2 templates....


1:

Go >> admincp >> Styles & Templates >> Member Info Templates >> memberinfo_block_youtube

Find below all in template:

3X $userinfo[fieldi]
2X $userinfo[fieldt]
1X $userinfo[fielda]



$userinfo[fieldi] >> Change the red with YouTube ID field number = sample: $userinfo[field27]

$userinfo[fieldt] >>> Change the red with YouTube Title field number= sample: $userinfo[field28]

$userinfo[fielda] >> Change the red with YouTube Auto-play field number= sample: $userinfo[field29]

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

2:

Go >> admincp >>Edit: Styles & Templates >> Member Info Templates >> MEMBERINFO

Find:

$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]

Put/Insert $blocks[youtube] anywhere in there..
sample:

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


hope this one help you and others too...enjoy your video watching now...

:up:
Reply With Quote
  #96  
Old 09-17-2009, 11:20 AM
jaderollie jaderollie is offline
 
Join Date: Nov 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

knock me bandie, this is great

oops spoke to soon
none of my members can see the videos, i can see them ok
they can see the profiles, but theres no box, or videos to be seen, any help please?
Reply With Quote
  #97  
Old 09-17-2009, 09:10 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaderollie View Post
knock me bandie, this is great

oops spoke to soon
none of my members can see the videos, i can see them ok
they can see the profiles, but theres no box, or videos to be seen, any help please?
maybe you have to do this also...

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 videos..


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


goodluck and best regards :up:
Reply With Quote
  #98  
Old 10-23-2009, 04:17 AM
jkcerda jkcerda is offline
 
Join Date: Mar 2008
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged
Reply With Quote
  #99  
Old 10-29-2009, 03:08 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

brilliant brilliant mod..installed and nominated
Reply With Quote
  #100  
Old 11-07-2009, 06:34 AM
PurpleSkull PurpleSkull is offline
 
Join Date: Sep 2008
Posts: 2
Благодарил(а): 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

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.
Thank you very much
Reply With Quote
  #101  
Old 11-26-2010, 09:01 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried this addon it is great :0) but it caused server load to spike, is there a way to reduce the load but I might uninstall it.
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:28 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.07723 seconds
  • Memory Usage 2,333KB
  • 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
  • (7)bbcode_code
  • (3)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
  • (3)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