YouTube Profile Field

Started by Alan S, August 19, 2006, 01:33:26 PM

Previous topic - Next topic

Alan S

Link to Mod
Rate this Mod

Lets you either embed a video from youtube.com into your profile or adds a direct link to the youtube video in your profile ( depending on the package you get ,youtube_embed will embed the video into your profile , youtube_link will show a direct link to the video.)             

You should only add the video id in the profile field not the whole link . eg.

your video link is http://www.youtube.com/watch?v=x7J1M1PL1-w

you should only enter the
x7J1M1PL1-w

part into the field.

Tested With 1.1RC2,1.0.7,1.1RC3,1.1,1.1.1,1.1.2 ( It probably works with 1.0.8 but i havnt tested it so backup if you try it with 1.0.8). Bugs should be reported to

[email protected]

Demo

http://www.theteenzone.net/testforum/index.php?action=profile;u=1
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P


Alan S

#2
Espérer vos utilisateurs comme lui /Hope your users like it   ;) ;)
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

sipko

It's awesome. I installed it yesterday. Thanks for creating such a cool mod. 

Alan S

#4
Glad you like it  ;) ;) ;)


Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P


Alan S

Glad you like it Ark.


Works With 1.1RC3 Aswell
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

NeFReT

1.1 RC3 amenable  YouTube Profile Field Modu what date advantage

laughing potato

Will this mod work on other themes?

I use Helios Multi and it installed fine, the video appears when I enter my profile. Cannot get it to show on my in post profile view as you have done :(

Any help much welcomed

my site is hxxp:www.rckingdom.co.uk/smf [nonactive] if you want a look

Alan S

Hey , I really have to update this to 1.1.1 , I'll do it tonight.

What you do to make it work in Helios ( Or any other theme for that matter ) is

Open up that themes Display.Template.php

Find

// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';


Add After


if (!empty($message['member']['options']['youtube'])) echo '<a href="http://www.youtube.com/v/', $message['member']['options']['youtube'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/youtube.gif"></a>';


Let me know if it works.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

laughing potato

I entered the code like this
                        // Show their personal text?
                        (!empty($message['member']['options']['youtube'])) echo '<a href="http://www.youtube.com/v/', $message['member']['options']['youtube'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/youtube.gif"></a>';




and got this back
The file you tried to save generated the following error:
Parse error: parse error, unexpected T_ECHO in Display.template.php on line 383



I'm pretty unskilled with this code stuff, so please excuse me if I've missed/done something silly ;D

laughing potato

Opps, for got to add, i really want the embedded version to work more than the linked version although I have installed both.

laughing potato

So sorry, the above linked worked a treat, my bad :(

The youtube.gif needed to be moved into the correct folder. All working now, and I've learned a lot from just playing about.

Many thanks for your help and very quick reply, GREAT MOD and very useful ;D

perplexed

does this slow the forum down any having a youtube video loading on your profile?  I have performance issues :)

laughing potato

No, performance is the same. If the video takes time to load everything else would be fine, the video box just remains blank.

Its a great mod, and is proving pretty popular and saves my bandwidth as members can now upload a like via YouTube ;D

djpaddystudio7


Alan S

Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

spottedhog

#17
Hi,

I am getting this error in the Forum Error Logs:

?action=profile;u=2;sa=forumProfile', '8: Undefined index:  youtube<br />File: Forums/Themes/default/Profile.template.php (forumProfile sub template - eval?)<br />Line: 1556


It only happens when a Profile is opened to modify, even when no changes were made.  Any ideas?

Edit:  On the third time of manually modifying the Profile.template.php file, I got it to work without any Forums errors.  Not sure what I had out of place, but it is OK now.

thanks

pariofdreamz

Thanks For The Fantastic Mod ...... Its working fine for me ..... www.forums.parilok.org :)


Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

st1905

Alan thank you so much , works great with tp+smf.

Advertisement: