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)
-   -   Profile Enhancements - YouTube in Profile (https://vborg.vbsupport.ru/showthread.php?t=165771)

Freesteyelz 02-06-2008 02:20 AM

$post will only work in postbit. Replace it with $userinfo...You'll have to do it several times. Also refer post #45 again, you missed one edit. :)

You can add the Table elements in MEMBERINFO template:

Code:

<div id="sidebar_container">

Because stangger5 implemented YouTube in the right column first I don't want to release mine. Just in case he's planning on releasing it as a mod.

seangworld 02-06-2008 03:37 AM

im so confused now.

can you just pm me your edits?

stangger5 02-06-2008 04:25 PM

Quote:

Originally Posted by Freesteyelz (Post 1436991)
Hey, stangger5. Nice. :up:

I'm curious...Did you use plugins or did you edit the PHP files? When I did the Mini_YouTube I used PHP edits :(.

My efforts to reproduce what you did are in attachment:


*The one difference is that the title "My YouTube Video" is using a Custom Profile Block. Users can choose their own title. :)

I made a plug-in...I added the option for users to choose their own title...;)
I should have it ready to post by tonight..

Freesteyelz 02-06-2008 10:00 PM

Sweet. I'll check it out soon. :)

Alfa1 02-07-2008 07:37 AM

Very nice.

Brandon Sheley 02-23-2008 12:47 AM

Quote:

Originally Posted by stangger5 (Post 1437497)
I made a plug-in...I added the option for users to choose their own title...;)
I should have it ready to post by tonight..

hows that going ?

DieselMinded 05-09-2008 02:17 PM

/me must have this please release a working version

DieselMinded 05-09-2008 03:19 PM

Ok Pieces of this and pieces of that and i got this working !!


PHP Code:

Create a New User Profile Field Single-Line Text Box
Title 
-    YouTube Video In Your Profile 
Description 
-     You can give your YouTube a title here
Hidden 
Yes
Searchable 
NO
Memberlist 
NO

[B]Note the Field Number not the order number [/B]

Mine was field 12 

Edit This code with your field number 
(Replace all the 12's)

<if condition="$userinfo[field12]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>    
    <td class="tcat">$userinfo[username]'
s Video <if condition="$post[field12]">&nbsp;-&nbsp;$userinfo[field12]</if></td>
</
tr>
</
table>
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
<
td class="alt2" style="border-bottom:0px solid $stylevar[tborder_bgcolor]width="200" colspan="2">
<
center>    
<
object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$userinfo[field12]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$userinfo[field12]type="application/x-shockwave-flash" wmode="transparent" width="230" height="230"></embed></object>
</
center></td></tr></table></if>
<
br>

Then
Put it in Member Info Template Between 
<!-- sidebar -->
and
<!-- / 
sidebar -->

Like so : (I moved the Friends Down )
    <!-- 
sidebar -->
    
$template_hook[profile_right_first]
    
$blocks[stats_mini]
    
$template_hook[profile_right_mini]
<if 
condition="$userinfo[field12]">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>    
    <
td class="tcat">$userinfo[username]'s Video <if condition="$post[field12]">&nbsp;-&nbsp;$userinfo[field12]</if></td>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" style="border-bottom:0px solid $stylevar[tborder_bgcolor]" width="200" colspan="2">
<center>    
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$userinfo[field12]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$userinfo[field12]" type="application/x-shockwave-flash" wmode="transparent" width="230" height="230"></embed></object>
</center></td></tr></table></if>
<br>
    $blocks[albums]
    $template_hook[profile_right_album]
$blocks[friends_mini]
    $blocks[groups]
    $blocks[visitors]
    $template_hook[profile_right_last]
    <!-- / sidebar -->


Adjust your size with 

width="230" height="230"

(the last bit of code) 


murdoc 05-23-2008 01:19 PM

Hello there :D

i have a little prob mine is not showing, i dont know what to do

take a look

http://gamerswastelands.co.za/member.php?u=1

chennairam 07-02-2008 10:31 AM

can i ask sir ?
where can i put this code ?

save and replace $post[field1] with the field (like $post[field8]

Sorry im new in forum


All times are GMT. The time now is 02:30 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.01582 seconds
  • Memory Usage 1,766KB
  • 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
  • (1)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
  • (3)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