Dictionary API
$250-750 USD
Paid on delivery
I need an expert in Javascript / Ajax / Php to fix a dictionary function on my website (former API was from Google but has been disabled)
It should be fixed by a new API (/ [login to view URL] or [login to view URL] or any other)
> Free API - no commercial use
> English
> Full coding / Installation (Joomla) / testing
should replace functionalities of following code:
/ set the language
$mainframe->initialise();
error_reporting(3);
$task = JRequest::getVar("task", null );
class ajaxDefinitions extends JObject{
function define(){
$user = & JFactory::getUser();
$db = & JFactory::getDBO();
$videoID = JRequest::getVar("videoID", null );
$order = JRequest::getVar('cc_order');
$word = JRequest::getVar('word');
$language = JRequest::getVar('language');
$userID = JRequest::getVar('userID');
if (isset($word))
{
$html = new simple_html_dom();
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, '[login to view URL]'.$language.'|'.$language.'&q='.$word.'&hl='.$language);
//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, JURI::base());
// $output contains the output string
$output = curl_exec($ch);
$html->load($output);
$replace = $html->find('div[class=dct-srch-rslt]');
$final = str_replace("<a ", "<a target='_blank' ", $replace[0] );
$final = str_replace("/dictionary", "[login to view URL]", $final );
$final = str_replace("<h3>Web definitions</h3>", "", $final );
if ($final != "")
{
ajaxDefinitions::_return($final);
}
else
ajaxDefinitions::_return("0");
}
else
ajaxDefinitions::_return("0");
}
Project ID: #1192668
About the project
Awarded to:
7 freelancers are bidding on average $309 for this job
I have hands on experience on web development,Virtualization-Storage domain,websites/CMS,products and social applications. I am also into testing QA for bugzilla and testopia tools.