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

Category: Add-On Releases - Version: 3.7.0 Rating:
Released: 02-05-2008 Last Update: 03-02-2008 Installs: 304
Supported Uses Plugins Template Edits
 

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]
$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..
Say the link is
Code:
http://www.youtube.com/watch?v=HhuVgywiO3w
Put HhuVgywiO3w in your YouTube ID field..

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))
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
  #162  
Old 08-08-2008, 03:44 AM
DevinM DevinM is offline
 
Join Date: Mar 2006
Location: The Bayou
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack!

Ive noticed in your website you have a playlist.com mp3 player! How do you do that, ive been looking for a hack like that for ages now!
Reply With Quote
  #163  
Old 08-08-2008, 06:35 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome!!!

thanks. INSTALLED
Reply With Quote
  #164  
Old 08-08-2008, 07:42 PM
DevinM DevinM is offline
 
Join Date: Mar 2006
Location: The Bayou
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess does anyone for that matter know if there is a hack available for the playlist.com MP3 profile player found in his profile?

http://www.next-level-arcade.com/member.php?u=31
Reply With Quote
  #165  
Old 08-10-2008, 05:33 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to get this working for Godtube.com, since no one responded to my post last month, I gave it a shot. I got eveything working, except the actual video showing up :x

Templates all there, video block shows up - just without the actual video.

This is the xml file I used:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="godtube_member_profile" active="1">
    <title>Mini GodGube for Member Profile</title>
    <description>Displays a mini GodTube video on the right side of member profile.</description>
    <version>2.1</version>
    <url />
    <versioncheckurl />
    <dependencies>
    </dependencies>
    <codes>
    </codes>

<plugins>
    <plugin active="1" executionorder="5">
        <title>Mini GodGube for Member Profile</title>
        <hookname>member_build_blocks_start</hookname>
        <phpcode><![CDATA[if (is_member_of($vbulletin->userinfo,1 ,2 , 5, 6, 7))
        {
            eval('$blocks[godtube] = "' . fetch_template('memberinfo_block_godtube') . '";');}]]></phpcode>
    </plugin>
        <plugin active="1" executionorder="5">
            <title>Mini right side godtube for Member Profile - Cache Template</title>
            <hookname>cache_templates</hookname>
            <phpcode><![CDATA[$globaltemplates[] = 'memberinfo_block_godtube';]]></phpcode>
        </plugin>
       </plugins>

<templates>
    
    <template name="memberinfo_block_godtube" templatetype="template" date="" username="stangger5" version="2.1"><![CDATA[
<!-- godtube -->
<if condition="$userinfo[fieldi]">
<div id="godtube" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('godtube')"><img id="collapseimg_godtube" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
        <a name="albums"></a>
        <span class="block_name">godtube Video</span>
    </h4>
    <div class="block_content" id="collapseobj_godtube" style="">
        
    <div class="alt1 smallfont block_row"><if condition="$userinfo[fieldt]">Title:&nbsp;$userinfo[fieldt]</if></div>
            
    <div class="alt2 block_row block_footer"><object width="240" height="200"><param name="movie" value="http://www.godtube.com/view_video.php?viewkey=$userinfo[fieldi]"></param><param name="wmode" value="transparent"></param>
<embed src="http://www.godtube.com/view_video.php?viewkey=$userinfo[fieldi]$userinfo[fielda]" type="application/x-shockwave-flash" wmode="transparent" width="240" height="200"></embed></object>
    </div>
</div>
</div>
</if>
<!-- / godtube -->
    
    ]]></template>
    
</templates>
    <phrases>
    </phrases>
    <options>
    </options>
    <helptopics>
    </helptopics>
    <cronentries>
    </cronentries>
    <faqentries>
    </faqentries>
</product>
Reply With Quote
  #166  
Old 08-10-2008, 03:48 PM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great! thanx
Reply With Quote
  #167  
Old 08-10-2008, 08:09 PM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

by the way where do i get the mp3 embeded like you have on yours?
Reply With Quote
  #168  
Old 08-11-2008, 07:03 PM
poetrymansion poetrymansion is offline
 
Join Date: Aug 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

I just wanted to say thanks for taking time to make the instructons simple enough for me (a newbie) to follow......

It appears brill, my only prob is, it doesnt autoplay when people go to the page, any ideas on how i can fix this...

cheers

poetrymansion
Reply With Quote
  #169  
Old 08-11-2008, 09:09 PM
Chris11987 Chris11987 is offline
 
Join Date: Jun 2008
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I get this to appear on the right side in a block? On my site (3.7.1) it just appears as a profile tab that you have to click, like "About Me, Statistics, Friends, etc"
Reply With Quote
  #170  
Old 08-11-2008, 10:05 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 poetrymansion View Post
hi

I just wanted to say thanks for taking time to make the instructons simple enough for me (a newbie) to follow......

It appears brill, my only prob is, it doesnt autoplay when people go to the page, any ideas on how i can fix this...

cheers

poetrymansion
Can I have a look at your site ??

Quote:
Originally Posted by Chris11987 View Post
How do I get this to appear on the right side in a block? On my site (3.7.1) it just appears as a profile tab that you have to click, like "About Me, Statistics, Friends, etc"
You put the $blocks[youtube] in the wrong place..

I have mine after $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]
Reply With Quote
  #171  
Old 08-12-2008, 09:53 PM
poetrymansion poetrymansion is offline
 
Join Date: Aug 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simply fantastic........ and the help is first class.... even for a beginner like me....

Thanks so much....

poetrymansion
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 07:16 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.07526 seconds
  • Memory Usage 2,330KB
  • 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
  • (6)bbcode_code
  • (2)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
  • (1)pagenav_pagelinkrel
  • (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