How to use a dump file for mass videos embed?

I went to a few sites and signed up as a webmaster, they have dump files that automatically update my site so I can have it on autopilot. I've seen this before in another script, but the script was low quality and I would never use it. But how do I use the dump file with boonex? Any experience with this subject would be welcomed. 

Quote · 12 Oct 2013

You need to give some more information here.  The only dump files I am familiar with are dump files created when an application crashes and are used to try and figure out what went wrong.

Geeks, making the world a better place
Quote · 12 Oct 2013

 

the dump we I am talking about is an export tool to export tons of videos or photos from one site and into another. Not a crash in this case. Do I put this into my database? How do I import a ".csv" file into dolphin?

 

Export tool

 
 
Period:  Any time Last day (1 day) Last week (7 day) Last month (30 day) 
Amount of urls:  100 500 1000 5000 10000 
Thumb Size:  160x120 180x135 200x150 240x180 320x240 player 300 player 580 big 
Amount of thumbs: *  0 1 2 3 4 5 6 7 8 9 10 
Thumbs on one line:  
Order By:  Added time Rating View count 
Rating more than:  >=0 >=1 >=2 >=3 >=4 
Video ID:  
URL to video:  None Regular Mobile 
Url to page with thumbs:  
Embed code :  None Iframe Code 510x400 Iframe Code 640x480 Iframe Src 
Title:  
Channel:  
Duration:  
Date Added:  
Field delimiter:
Export format:  Delimited text RSS feed Stream rotator 

* First thumbnail in the list is the main thumbnail
Link to Export file is (just copy it): 

Sample of export:

 


Full base dump


Thumb Size Download Last Update
160x120 http://partners.xhamster.com/export/160.csv (623.36 Mb)
http://partners.xhamster.com/export/160.csv.gz (80.40 Mb)
2013-10-12
180x135 http://partners.xhamster.com/export/180.csv (663.53 Mb)
http://partners.xhamster.com/export/180.csv.gz (81.05 Mb)
2013-10-12
200x150 http://partners.xhamster.com/export/200.csv (663.53 Mb)
http://partners.xhamster.com/export/200.csv.gz (81.05 Mb)
2013-10-12
240x180 http://partners.xhamster.com/export/240.csv (663.53 Mb)
http://partners.xhamster.com/export/240.csv.gz (81.05 Mb)
2013-10-12
320x240 http://partners.xhamster.com/export/320.csv (663.53 Mb)
http://partners.xhamster.com/export/320.csv.gz (81.05 Mb)
2013-10-12
player 300 http://partners.xhamster.com/export/pl300.csv (683.61 Mb)
http://partners.xhamster.com/export/pl300.csv.gz (80.81 Mb)
2013-10-12
player 580 http://partners.xhamster.com/export/pl580.csv (683.61 Mb)
http://partners.xhamster.com/export/pl580.csv.gz (80.81 Mb)
2013-10-12
max size http://partners.xhamster.com/export/big.csv (643.44 Mb)
http://partners.xhamster.com/export/big.csv.gz (80.70 Mb)
2013-10-12
Deleted http://partners.xhamster.com/export/del.csv (61.18 Mb)
http://partners.xhamster.com/export/del.csv.gz (14.14 Mb)
2013-10-12
Deleted IDs http://partners.xhamster.com/export/del_id.csv (7.11 Mb)
http://partners.xhamster.com/export/del_id.csv.gz (1.97 Mb)
2013-10-12
     
     
     
     
     
     
     
     
     
     
     
Quote · 12 Oct 2013

I guess what I am asking is, is there a way to mass embed videos into dolphin using a .csv package?

Quote · 12 Oct 2013

CSV, comma separated values.

We need a few lines from the CSV file to see what data is present.  You will need to create a script and place it in a PHP block that will process the CSV file and generate the output needed.

Geeks, making the world a better place
Quote · 12 Oct 2013

Here is the link they gave me to the export file. This is for videos but it is a bunch of jpg urls? I am kind of lost.

http://partners.xhamster.com/2export.php?ch=.44&tcnt=10&url=off&dlm=%7C

Quote · 12 Oct 2013

Ok so here's a sample of export 

#THUMB|

http://et1.xhamster.com/t/841/3_2287841.jpg|

http://et1.xhamster.com/t/841/1_2287841.jpg|

http://et1.xhamster.com/t/841/2_2287841.jpg|

http://et1.xhamster.com/t/841/4_2287841.jpg|

http://et1.xhamster.com/t/841/5_2287841.jpg|

http://et1.xhamster.com/t/841/6_2287841.jpg|

http://et1.xhamster.com/t/841/7_2287841.jpg|

http://et1.xhamster.com/t/841/8_2287841.jpg|

http://et1.xhamster.com/t/841/9_2287841.jpg|

http://et1.xhamster.com/t/841/10_2287841.jpg|

Quote · 12 Oct 2013

Let's say you wanted to display those thumbs; I am seeing returns but I am guessing the returns are not really there.  That is a pipe (|) delimited list.  I would take that list and put it into an array(); that is easy to do with php.  Then you can address each element using a loop and generate an image tag for each one that would point to the URL of the thumb; adding css styling as well. 

The same principle would apply to a link to a video but of course the embed code is going to be more complex than a simple image tag.

Geeks, making the world a better place
Quote · 12 Oct 2013

 

Here is the link they gave me to the export file. This is for videos but it is a bunch of jpg urls? I am kind of lost.

http://partners.xhamster.com/2export.php?ch=.44&tcnt=10&url=off&dlm=%7C

That must be thumbs that can be used for the video thumbnail.  This is interesting and could be something that Dolphin sites can use for content.  Will look more into this later.

Geeks, making the world a better place
Quote · 12 Oct 2013

I don't have a website to join the partnership.  However on that page it stated:

Grab out thumbs, embed codes or RSS feeds

So you probably are not grabbing the embed codes you need for the videos.  Check again and see.  Once we have a delimited list of the embed codes, it should be easy to generate the code for Dolphin; exactly what will depend on how you want it displayed; for example, you want the Dolphin pagination for the block? 

Geeks, making the world a better place
Quote · 12 Oct 2013

Yes Dolphin pagination for the block. Ok I found out how to generate the video part of it. 

 

Now it looks more complete. here is the new link :

 

http://partners.xhamster.com/2export.php?ch=.44&tmb=6&tcnt=1&rt=4&url=on&em=2&ttl=on&dlm=%7C

 

The new example looks like this:

 

#EMBED|#THUMB|#URL|#TITLE|

<iframe width="640" height="480" src="http://xhamster.com/xembed.php?video=2287841" frameborder="0" scrolling="no"></iframe>|http://et1.xhamster.com/t/841/pl580/3_2287841.jpg|http://xhamster.com/movies/2287841/granny_milf_with_wrinkled_pussy_masturbating_on_cam.html|Granny MILF with wrinkled pussy masturbating on cam|

Quote · 12 Oct 2013

 

I don't have a website to join the partnership.

 You can probably just join and make something up for the website. They send a link for conformation in the email, but they don't look that closely. There are too many people that sign up for their program. They didn't even review my application. They just automatically accepted me.

Quote · 12 Oct 2013

You would want to create a multi-dimensional array from the dump file.

$Videos= array (

"Video1" => array ( "EMBED" => "embed code", "THUMB" => "thumb code", "URL" => "url code", "TITLE" => "title code" ),

"Video2" => array (  "EMBED" => "embed code", "THUMB" => "thumb code", "URL" => "url code", "TITLE" => "title code" ),

"Video3" => array (  "EMBED" => "embed code", "THUMB" => "thumb code", "URL" => "url code", "TITLE" => "title code" )

)

You would go through the pipe delimited list and covert it to an array containing the bits for each video.

What is your goal?  To create video albums from the list that are a part of your site?  Dolphin uses the uploader and a URL when it is adding a YouTube video to an album.

Geeks, making the world a better place
Quote · 12 Oct 2013

 

You would want to create a multi-dimensional array from the dump file.

$Videos= array (

"Video1" => array ( "EMBED" => "embed code", "THUMB" => "thumb code", "URL" => "url code", "TITLE" => "title code" ),

"Video2" => array (  "EMBED" => "embed code", "THUMB" => "thumb code", "URL" => "url code", "TITLE" => "title code" ),

"Video3" => array (  "EMBED" => "embed code", "THUMB" => "thumb code", "URL" => "url code", "TITLE" => "title code" )

)

You would go through the pipe delimited list and covert it to an array containing the bits for each video.

What is your goal?  To create video albums from the list that are a part of your site?  Dolphin uses the uploader and a URL when it is adding a YouTube video to an album.

 

I don't know how to do this but here is my guess. Do I use deanos tools to create a php block and put this code into the php block? Do I have to put all of this in by hand, each video, each thumb, etc.? Will this make it so the video is part of the dolphin system looking as if I uploaded them or would it be in it's own separate block displaying the videos, for example a block on the view video page under the video that is being viewed?

I just need a little clarity on what to do. Thank you for helping me with this geek_girl.

Quote · 13 Oct 2013

It is possible to create something with this.  You could create a page with the thumbnails displayed and when one clicks on the thumbnail it could open the video in a light-box or a pop-up HTML window.  Creating a Dolphin video album is going to be more difficult.

The thing is, this is going to take developing some code to do use the dump file.  I don't have a lot of time to devote to it at the moment and I don't know if anyone else is interested or not.  I could work on it in my spare time.  I think it is interesting and something that could be a potential source of revenue for those that pay for sharing their content on your site.

Geeks, making the world a better place
Quote · 13 Oct 2013

hey geek_girl no need to spend time on this. It would allow people to generate easy revenue without lifting a finger, but for me honestly may not be my primary method of income. they have other tools as well to help the webmaster. So don't worry but thanks! 

Quote · 13 Oct 2013

 

You could create a page with the thumbnails displayed and when one clicks on the thumbnail it could open the video in a light-box or a pop-up HTML window. 

 Now this seems interesting! How can I make photos and videos open in a light-box? or even a pop-up html window would be fine, I think. I just know the light box works great for other sights so people won't have to keep reloading the page every time they watch a new video. I would like this for members, videos, and photos. Here is the idea:

A user clicks on a member's thumbnail and the member's entire profile page opens up in a light-box. When the user clicks outside of the light-box, the light-box closes and the original page is shown again. All without leaving the original page. Can we do this for members, videos, and photos? This will also save time because people won't have to switch pages going back and forth. Sort of like how pinterest does it. A lot of modern websites do this now, even facebook does this.

Quote · 13 Oct 2013

The answer is yes.  Dolphin now ships with fancybox.  However, you can install any lightbox code on Dolphin.  You have to edit the templates so you can include the code to open the content, page, etc., in a light box.  I made some changes to the photo album thumbnail code and added a new lightbox code; not sure which one now, so that the photos can be viewed in a pop-up slideshow.  Makes it easier to view without having to go click on each one.  To leave a comment, I added the URL to the bottom of the thumbnail to go to the individual photo page.

I might work on the dump file thing because it is interesting.  I think I will have it using the fancybox code to have the video open in a lightbox to play.

Geeks, making the world a better place
Quote · 13 Oct 2013

Ok Cool. But so How do I use the fancy box to open videos, photos, and member profiles for the content that is already on my site? The normal content.

Quote · 13 Oct 2013

It involves editing the templates that adds the thumbnails and links.  I have only add it to the photo thumbnails (but not the thumbnails in the outline; they are generated by the wall module).  The browse photo page, the album view page with the thumbnails, recent photos on the home page, etc. 

The principle is the same for other content, fancybox will handle ajax, inline content, remote sites, etc.  There is a new fancybox but it has a license to use on commercial sites.  The old fancybox does not support slideshows so I used a different application for that.

If you go here: http://www.boonex.com/n/using-fancybox-for-photo-thumbnails-to-view-larger

You will see how I added it to photos so that clicking on the thumbnail opens the image in a lightbox.  Clicking on the URL under the photo will take you to the photo view page. I would have to look at the other modules.  For the profile links under the thumbnails, you just need to edit them to be able to open the page in fancybox.  I will look at this when I have time.

Geeks, making the world a better place
Quote · 13 Oct 2013

Thank You. I will try to utilize my brain to try to apply it to my site.

Quote · 14 Oct 2013

 

It involves editing the templates that adds the thumbnails and links.  I have only add it to the photo thumbnails (but not the thumbnails in the outline; they are generated by the wall module).  The browse photo page, the album view page with the thumbnails, recent photos on the home page, etc. 

The principle is the same for other content, fancybox will handle ajax, inline content, remote sites, etc.  There is a new fancybox but it has a license to use on commercial sites.  The old fancybox does not support slideshows so I used a different application for that.

If you go here: http://www.boonex.com/n/using-fancybox-for-photo-thumbnails-to-view-larger

You will see how I added it to photos so that clicking on the thumbnail opens the image in a lightbox.  Clicking on the URL under the photo will take you to the photo view page. I would have to look at the other modules.  For the profile links under the thumbnails, you just need to edit them to be able to open the page in fancybox.  I will look at this when I have time.

 I got the following message when clicking on the thumbnail after implementing the code:

The requested content cannot be loaded.
Please try again later.


And also, how to I do this with video and member profiles? My geek_girl friend?

Quote · 14 Oct 2013

The requested content cannot be loaded.
Please try again later.


This message is generated by Fancybox when it can not find the content.  I would check the template again.  By the way, always make backups of files so that you can revert easily.

I have not added it to videos.  I would have to spend some time working on that and at the moment I have other things I must attend to.

Geeks, making the world a better place
Quote · 14 Oct 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.