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 2011-06-23 07:54:29

Eri
Member
Registered: 2011-03-18
Posts: 977

Show thumbtails on player bar

There are a lot of porn site that use these feature. It will be great if ASP have it.

Sites that i have seen using this use jwplayer.

Here is an example:

<script type='text/javascript'>
var so = new SWFObject('/jwplayer/player5.swf','mpl','668','533','9','#000000');

so.addVariable('plugins','/jwplayer/dock/dockableskinnableplugin.swf');
so.addVariable('dockableskinnableplugin.piclink', 'http://www.yoursite.com/xml-thumb-list.xml');

</script>

/xml-thumb-list.xml code

<?xml version="1.0" encoding="UTF-8"?>
<data>
<link>http://yoursite.com/media/videos/tmb/000/024/098/1.jpg</link>
<link>http://yoursite.com/media/videos/tmb/000/024/098/2.jpg</link>
.
.
<link>http://yoursite.com/media/videos/tmb/000/024/098/20.jpg</link>
</data>

Last edited by Eri (2011-06-23 07:57:38)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-06-23 12:26:29

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

u mean that thumbs wich show it when you go to time line?

Offline

#3 2011-06-23 13:04:25

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

yep like pornoxo[dot]com

Last edited by Eri (2011-06-23 13:04:50)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#4 2011-06-23 13:19:28

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

/xml-thumb-list.xml code

<?xml version="1.0" encoding="UTF-8"?>
<data>
<link>http://yoursite.com/media/videos/tmb/000/024/098/1.jpg</link>
<link>http://yoursite.com/media/videos/tmb/000/024/098/2.jpg</link>
.
.
<link>http://yoursite.com/media/videos/tmb/000/024/098/20.jpg</link>
</data>

here something missing i thing .....im not expert on this but should have time on it.
eg

<?xml version="1.0" encoding="UTF-8"?>
<data>
<link>http://yoursite.com/media/videos/tmb/000/024/098/1.jpg</link>
<time>00:00:00</time>
<link>http://yoursite.com/media/videos/tmb/000/024/098/2.jpg</link>
<time>00:00:01</time>
.
.
<link>http://yoursite.com/media/videos/tmb/000/024/098/20.jpg</link>
<time>00:00:03</time>
</data>

something like that maybe tongue .

but that will be nice to have it smile

Offline

#5 2011-06-23 14:11:03

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

there is no need of time. if you have 20 thumbs and your video is 20min thumb will change every 1 minute.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#6 2011-06-23 14:43:34

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

ooo nice to know......in flowplayer can be added??

Offline

#7 2011-06-28 21:01:43

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

just developed and working on my site smile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#8 2011-06-29 01:37:31

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

1) what is your site link smile
2) how u do it ?

Offline

#9 2011-06-29 07:54:31

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

I am using jwplayer. Do not work with flow player. Take a look at AlotPorn.com

made a php file at modules/video/player/thumb.php

<?php
define('_VALID', true);
require '/var/www/vhosts/alotporn.com/httpdocs/libraries/bootstrap.php';

error_reporting(E_ALL);
ini_set('display_errors', 1);

$video_id     = (isset($_GET['id'])) ? (int) $_GET['id'] : 0;
if ($video_id === 0) {
    die('Invalid video id!');
}

header("content-type:text/xml;charset=utf-8");
ob_start();
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<data>";
$db                = VF::factory('database');
$current_date    = date('Y-m-d');
$index            = array();            
$sql                = "SELECT v.video_id, v.thumb,
                                     GROUP_CONCAT(DISTINCT c.cat_id) AS categories,
                                     GROUP_CONCAT(DISTINCT c.slug) AS slugs,
                                     GROUP_CONCAT(DISTINCT c.name) AS name,
                                     GROUP_CONCAT(DISTINCT t.name) AS tags
                                FROM #__video AS v
                                LEFT JOIN #__video_category AS vc ON (vc.video_id = v.video_id)
                                LEFT JOIN #__video_categories AS c ON (vc.cat_id = c.cat_id)
                                LEFT JOIN #__video_tags AS t ON (t.video_id = v.video_id)
                                LEFT JOIN #__video_meta AS vm ON (vm.video_id = v.video_id)
                                LEFT JOIN #__user AS u ON (u.user_id = v.user_id)
                                WHERE v.video_id = ".$video_id."";
$videos = $db->get_rows($sql);                  
foreach ($videos as $video) {                                            
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/1.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/2.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/3.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/4.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/5.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/6.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/7.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/8.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/9.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/10.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/11.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/12.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/13.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/14.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/15.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/16.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/17.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/18.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/19.jpg</link>',"\n";
    echo '<link>'.BASE_URL.'/media/videos/tmb/'.path($video['video_id']).'/20.jpg</link>',"\n"; }
echo "</data>";

VF::close();



?>

and at /modules/video/player/config.php indexed:

  <plugins>sharing-2,dockableskinnableplugin</plugins>
 <dockableskinnableplugin.piclink>http://......your site..........com/modules/video/player/thumb.php?id=<?php echo $video_id; ?></dockableskinnableplugin.piclink>
  

Last edited by Eri (2011-07-01 12:39:51)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#10 2011-06-29 11:37:51

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

nice work man. smile

but i have to ask 2 things

1) how u change to jwplayer? i want do that me to tongue

2) why show border inside in thumbs?

here is n not work ( http://alotporn.com/21648/hot-orgasm-compilation/ )

Last edited by thiva7 (2011-06-29 11:39:57)

Offline

#11 2011-06-29 20:27:11

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Show thumbtails on player bar

Hey!

Thanks for sharing, but this query is executed with every view of a video. Maybe it would be very good to cache this. What is your Opinion?


sgt-halfsize-banner.jpg

Offline

#12 2011-06-29 20:57:20

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

thiva7 wrote:

nice work man. smile

but i have to ask 2 things

1) how u change to jwplayer? i want do that me to tongue

2) why show border inside in thumbs?

here is n not work ( http://alotporn.com/21648/hot-orgasm-compilation/ )

You can do that. just download jwplayer, has the same structure as flowplayer just change the config.php

That plugin is made for 160x120 thumbs, my site thumbs are 180x135

Old videos has 7 thumbs, are from an other script


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#13 2011-06-29 20:59:06

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

Coscast wrote:

Hey!

Thanks for sharing, but this query is executed with every view of a video. Maybe it would be very good to cache this. What is your Opinion?

Yes will be great, Adrian we need help smile))


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#14 2011-06-29 21:55:54

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

Eri wrote:
thiva7 wrote:

nice work man. smile

but i have to ask 2 things

1) how u change to jwplayer? i want do that me to tongue

2) why show border inside in thumbs?

here is n not work ( http://alotporn.com/21648/hot-orgasm-compilation/ )

You can do that. just download jwplayer, has the same structure as flowplayer just change the config.php

That plugin is made for 160x120 thumbs, my site thumbs are 180x135

Old videos has 7 thumbs, are from an other script


i cand find what i should change in config.php sad

when u have time explane more what we should do !!



thank you smile

Last edited by thiva7 (2011-06-29 21:59:32)

Offline

#15 2011-06-29 22:10:47

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Show thumbtails on player bar

Hey Thiva, are u using the JWPlayer ?


sgt-halfsize-banner.jpg

Offline

#16 2011-06-29 23:11:52

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

thiva7 wrote:

2) why show border inside in thumbs?

Fixed smile ,thanks


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#17 2011-06-29 23:14:22

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

thiva7 wrote:

when u have time explane more what we should do !!


thank you smile

I will make a new post, change from flowplayer to jwplayer

made it
http://forum.adultscriptpro.com/viewtopic.php?id=562

Last edited by Eri (2011-06-29 23:34:52)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#18 2011-06-30 00:20:44

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Show thumbtails on player bar

Thank you very much ERI.
As far as i see, JW has a lot more features. I like the SHARE feature in your player smile

Last edited by Coscast (2011-06-30 00:21:13)


sgt-halfsize-banner.jpg

Offline

#19 2011-06-30 07:08:39

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

Coscast wrote:

Thank you very much ERI.
As far as i see, JW has a lot more features. I like the SHARE feature in your player smile

Yes also is faster and les bandwith to spend because use google CDN for js files.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#20 2011-06-30 09:23:08

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

Eri wrote:
thiva7 wrote:

2) why show border inside in thumbs?

Fixed smile ,thanks

not yet but today i will change it smile

Eri wrote:
thiva7 wrote:

when u have time explane more what we should do !!


thank you smile

I will make a new post, change from flowplayer to jwplayer

made it
http://forum.adultscriptpro.com/viewtopic.php?id=562


thank you for fast reply and help smile

Offline

#21 2011-07-01 10:17:30

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

  <plugins>sharing-2,dockableskinnableplugin</plugins>
 <dockableskinnableplugin.piclink>http://alotporn.com/modules/video/player/thumb.php?id=<?php echo $video_id; ?></dockableskinnableplugin.piclink>
  

this code in wich line goes??i try every line and is not work for me

Last edited by thiva7 (2011-07-01 11:08:54)

Offline

#22 2011-07-01 12:40:31

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

at <dockableskinnableplugin.piclink> add your site not mine tongue


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#23 2011-07-01 12:52:46

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

Eri wrote:

at <dockableskinnableplugin.piclink> add your site not mine tongue

man i just get your code from your post...offcorse i add my site smile

<plugins>sharing-2,dockableskinnableplugin</plugins>
<dockableskinnableplugin.piclink>http://xporn4u.com/modules/video/player/thumb.php?id=<?php echo $video_id; ?></dockableskinnableplugin.piclink>

where goes this code tongue ?tell me line smile

Last edited by thiva7 (2011-07-01 12:53:49)

Offline

#24 2011-07-01 22:15:19

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Show thumbtails on player bar

take a better look at my post at /modules/video/player/config.php


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#25 2011-07-01 22:44:59

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Show thumbtails on player bar

man i told you.....i add my details.

in modules/video/player/thumb.php i change from

require '/var/www/vhosts/alotporn.com/httpdocs/libraries/bootstrap.php';

to

my details

and in

/modules/video/player/config.php

the same ( i have add my details )

im noob but not so much smile

i have done with my details.

so in wich line goes this code becuse when i add this :

<plugins>sharing-2,dockableskinnableplugin</plugins>
<dockableskinnableplugin.piclink>http://xporn4u.com/modules/video/player/thumb.php?id=<?php echo $video_id; ?></dockableskinnableplugin.piclink>

is not load video

Offline

Board footer

Powered by FluxBB