Slapyo
04-07-2007, 04:22 AM
I think it would be a great mod if we could have ebay links get converted to auctionads links.
<removed>
It would be fairly easy i think. I looked at the amazon code but couldn't figure out how to make it work with this.
Basically, you just url encode the ebay link and stick it on to the end of the auction ads link:
http://ads.auctionads.com/pagead/link_{accountcodehere}_{campaigncodehere}_http%3A//www.ebay.com/blah
Anyone wanna do this!?
I guess the problem would be having to weed out links to ebay images. That way those images would still show up, but any links to ebay pages would be converted when displayed in the posts.
I'm horrible with preg_match. But I would think that the code would do something similar to this.
Check for all instances of [ u r l=http://cgi.ebay.com/someitem]a link[/url] and change the url to the auctionads link.
Check for all instances of [ u r l]http://cgi.ebay.com/someitem[/url] and convert that into the following [ u r l=http://auctionadslink]original ebay link[/url]
None of this would be saved to the database, it would just be parsed out right before displaying.
<removed>
It would be fairly easy i think. I looked at the amazon code but couldn't figure out how to make it work with this.
Basically, you just url encode the ebay link and stick it on to the end of the auction ads link:
http://ads.auctionads.com/pagead/link_{accountcodehere}_{campaigncodehere}_http%3A//www.ebay.com/blah
Anyone wanna do this!?
I guess the problem would be having to weed out links to ebay images. That way those images would still show up, but any links to ebay pages would be converted when displayed in the posts.
I'm horrible with preg_match. But I would think that the code would do something similar to this.
Check for all instances of [ u r l=http://cgi.ebay.com/someitem]a link[/url] and change the url to the auctionads link.
Check for all instances of [ u r l]http://cgi.ebay.com/someitem[/url] and convert that into the following [ u r l=http://auctionadslink]original ebay link[/url]
None of this would be saved to the database, it would just be parsed out right before displaying.