Login     Sign up
Thumbnail of video that would appear in the stream
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Does anyone know how to have the Thumbnail of a Youtube video appear along with the stream? Thanks!

166 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

I was also thinking about it..
it's really great to be have this service.!!

166 months ago
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Found a way to get the thumbnail to show. First you have to edit common.inc.php and find this:

$att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div>';

and replace with this:

$att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div><a href="'.uhome().'/'.$attachment['uri'].'" /><img src="'.uhome().'/'.$attachment['thumb'].'" /></a>';

166 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

[quote=karen]Found a way to get the thumbnail to show. First you have to edit common.inc.php and find this:

$att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div>';

and replace with this:

$att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div><a href="'.uhome().'/'.$attachment['uri'].'" /><img src="'.uhome().'/'.$attachment['thumb'].'" /></a>';[/quote]

Hmmm doesn't do anything for me..

166 months ago
DeFender (@defender)
Join date: Oct 1st 2010
Community posts: 167
View Profile
Send Message

nothing

166 months ago
dpahellas (@dpahellas)
Join date: Sep 15th 2010
Community posts: 41
View Profile
Send Message

[quote=switch48]

Hmmm doesn't do anything for me.. [/quote]

nothing for me too

166 months ago
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form.

166 months ago
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form.

166 months ago
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form.

166 months ago
dpahellas (@dpahellas)
Join date: Sep 15th 2010
Community posts: 41
View Profile
Send Message

[quote=karen]Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form. [/quote]

the code is not working.Getting error from the database.
in which line is the code must be replaced?

166 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

I have tried..
It works but only with ajax post..
just to say try more you will get it

166 months ago
DeFender (@defender)
Join date: Oct 1st 2010
Community posts: 167
View Profile
Send Message

thanks karen it is working in 4.1 version

166 months ago
1 2 3 Next