Advertisement:

Author Topic: YouTube Profile Field  (Read 29809 times)

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
YouTube Profile Field
« on: August 19, 2006, 01:33:26 PM »
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

smithalan2@gmail.com

Demo

http://www.theteenzone.net/testforum/index.php?action=profile;u=1
« Last Edit: March 29, 2007, 02:38:42 PM by Alan S »
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Offline kezayah

  • Jr. Member
  • **
  • Posts: 107
    • http://ze-forum.org
Re: YouTube Profile Field
« Reply #1 on: August 20, 2006, 07:58:57 AM »
Génial !!!  8)

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
Re: YouTube Profile Field
« Reply #2 on: August 21, 2006, 05:24:49 PM »
Espérer vos utilisateurs comme lui /Hope your users like it   ;) ;)
« Last Edit: August 21, 2006, 05:27:41 PM by Alan S »
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

  • Guest
Re: YouTube Profile Field
« Reply #3 on: August 21, 2006, 05:26:35 PM »
It's awesome. I installed it yesterday. Thanks for creating such a cool mod. 

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
Re: YouTube Profile Field
« Reply #4 on: August 21, 2006, 05:30:10 PM »
Glad you like it  ;) ;) ;)


« Last Edit: August 21, 2006, 05:40:02 PM by Alan S »
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,813
  • Owner of Javaforums.net /nl /be
    • Javaforums.net :: For those that need Java help and tutorials!
Re: YouTube Profile Field
« Reply #5 on: August 21, 2006, 08:51:33 PM »
Installed it a few days ago, nice mod!

http://diablolivestream.com :: A diablo livestream community! It's my new pet project and i hope u all like it and join so it becomes a very nice and active community :)!

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
Re: YouTube Profile Field
« Reply #6 on: August 22, 2006, 09:56:09 AM »
Glad you like it Ark.


Works With 1.1RC3 Aswell
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Offline NeFReT

  • Jr. Member
  • **
  • Posts: 266
  • Gender: Male
  • Smf Hastası
Re: YouTube Profile Field
« Reply #7 on: August 22, 2006, 10:31:58 PM »
1.1 RC3 amenable  YouTube Profile Field Modu what date advantage

Offline laughing potato

  • Newbie
  • *
  • Posts: 5
Re: YouTube Profile Field
« Reply #8 on: January 23, 2007, 03:43:26 PM »
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

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
Re: YouTube Profile Field
« Reply #9 on: January 23, 2007, 03:58:18 PM »
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
Code: [Select]
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';

Add After

Code: [Select]
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.
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Offline laughing potato

  • Newbie
  • *
  • Posts: 5
Re: YouTube Profile Field
« Reply #10 on: January 23, 2007, 04:57:51 PM »
I entered the code like this
Code: [Select]
                        // 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
Code: [Select]
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

Offline laughing potato

  • Newbie
  • *
  • Posts: 5
Re: YouTube Profile Field
« Reply #11 on: January 23, 2007, 04:59:26 PM »
Opps, for got to add, i really want the embedded version to work more than the linked version although I have installed both.

Offline laughing potato

  • Newbie
  • *
  • Posts: 5
Re: YouTube Profile Field
« Reply #12 on: January 23, 2007, 06:11:50 PM »
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

Offline perplexed

  • SMF Hero
  • ******
  • Posts: 2,595
  • It's quite perplexing isn't it
Re: YouTube Profile Field
« Reply #13 on: February 13, 2007, 06:08:40 AM »
does this slow the forum down any having a youtube video loading on your profile?  I have performance issues :)

Offline laughing potato

  • Newbie
  • *
  • Posts: 5
Re: YouTube Profile Field
« Reply #14 on: February 13, 2007, 04:50:13 PM »
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

Offline djpaddystudio7

  • Semi-Newbie
  • *
  • Posts: 49
  • I dont want what I dont have
    • Masti Ki Paathshala
Re: YouTube Profile Field
« Reply #15 on: March 29, 2007, 12:31:37 PM »
would this work for 1.1.2 ???

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
Re: YouTube Profile Field
« Reply #16 on: March 29, 2007, 02:38:21 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

Offline spottedhog

  • Sr. Member
  • ****
  • Posts: 782
  • Gender: Male
Re: YouTube Profile Field
« Reply #17 on: April 17, 2007, 01:36:38 PM »
Hi,

I am getting this error in the Forum Error Logs:
Code: [Select]
?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
« Last Edit: April 18, 2007, 05:08:35 PM by spottedhog »

Offline pariofdreamz

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Female
  • ::: DoN't EvEn TrY tO mEsS wItH mE :::
    • pariofdreamz on Facebook
    • PARILOk
Re: YouTube Profile Field
« Reply #18 on: April 24, 2007, 09:17:15 AM »
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

Offline st1905

  • Semi-Newbie
  • *
  • Posts: 10
Re: YouTube Profile Field
« Reply #19 on: June 24, 2007, 12:28:08 PM »
Alan thank you so much , works great with tp+smf.