Welcome! Log In Create A New Profile

Advanced

Any one have ideas to make SPHIDER Into a img search

Posted by Brittany 
Any one have ideas to make SPHIDER Into a img search
February 02, 2015 09:02PM
I would like to see if there is a way to make it into a full image search and show pictures or videos.. I found this script it is the one facebook uses when you put in a url . Why cant ir not be integrated to work.... A page of urls from a search result. can pull the picture i would think. and show them in the search results page.

ANY IDEAS TO MAKE THIS WORK in Sphider ?

Scripts

//
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
<script src='js/linkPreview.js' ></script>
<!--
If you are saving and fetching results from database using FLP, you can customize the layout on this script
-->
<script src='js/linkPreviewRetrieve.js' ></script>




• Stylesheets

//
<!--
This stylesheet is provides the layout of Facebook’s former textarea. You can totally customize this!
-->
<link rel="stylesheet" type="text/css" href="css/linkPreview.css" />





3 • Configuration
Just create your own textarea (or multiple textareas) and bind it to jQuery like this:

//
<script>
$(document).ready(function() {
$('#lp1').linkPreview();
// changing placeholder
$('#lp2').linkPreview({placeholder: "Second Field"});
// bind to a tag the results brought from database
$('#retrieveFromDatabase').linkPreviewRetrieve();
});
</script>



Result Format

{
"title":"title",
"url":"original url",
"pageUrl":"page url",
"canonicalUrl":"cannonical url",
"description":"description",
"images": "img1|img2|...",
"video":"yes|no",
"videoIframe":"video iframe if it is video"
}



script from http://lab.leocardz.com/facebook-link-preview-php--jquery/


Please post your ideas to make this scrip work
Sorry, only registered users may post in this forum.

Click here to login