vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Mini YouTube Video in Profile (right side block) (https://vborg.vbsupport.ru/showthread.php?t=169824)

stangger5 02-05-2008 10:00 PM

Mini YouTube Video in Profile (right side block)
 
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:)
:)

dacho 02-06-2008 07:50 PM

thank you man

iogames 02-06-2008 08:00 PM

sounds like fun!

ShawneyJ 02-06-2008 08:55 PM

good job :)

Freesteyelz 02-06-2008 10:11 PM

Hey, stangger5. I downloaded the plugin to see what it looks like. I thought there would be more code to the hook...Go figure. :D

Just a suggestion, you may want to add the <tr> and <td> tags to your Table code or just remove <table> all together...You don't need it. :)

stangger5 02-06-2008 10:58 PM

Quote:

Originally Posted by Freesteyelz (Post 1437717)
Hey, stangger5. I downloaded the plugin to see what it looks like. I thought there would be more code to the hook...Go figure. :D

Just a suggestion, you may want to add the <tr> and <td> tags to your Table code or just remove <table> all together...You don't need it. :)

I updated the template..Took out the <table>s and added block_row and block_row block_footer..
That makes it look alot better...:D

nerofix 02-06-2008 11:50 PM

Hello my friend,

you have 2 typing errors in your step 3 description.

--> $useinfo[fieldi] --> $userinfo[fieldi]

--> $useinfo[fieldt] --> $userinfo[fieldt]

Thank you for this mod.

Romeos Tune 02-07-2008 12:12 AM

Hey! This one works. :D Thanks!

Romeos Tune 02-07-2008 12:14 AM

Is there a way to get the video to auto start?

Never mind...figured it out. :)

stangger5 02-07-2008 12:39 AM

Quote:

Originally Posted by nerofix (Post 1437759)
Hello my friend,

you have 2 typing errors in your step 3 description.


--> $useinfo[fieldi] --> $userinfo[fieldi]

--> $useinfo[fieldt] --> $userinfo[fieldt]


Thank you for this mod.

Fixed it...Thanks..;)

glorify 02-07-2008 12:50 AM

Looks solid and in the right side is right where it looks good. Will install. Nice job man.

seangworld 02-07-2008 03:39 AM

THANK YOU!!!

i downloaded the zip and clicked install. i'll actually install it in a little bit.

sinistergaming 02-07-2008 05:06 AM

installed easily enough works great

seangworld 02-07-2008 05:08 AM

Yay It Works!!!!

Alfa1 02-07-2008 07:42 AM

Can you please add functionality to allow only certain usergroups to put this on their profile?

This works like a charm. It only strikes me as odd, to put the video title between the block title and the video, instead of replacing the block title with the video title. I have changed this by moving some code around in memberinfo_block_youtube:
PHP 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"><if condition="$userinfo[field22]">$userinfo[field22]</if></span>
    </
h4>
    <
div class="block_content" id="collapseobj_youtube" style="">
    

        
            
    <
div class="alt2 block_row block_footer"><object width="240" height="200"><param name="movie" value="http://www.youtube.com/v/$userinfo[field9]"></param><param name="wmode" value="transparent"></param>
<
embed src="http://www.youtube.com/v/$userinfo[field9]type="application/x-shockwave-flash" wmode="transparent" width="240" height="200"></embed></object>
    
    </
div>

</
div>
</
div>
</if>
<!-- / 
youtube --> 

Note that my profile field ID's are 9 and 22. If you use the above, then you need to change this.

Would it be possible to change this hack, so that more flash video sites can be used and not just youtube?

spike_xxx 02-07-2008 08:14 AM

Thank You .... works great :)

stangger5 02-07-2008 02:00 PM

Quote:

Originally Posted by Alfa1 (Post 1438034)
Can you please add functionality to allow only certain usergroups to put this on their profile?

This works like a charm. It only strikes me as odd, to put the video title between the block title and the video, instead of replacing the block title with the video title.

I have added the functionality to allow certain usergroups to use..
Next version...;)

I made both the box title and video title,,,to make it look more like the other info blocks..

Booth 02-09-2008 05:12 AM

For some reason when users who have already added a video are change it to a different video it doesn't show.

stangger5 02-09-2008 10:01 AM

If it doesnt show,,,then they didnt put the YouTube code in right...

Have them try anther video too...

christian8a 02-09-2008 04:07 PM

there a way to use full URL man? instead of the ID
for us is good, but for some members they dont know that, they just paste the full url

Freesteyelz 02-09-2008 10:17 PM

My guess is that just rip the entire http// line and substitute it with:

Code:

src="$userinfo[fieldx]"
That should work.

marcossalazar 02-10-2008 12:56 PM

Quick question...does this allow users to put in any youtube video they want in their profile?

cheat-master30 02-10-2008 12:57 PM

Installed and working fine.

eNforce 02-10-2008 05:33 PM

Quote:

Originally Posted by Freesteyelz (Post 1439658)
My guess is that just rip the entire http// line and substitute it with:

Code:

src="$userinfo[fieldx]"
That should work.

I tried that, didn't work for some reason.

I just left more detailed instructions on how to get youtube ID's in the profile field description.

AK47 Nemesis 02-10-2008 08:25 PM

Thanks, very nice mod! Could you perhaps write a tutorial on how to add custom blocks? As i wish to add more containing other stuff.

iJoe 02-10-2008 09:27 PM

excellent, thanks

stangger5 02-11-2008 09:38 AM

Quote:

Originally Posted by AK47 Nemesis (Post 1440352)
Could you perhaps write a tutorial on how to add custom blocks? As i wish to add more containing other stuff.

If I ever get time...;)

NeuroLancer 02-11-2008 09:43 AM

This is really nice. Thanks for the work. :)

Quote:

Originally Posted by AK47 Nemesis (Post 1440352)
Thanks, very nice mod! Could you perhaps write a tutorial on how to add custom blocks? As i wish to add more containing other stuff.

there is one already: See it here in Articles section

RvG2 02-11-2008 12:23 PM

works perfectly! :)

Booth 02-12-2008 01:09 PM

Quote:

Originally Posted by stangger5 (Post 1439333)
If it doesnt show,,,then they didnt put the YouTube code in right...

Have them try anther video too...

No it must have been a problem when it installed because I've just reinstalled and it's working fine with all the users who've added videos - even those that had a problem.

UltraFanatics 02-12-2008 07:03 PM

This mod is quality!

Awesome and brings a myspace / facebook feel to the page :)

Is there anyway of letting users add the whole http://www etc ??

If so can you let me know how and what to loose etc etc

marcossalazar 02-12-2008 07:14 PM

agreed...it is a sweet mod. The only problem is having to only put in the youtube code instead of the whole URL. If that can be done, this would be awesome!

stangger5 02-13-2008 06:31 AM

It will work useing the full url...

You have to use the url from the Embed code tho..

Say your Embed code is this,,
Code:

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/wfjWwGPtAls&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/wfjWwGPtAls&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
Members would just input this,,
Code:

http://www.youtube.com/v/wfjWwGPtAls&rel=1
I`ll make anther one just for full urls...

stangger5 02-13-2008 06:54 AM

I just uploaded mini youtube in profile (right side block)v2 full url..

Its install info is in the zip...

weedheaven 02-15-2008 09:57 PM

how would i make this work on 3.6.8 ?

I dont find those blocks anywhere

Mark.B 02-15-2008 10:10 PM

Quote:

Originally Posted by weedheaven (Post 1444066)
how would i make this work on 3.6.8 ?

I dont find those blocks anywhere

This mod requires 3.7, as 3.6 does not have the "new style" profile page.

Enclave 02-16-2008 09:36 AM

If you change

PHP Code:

<object width="240" height="200"><param name="movie" value="$userinfo[field9]"></param><param name="wmode" value="transparent"></param>
<
embed src="$userinfo[field9]type="application/x-shockwave-flash" wmode="transparent" width="240" height="200"></embed></object

with that

PHP Code:

<object type="application/x-shockwave-flash" style="width:240px; height:200px;" data="$userinfo[field9]"><param name="movie" value="$userinfo[field9]/><param name="wmode" value="transparent"></object

then the website is even xhtml valid... ;)

Thanks anyway for the mod!

Checkout here: http://validator.w3.org/check?uri=ht...Inline&group=0

weedheaven 02-16-2008 04:13 PM

Quote:

Originally Posted by Mark.B (Post 1444075)
This mod requires 3.7, as 3.6 does not have the "new style" profile page.

Damn, i woud like to have a small youtube video. Any other mod that is for 3.6.8 like that?

weedheaven 02-16-2008 07:57 PM

Nvm wait till vbulletin is out of beta

stangger5 02-17-2008 04:21 AM

Quote:

Originally Posted by weedheaven (Post 1444695)
Nvm wait till vbulletin is out of beta

I dont know if theres anything for 3.6..
I could make one for 3.6 if enough members want it...;)


All times are GMT. The time now is 06:28 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.01672 seconds
  • Memory Usage 1,858KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete