Log in

View Full Version : Mini Mods - [RELEASE] Youtube on profile vb4


Luis
08-13-2012, 10:00 PM
hi guys
On vb.org there are some releases like for vb3 and Vb4, but for me, no one seem to work, it was also necessary to create many user fields.

Considering that no product meets my needs, i haven't thought of an alternative using only 2 user fields; there monster as

First step
Make 2 new field:

.first field
title: YouTube ID
Desription: Put your YouTube ID here. (Ex: Put KuyJkrAL9H4 NOT www.youtube.com/watch=)
Private Field: yes
Last 2 option: no

.second field
title: YouTube Title
Desription: Put your YouTube Title here. (title show up ur video)
Private Field: yes
Last 2 option: no

Now...

go in acp > style and template > find memberinfo template> You can choose to place your player where you want to, by inserting the code under albums, groups etc.


{vb:raw template_hook.profile_sidebar_first}
{vb:raw blocks.stats_mini}
{vb:raw template_hook.profile_sidebar_stats}
{vb:raw blocks.friends_mini}
{vb:raw template_hook.profile_sidebar_friends}
{vb:raw blocks.albums}
{vb:raw template_hook.profile_sidebar_albums}
{vb:raw blocks.groups}
{vb:raw template_hook.profile_sidebar_groups}
{vb:raw blocks.visitors}
{vb:raw template_hook.profile_sidebar_last}

<vb:if condition="$userinfo['fieldfirst']">
<div class="friends_mini friends block">
<h5 class="blocksubhead userprof_blocksubhead smaller ">{vb:raw userinfo.fieldsecond}</h5>
<div class="blockbody userprof_content userprof_content_border">
<div class="blockrow member_blockrow">

<iframe width="214" height="200" src="http://www.youtube.com/embed/{vb:raw userinfo.fieldfirst}?rel=0&amp;feature&amp;hl=en_US&amp;fs&amp;aut oplay=1&amp;rel=0;showinfo=0;controls=0; rel=0&amp;color1=0xFFFFFF&amp;color2=0xFFFFFF&amp;autoplay=1" type="application/x-shockwave-flash"></iframe>

</div>
</div>
</div>

</vb:if>


enjoy

http://puu.sh/Vct0

Demo
http://pwnedh4x0rz.com/members/1-luis/

thx asterix and cionfs for support c0de!

New Joe
08-14-2012, 02:35 PM
Why 2 fileds?

xixxon
08-14-2012, 02:59 PM
I think this isn't useful :-s

Luis
08-14-2012, 04:20 PM
Why 2 fileds?

if u like only video can u use this:

<vb:if condition="$userinfo['fieldvideo']">
<div class="friends_mini friends block">
<div class="blockbody userprof_content userprof_content_border">
<div class="blockrow member_blockrow">

<iframe width="214" height="200" src="http://www.youtube.com/embed/{vb:raw userinfo.fieldvideo}?rel=0&amp;feature&amp;hl=en_US&amp;fs&amp;aut oplay=1&amp;rel=0;showinfo=0;controls=0; rel=0&amp;color1=0xFFFFFF&amp;color2=0xFFFFFF&amp;autoplay=1" type="application/x-shockwave-flash"></iframe>

</div>
</div>
</div>

</vb:if>


PS: if u want remove block can u deleted this: <div class="blockrow member_blockrow">

PSS: sorry for my english no speack!

alain_president
08-15-2012, 08:22 AM
Luis...... ho un problema, ramm na mano!!! pe piecere!!! Ho installato il 4.2, cambio lo stile dei colori ma lo fa solo nel forum e non nel cms.... sto jenn o manicomio!! se sei pratico di sto vacchio di vbulletin ti faccio un attimo amministratore e vedi tu dove si attiva la finzione??? GRAZIE per qualsiasi risposta mi darai...... pur nu "vafancul" va bene lo stesso :-)))

New Joe
08-15-2012, 08:27 AM
^No understand...

alain_president
08-15-2012, 08:30 AM
Don't warry Luis speek my slang!!! :-))

alain_president
08-15-2012, 08:32 AM
anyway i have a problem, in vb4.2 i change colours in Style Generator, and save like new that..... but if i select new style the colours changes only in forum and not in CMS, so i gone cracy!!! have you suggestions!!

New Joe
08-15-2012, 08:43 AM
It didn't work.

Luis
08-15-2012, 10:46 AM
It didn't work.

what didnt work ???

follow my stem, make 2 field and put the code in ur MEMBERINFO where u want!

replace the [field"first/second"] with ur field number and u are done!

Luis
08-15-2012, 10:47 AM
anyway i have a problem, in vb4.2 i change colours in Style Generator, and save like new that..... but if i select new style the colours changes only in forum and not in CMS, so i gone cracy!!! have you suggestions!!

cant help u sorry!