The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mini YouTube Video in Profile (right side block) Details »» | ||||||||||||||||||||||
Mini YouTube Video in Profile (right side block)
Developer Last Online: Oct 2023
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] 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 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)) ================================================== ============== 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
|
Comments |
#102
|
|||
|
|||
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 |
#103
|
||||
|
||||
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 ?? |
#104
|
|||
|
|||
Quote:
Thanks for having a look they are at; http://www.hairdivision.co.uk/forums/ |
#105
|
||||
|
||||
Quote:
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 ?? |
#106
|
||||
|
||||
Quote:
I dont see any NoSpam question anywhere... |
#107
|
|||
|
|||
Oops, neither do I.
|
#108
|
|||
|
|||
Quote:
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: |
#109
|
|||
|
|||
thanks for mod. It is good working.
|
#110
|
|||
|
|||
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 |
#111
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|