vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - [RELEASE] Youtube on profile vb4 (https://vborg.vbsupport.ru/showthread.php?t=286627)

Luis 08-13-2012 10:00 PM

[RELEASE] Youtube on profile vb4
 
1 Attachment(s)
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.

Code:

                  {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}

Code:

<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;autoplay=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

Quote:

Originally Posted by New Joe (Post 2356895)
Why 2 fileds?

if u like only video can u use this:

PHP Code:

<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;autoplay=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

Quote:

Originally Posted by New Joe (Post 2357079)
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!


All times are GMT. The time now is 01:44 AM.

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.01165 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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