Fetch all links and their images from HTML page
[login to view URL]
^ A lot/most of the functions you can get from there. Not all required files (fe [login to view URL]) or linked, you have to find them like this:
[login to view URL]
- No form submit like in this example, instead fetch all images from $url = "URL" right away, without a form or pressing Submit.
foreach($this->document->getElementsByTagName('a') as $link) {
foreach($link->getElementsByTagName('img') as $image) {
...
- Drop links which images are smaller than 100 x 100.
Scale down pictures which are bigger than 450 x 600.
Rest shouldn't be scaled down.
Drop pictures that are ads!! Drop header/background images!!
- Make links absolute. (If fetched link is "/gallery/[login to view URL]" then make it
"[login to view URL]":
self::make_absolute($image->getAttribute('src'), $this->base)
- If link contains "[login to view URL]" or "url=", then strip it down to what follows after that:
if (strpos($url,'[login to view URL]') !== false) {
$url = explode('[login to view URL]', $url);
$url = $url[1];
- If link == "#", then get URL from onClick action.
< a href="#" onclick(javascript:openGallery("/[login to view URL]")
$url should be "[login to view URL]" and not "#".
- So in [login to view URL] there's gonna be all the pictures of the URL. When you click on one of those, it opens [login to view URL] which does the same as [login to view URL], with the given link!
Load up all links+images of link (fe "[login to view URL]") in gallery.php.
- In [login to view URL] there's pictures again, they point to "[login to view URL]" or "[login to view URL]". If it points to jpg then display that file in a lightbox!!
If it points to [login to view URL], then do this: Fetch the biggest image file of [login to view URL], then display that in a lightbox. You will find several images in [login to view URL], the biggest one is the one I want displayed in a lightbox.
Also fetch biggest image from previous and next link!!! Or all of them already, maybe.
Lightbox should have a next/previous function.
- An [login to view URL]://[login to view URL] link will often not redirect to [login to view URL], but to anothersite.com. I need you to check if the destination is infact [login to view URL], and not anothersite.com. I want the images from test.com. Fetch link again until the content is from link.com.
This feature/check is very important.
- Clean php and javascript files.
- Compability with all current browsers!!
- Project has to be finished by:
19th Feb, 1pm EST. That's 11:30pm Indian Time?
By then you have to send me all files.
- Please ask all questions you have right away, so you can get started ASAP.
- I will be requiring some more work on this project, but this is it at first! You get paid again for the new tasks, example: Handling hotlinking problems: download pictures to my server). But this shouldnt concern you at the moment.
- THIS IS NOT A FULL WEBSITE I AM ASKING FOR HERE, ONLY FEW PHP AND JS FILES! Nevermind the html, css, etc.
Highly experience programmer and designer are here. We provide you quality work on time according to your requirement with 100% satisfaction. Please see pmb for more detail.
Thanks.
I have an experience of more than five years .I understand your requirement , i have all the skills that you need on this project and completed around more than 30 projects alone from scratch , please look after my portfolio to understand my work.
You can fully trust us on this project .We will ensure you that project completed at your specification .
Hi, I am a senior web developer with expertise in PHP. I believe that I am the best fit for your project. Please let me know if you want me to join this project. Thanks.