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)

EvErDrEaMs 02-04-2008 11:52 AM

tryed everything no go.

seangworld 02-04-2008 11:13 PM

demo link doesnt work.

Bilderback 02-05-2008 01:42 AM

not working for me in beta 4
Does $post have to be changed to $prepared?

seangworld 02-05-2008 06:14 AM

i want to have my members be able to add youtube to their profiles but i require a demo to make sure it looks good and it works right.

none of you are providing a link to even your own sites as a demo.

Freesteyelz 02-05-2008 08:55 AM

I checked the codes. The reason why it's not working is there are missing elements in it. To fix it do the following:

Find (2 times):

Code:

src="http://www.youtube.com/v/$post[field1]"

Replace it (2 times) with:


Code:

src="http://www.youtube.com/v/$userinfo[fieldx]&rel=1"

Replace "x" with the Custom Profile Field ID.


I basically had the same idea as BlizzardHQ but did it on my own. For my profile I used the 3.7 codes so the look will adjust according to how I customize it. I would show the profile but you need to be logged in. The attachments should suffice. :)

stangger5 02-05-2008 03:01 PM

I made a right side YouTube box in member profile..It uses the 3.7 code for the look also..

You can have a look at my profile,,,you dont need to register..thefulcrumpoint.org

seangworld 02-05-2008 03:35 PM

wow very nice stangger. im hoping you used this same code in this thread!
and i wasnt aware ipbarcade was working for 3.7, i was waiting for that too....

you've been a huge help, thanks man.

i just bookmarked your site as well for other hacks you got...

Alfa1 02-05-2008 07:17 PM

Quote:

Originally Posted by stangger5 (Post 1436779)
I made a right side YouTube box in member profile..It uses the 3.7 code for the look also..

You can have a look at my profile,,,you dont need to register..thefulcrumpoint.org

How did you do that?

Freesteyelz 02-05-2008 08:30 PM

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. :)

seangworld 02-06-2008 12:39 AM

im not getting it to work.

Quote:

<if condition="$post[field5]">
<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

[field2]">&nbsp;-&nbsp;$post[field6]</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/$post[field5]"></param><param name="wmode"

value="transparent"></param><embed src="http://www.youtube.com/v/$userinfo[field6]&rel=1"

type="application/x-shockwave-flash" wmode="transparent" width="425"

height="350"></embed></object>
</center></td></tr></table></if>
and how would i properly place it so it shows up on my side bar under the stats?

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

Alfa1 07-03-2008 09:45 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..

Any news?

Stuntman Mike 07-03-2008 05:00 PM

everything diesel minded said made it work...however, for some reason, the other fields, which were biography stuff so members could put their birthdays in and stuff, are gone. is there another place to replace the field code for these? The only thing in my about me is the link and title of my youtube video. Editable fields are gone.

Good thing is, the youtube video is in my sidebar!


All times are GMT. The time now is 01:37 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.01371 seconds
  • Memory Usage 1,794KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)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
  • (22)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