![]() |
|
Mod Options |
![]() |
|||||||||
This modification is in the archives.
Description
This Hack will easily rewrite all amazon links whitin the posts to your associate id. You can add your amazon.de and amazon.com associate id, links to both amazon stores will be replaced with the right id, it works fine with multilanguage boards. vBulletin vB 3.6.x working vB 3.5.x working updating just upload the functions_amazon_links.php from the zip and don't forget to insert your amazon ids. Change Log 25/11/2007 v1.05 - support for [ url=xxx]yyy[ /url] - replacement for tag=xxx and ref=xxx in non asin links - small fix for /preview/ links 24/11/2007 v1.04 - [url]amazon-link[ /url] long amazon links will be shorten vb like 23/11/2007 v1.03 - [url] and [url="xxx"] will be repleaced Download Now Only licensed members can download files, Click Here for more information. Show Your Support
The following members like this post: markoroots
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Dynamically Create Amazon Links to use your associate id | amykhar | vBulletin 3.5 Add-ons | 71 | 05 Mar 2012 09:33 |
Comments |
#2
|
|||
|
|||
Thank you for taking this up. I've been trying to get the previous one to work, but unless the parsings perfect (in that it doesn't break in any scenario) then I'm reluctant to deploy it on my site.
downloading/testing. edit: It's not working for me. links are not getting processed at all. Looks like lower case [url] aren't processed. thanks arn No members have liked this post.
Last edited by weeno; 23 Nov 2007 at 02:24. |
#3
|
||||
|
||||
Great - but does it work with vbAnonymizer installed?
No members have liked this post.
|
#4
|
|||
|
|||
Originally Posted by weeno
@arn:![]()
i made a little update and tested it. now the script will also replace [url] and [url="xxx"] instead of [URL] and [URL="xxx"]. @redlabour: i'll test it this evening to get it working. Best regards, Felxi No members have liked this post.
|
#5
|
|||
|
|||
Originally Posted by felxi
The lowercase still isn't working for the [url="xxx"]![]()
example: [url="http://www.amazon.com/Logitech-970155-0403-V20-Notebook-Speakers/dp/B0009WKBGC"]these[/url] arn No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by weeno
It should work now, I updated the script. You can test your link-codes in the functions_amazon_links.php and run this php file direct:![]()
No members have liked this post.
Last edited by felxi; 23 Nov 2007 at 09:09. |
#7
|
|||
|
|||
Originally Posted by felxi
Thanks. appears to be working well. I'll test it more extensively when I have time this weekend. again, appreciate the effort.![]()
arn No members have liked this post.
|
#8
|
|||
|
|||
Seems to work dude, good job!
No members have liked this post.
|
#9
|
||||
|
||||
Great release. I assume this works with the 3.6-series?
No members have liked this post.
|
#10
|
|||
|
|||
Yea, running it on the latest 3.6.
No members have liked this post.
|
#11
|
||||
|
||||
/me clicks install
![]()
__________________
No members have liked this post.
|
#12
|
|||
|
|||
Another issue.
It seems that using this hack removes vbulletin's auto truncate feature in long urls. For example: Without the hack, long urls are shortened. Example: h_ttp://www.amazon.com/Microsoft-Offi...5878848&sr=8-1 Once you install the hack, the url ends up being very long, and not auto truncated. h_ttp://www.amazon.com/Microsoft-Office-2004-Student-Teacher/dp/B0001WN16M/ref=pd_bbs_1?ie=UTF8&s=software&qid=1195878848&sr=8-1 No members have liked this post.
Last edited by weeno; 24 Nov 2007 at 06:37. |
#14
|
|||
|
|||
Originally Posted by weeno
![]()
Hey weeno, thanks for the report. the truncate feature is now added to the script. In general the displayed link e.g. [url ] amazon-link [ /url] will get [url="new-amazon-link" ] amazon-link [ /url], so the displayed post-text isn't changed ![]() Greetz, felxi No members have liked this post.
|
#15
|
||||||||||||||||
|
||||||||||||||||
Wow!
I've tried a few of these before, both for vBulletin and WordPress. This is the first one that actually WORKS for me. Well done! ![]() I made a slight modification to the plug-in that might be useful to others... In functions_amaxzon_links.php, find at lines 6-7:
Since I don't have or need an amazon.de account but I do have another regional account, I changed this to:
Then find two instances of
at lines 17-18 and 42-43. Change to:
For other regional Amazons, use the appropriate regional extension instead of "ca".
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
Last edited by djbaxter; 24 Nov 2007 at 15:19. |
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:52.