The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
convert ebay links to auctionads links
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: Code:
http://ads.auctionads.com/pagead/link_{accountcodehere}_{campaigncodehere}_http%3A//www.ebay.com/blah 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. |
#2
|
||||
|
||||
I might do this if I release my eBay affiliate link code.
|
#3
|
|||
|
|||
i have some code already with the regex but i ran into a problem. i have 3 patterns.
Code:
1 - matches [.url.]http://cgi.ebay.com/blah[./url.] 2 - matches [.url=http://cgi.ebay.com/blah]link[./url.] 3 - matches http://cgi.ebay.com/blah i never really got into regular expressions at all, this is all new to me. that would be great if you could do this one. you can find out how auctionads writes its urls if you go to the site, make an account and go to the url converter page. |
#4
|
||||
|
||||
I've released my eBay Affiliate code. I'll work out how these URL's work and make another hack for AuctionAds.
|
#5
|
|||
|
|||
Great! Thank you very much!
|
#6
|
||||
|
||||
Can you PM me a working auctionads link?
Thanks, Dismounted |
#7
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=144468" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=144468</a>
|
#8
|
|||
|
|||
Now that was fast.
|
#9
|
|||
|
|||
thanks dismounted
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|