Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2014-02-14 13:53:09

fitboy
Member
Registered: 2013-01-14
Posts: 123

share video on facebook - video thumb instead of site logo please

Hi,

I noticed that when I share a video from adultscriptpro via the share button on the site, it will post on facebook the video with the site logo instead of the video thumbnail.
If I share a video URL on facebook directly, it works fine (correct video title, video thumb etc.).

What would I need to change on the site so that when I click on the facebook-share-button under the video player it will also post the video with title and video thumb?

thanks :-D

Offline

#2 2014-02-22 16:07:18

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: share video on facebook - video thumb instead of site logo please

I have Same problem

Offline

#3 2014-02-23 09:14:15

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: share video on facebook - video thumb instead of site logo please

Hmmm...everyone else has the same problem? How do you share the video? Which share button do you click?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#4 2014-03-04 20:43:48

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: share video on facebook - video thumb instead of site logo please

I found a discussion on nuevolab forum, about this problem

http://www.clipshareforum.nuevolab.com/ … -t330.html

Last edited by MrPulse (2014-03-04 20:44:23)

Offline

#5 2014-03-05 06:59:41

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: share video on facebook - video thumb instead of site logo please

Edit templates/your-template/header.tpl.php and add this:

    <?php if (isset($this->video) && isset($this->video['thumb'])): ?>
    <link rel="image_src" href="<?php echo THUMB_URL,'/',path($this->video['video_id']),'/',$this->video['thumb']; ?>.jpg" />
    <?php endif; ?>

after:

    <link rel="canonical" href="<?php echo $this->canonical; ?>" />
    <?php endif; ?>

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB