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
  #102  
Old 05-03-2008, 10:11 PM
goodguy goodguy is offline
 
Join Date: Jul 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should it appear in this list in the userprofile?

Biography
N/A
Location
N/A
Interests
N/A
Occupation
N/A
Gender
Rather Not Say
YouTube ID
bEbh0SWandU
YouTube Title
Support
YouTube Auto-play
&autoplay=1
Reply With Quote
  #103  
Old 05-04-2008, 09:43 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 goodguy View Post
Should it appear in this list in the userprofile?
If you want it to show..

If not,,you should have made your profile feild like this,,

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

If its not working,,,can you send me a link to your site ??
Reply With Quote
  #104  
Old 05-04-2008, 10:19 AM
goodguy goodguy is offline
 
Join Date: Jul 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stangger5 View Post
If you want it to show..

If not,,you should have made your profile feild like this,,

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

If its not working,,,can you send me a link to your site ??

Thanks for having a look they are at;

http://www.hairdivision.co.uk/forums/
Reply With Quote
  #105  
Old 05-04-2008, 10:20 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 moger View Post
ok i installed and it just doesn't show up at all. i have checked everything. even re-installed it. i dont know what is wrong... any ideas?
Have you edited the memberinfo_block_youtube template to match your userinfo field numbers ??

Yours should be,,

the Youtube ID should be Field17
the Title should be Field18..
the Autoplay should be Field19

Then added $blocks[youtube] to your MEMBERINFO template ??

Reply With Quote
  #106  
Old 05-04-2008, 10:24 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 goodguy View Post
Thanks for having a look they are at;

http://www.hairdivision.co.uk/forums/
I cant register..I`m getting this,,You answered the NoSpam! question incorrectly.

I dont see any NoSpam question anywhere...
Reply With Quote
  #107  
Old 05-04-2008, 11:25 AM
goodguy goodguy is offline
 
Join Date: Jul 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stangger5 View Post
I cant register..I`m getting this,,You answered the NoSpam! question incorrectly.

I dont see any NoSpam question anywhere...
Oops, neither do I.
Reply With Quote
  #108  
Old 05-04-2008, 11:29 AM
goodguy goodguy is offline
 
Join Date: Jul 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stangger5 View Post
Have you edited the memberinfo_block_youtube template to match your userinfo field numbers ??

Yours should be,,

the Youtube ID should be Field17
the Title should be Field18..
the Autoplay should be Field19

Then added $blocks[youtube] to your MEMBERINFO template ??


Who would have thought that one missing number could be such a problem
It works a treat folks!! Thanks stangger5 :up:

Note to self
Read, understand and carryout all instructions, dont try to do stuff late at night when tired, it aint self assembly furniture the instructions are important.

Thanks again. :up:
Reply With Quote
  #109  
Old 05-04-2008, 01:24 PM
want3ed want3ed is offline
 
Join Date: Sep 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for mod. It is good working.
Reply With Quote
  #110  
Old 05-16-2008, 07:28 AM
GTRyan GTRyan is offline
 
Join Date: Sep 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on 2 sites, one is my own test site and it works fine, another is a decent sized forum with lots of plugins. I followed the directions included with the .zip and I am not seeing the video block on my own profile or anyone else even though they dont know about the addon yet. What could be wrong, could it be another plugin interfering? I disabled a bunch of other plugins and still nothing shows, I do have the $blocks[] added in MEMEBERINFO and the custom user fields.

Any advice?

3.7.0 gold
Reply With Quote
  #111  
Old 05-16-2008, 12:57 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of you interested in making the radio Yes/No Buttons do the following.

STEP ONE:
When making the auto play profile field follow these directions instead:
3:
Single-Selection Radio Buttons
Title: YouTube Auto-play?
Description: Select whether or not you would like the video to start automatically.
Options(each on a separate line): Yes
No
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]


STEP TWO:


After replacing the field values (fielda, fieldt, and so on) in template memberinfo_block_youtube you will need to replace $userinfo[fielda] (only one instance) with <if condition="$userinfo['fielda'] == 'Yes'">&autoplay=1</if>

That's it. You are done. Hopefully the author can add this and make it default.
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 08:00 PM.


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.05422 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
  • (4)bbcode_code
  • (6)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