Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Removing URL from showing in PHP API feed.
Old 06-09-2010, 12:00 PM Removing URL from showing in PHP API feed.
keith115's Avatar
Super Talker

Posts: 105
Name: keith
Location: U.K
Trades: 0
Hi, i have been working on an API feed in PHP and it shows up the URL on mouseover, how can i remove this so it shows nothing or better still have the website URL before the new URL link ? if that makes sense

Thank you
__________________
FOR SALE >
Please login or register to view this content. Registration is FREE
< JOB LOT INC 20/MONTH MULTI SITE HOSTING PM IF INTERESTED

Please login or register to view this content. Registration is FREE
keith115 is offline
Reply With Quote
View Public Profile Visit keith115's homepage!
 
 
Register now for full access!
Old 06-09-2010, 01:42 PM Re: Removing URL from showing in PHP API feed.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well I'll go for an guess and say remove the title attribute in line 23 of the code.

Other than that, clairvoyancy has failed me and may need to actually see some code.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-09-2010, 03:47 PM Re: Removing URL from showing in PHP API feed.
keith115's Avatar
Super Talker

Posts: 105
Name: keith
Location: U.K
Trades: 0
Code needs cleaning up as im figuring things out and playing around but at moment it works for what i want , the URL is allowed to be hidden and all sites doing same are doing it, some with no URL showing and some with there own URL then link,

Hope this helps.
Code:
<?
$affiliateid = '******'; //Letters and numbers
$trackingid = '******'; //numbers only
function UrlSigner($urlDomain, $urlPath, $partner, $key){
            settype($urlDomain, 'String');
            settype($urlPath, 'String');
            settype($partner, 'String');
            settype($key, 'String');
            $URL_sig = "hash";
            $URL_ts = "timestamp";
            $URL_partner = "aid";
            $URLreturn = "";
            $URLtmp = "";
            $s = "";
            $time = time();
            $urlPath = str_replace(" ", "+", $urlPath);
            $URLtmp = $urlPath . "&" . $URL_partner . "=" . $partner  . "&" . $URL_ts . "=" . $time;
            $s = $urlPath . "&" . $URL_partner . "=" . $partner .  "&" . $URL_ts . "=" . $time . $key;
            $tokken = "";
            $tokken = base64_encode(pack('H*', md5($s)));
            $tokken = str_replace(array("+", "/", "="), array(".", "_",  "-"), $tokken);
            $URLreturn = $urlDomain . $URLtmp . "&" . $URL_sig . "="  . $tokken;
            return $URLreturn;
            }
$request =  simplexml_load_file(UrlSigner('http://uk.shoppingapis.kelkoo.com',  '/V2/productSearch?query=tv&show_products=1&show_subcategories=0&show_refinements=0&logicalType=and&start=1&results=&merchantId=',  $trackingid, $affiliateid));
?>
<!--
body,td,th {
    font-size: 10px;
}
-->


<table width="620"; cellpadding="0">
<? 
foreach ($request->Products->Product as $details) {
    $GridImage = $details->Offer->GridImage->Url;
    $Price = $details->Offer->Price;
    $Url = $details->Offer->Url; 
    $ProductName = $details->Offer->ProductName;
    $Summary = $details->Offer->Summary;
    $DeliveryCost = $details->Offer->DeliveryCost;

      echo '<tr><td width="130" valign="top"  style="border:0;"><a  href="http://clk.tradedoubler.com/click?p=3431&a=*********&url='.$Url.'"  target="_blank"><span style="center; color:#ffffff;  font-weight:;"><img src="'.$GridImage.'" style="text-align:  center; float:left; border:0; margin-left:10px; margin-right:10px;  margin-bottom:20px; margin-top:20px"  alt="'.$ProductName.'"title="'.$ProductName.'" height="130"  width="150"/> </td><td><a  href="http://clk.tradedoubler.com/click?p=3431&a=1640667&url='.$Url.'"  target="_blank"><style="text-align: center; float:left; border:0;  margin-left:10px; margin-bottom:50px">  <h3>'.$ProductName.'</h3><p>'.$Summary.'</p></a></td><td><a   href="http://clk.tradedoubler.com/click?p=3431&a=1640667&url='.$Url.'"  target="_blank"> <center><style="text-align: center;  float:left; border:0; margin-left:10px;  margin-bottom:50px"><h3>£'.$Price.' </h3>(P&amp;P:  £'.$DeliveryCost.')<p>More Info</p></a>
<!-- AddThis Button BEGIN --> <a class="addthis_button"  href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4b57caaa4af87277"><img  alt="Bookmark and Share" height="14"  src="http://s7.addthis.com/static/btn/sm-share-en.gif" style="border:  0pt none;" width="60" /></a>
<script  src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4b57caaa4af87277"  type="text/javascript"></script>
<!-- AddThis Button END -->
</center></td></tr>';}
    
//echo '<pre>';
//print_r($request);
//echo '</pre>';
?></td>
</tr>
</tbody>
</table>
__________________
FOR SALE >
Please login or register to view this content. Registration is FREE
< JOB LOT INC 20/MONTH MULTI SITE HOSTING PM IF INTERESTED

Please login or register to view this content. Registration is FREE
keith115 is offline
Reply With Quote
View Public Profile Visit keith115's homepage!
 
Old 06-09-2010, 04:51 PM Re: Removing URL from showing in PHP API feed.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Ok can't see anything there have you got one working and public?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-09-2010, 05:14 PM Re: Removing URL from showing in PHP API feed.
keith115's Avatar
Super Talker

Posts: 105
Name: keith
Location: U.K
Trades: 0
Hi Chris yes i have a few up at the moment, bit untidy till i clean it up and validate so i know things may not look right

CLICKY

Cheers
__________________
FOR SALE >
Please login or register to view this content. Registration is FREE
< JOB LOT INC 20/MONTH MULTI SITE HOSTING PM IF INTERESTED

Please login or register to view this content. Registration is FREE
keith115 is offline
Reply With Quote
View Public Profile Visit keith115's homepage!
 
Old 06-09-2010, 05:36 PM Re: Removing URL from showing in PHP API feed.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
only place I can see URLs appearing is in the status bar, which browsers now block from being changed.

Why not simply mask the links?
http://www.candsdesign.co.uk/article...filiate-links/

PHP Code
http://www.candsdesign.co.uk/article...nks/using-php/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-10-2010, 09:59 AM Re: Removing URL from showing in PHP API feed.
keith115's Avatar
Super Talker

Posts: 105
Name: keith
Location: U.K
Trades: 0
Thanks chris i will have a look at that.
__________________
FOR SALE >
Please login or register to view this content. Registration is FREE
< JOB LOT INC 20/MONTH MULTI SITE HOSTING PM IF INTERESTED

Please login or register to view this content. Registration is FREE
keith115 is offline
Reply With Quote
View Public Profile Visit keith115's homepage!
 
Reply     « Reply to Removing URL from showing in PHP API feed.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61910 seconds with 12 queries