Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Dynamic Amazon Links Details »»
Dynamic Amazon Links
Version: 1.05, by felxi felxi is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 11-21-2007 Last Update: 11-24-2007 Installs: 92
Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
markoroots

Comments
  #22  
Old 11-27-2007, 05:55 AM
felxi felxi is offline
 
Join Date: Jun 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey wenno,

I think the best conversion you can get is using ref=nosim, because the link will be a direct product link in this case.

Greets,
Felxi
Reply With Quote
  #23  
Old 11-29-2007, 05:20 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
This is a serious question, not a flame: What is the purpose of a post like this? It seems to me it's more a non-post.
Just saying I've reserved it for use on a forum in the future as I have no need for it currently. As the "mark if installed" feature promotes the trusted and used mods, I wanted to show I'd trust and use this mod.... but I haven't yet so haven't marked as installed.

I think you'll find many members do such a thing.
Reply With Quote
  #24  
Old 11-29-2007, 05:27 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
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:

Code:
	/*
	 * your partnernet ids
	 */
	$associate_id_de = 'xxxxxxxxx'; // or leave empty
	$associate_id_com = 'xxxxxxxxxxx'; // or leave empty
Since I don't have or need an amazon.de account but I do have another regional account, I changed this to:

Code:
	/*
	 * your partnernet ids
	 */
	$associate_id_de = ''; // or leave empty
	$associate_id_com = 'xxxxxxxxxxx'; // or leave empty 
	$associate_id_ca = 'xxxxxxxxxxx'; // or leave empty
Then find two instances of

Code:
amazon.(de|com)
at lines 17-18 and 42-43. Change to:

Code:
amazon.(ca|com)
For other regional Amazons, use the appropriate regional extension instead of "ca".
How would I get .co.uk work with this? Would
Code:
amazon.(ca|com)
become
Code:
amazon.(co.uk|com)
etc?
Reply With Quote
  #25  
Old 11-29-2007, 05:33 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
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:

Code:
	/*
	 * your partnernet ids
	 */
	$associate_id_de = 'xxxxxxxxx'; // or leave empty
	$associate_id_com = 'xxxxxxxxxxx'; // or leave empty
Since I don't have or need an amazon.de account but I do have another regional account, I changed this to:

Code:
	/*
	 * your partnernet ids
	 */
	$associate_id_de = ''; // or leave empty
	$associate_id_com = 'xxxxxxxxxxx'; // or leave empty 
	$associate_id_ca = 'xxxxxxxxxxx'; // or leave empty
Then find two instances of

Code:
amazon.(de|com)
at lines 17-18 and 42-43. Change to:

Code:
amazon.(ca|com)
For other regional Amazons, use the appropriate regional extension instead of "ca".
How would I get .co.uk work with this? Would
Code:
amazon.(ca|com)
become
Code:
amazon.(co.uk|com)
etc?
Reply With Quote
  #26  
Old 11-29-2007, 05:35 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems this mod isn't compatible with the vbanonymizer or vbseo or something lol. When I installed it - it stopped my viewtopic pages from being displayed.

uninstalled.
Reply With Quote
  #27  
Old 11-29-2007, 05:39 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm guessing it's this line I'd have to edit to get it to work....
Code:
 	if(preg_match_all("/\[url\=(?:\")?(http:\/\/(?:[A-z0-9\.]+)?amazon\.(de|com|ca|co.uk)\/(?:.+))(?:\")?](.+)\[\/url\]/iU", $text, $out)) {
But what would I change it to? it's this that I have:https://vborg.vbsupport.ru/showthread.php?t=131292
Reply With Quote
  #28  
Old 11-30-2007, 06:40 AM
felxi felxi is offline
 
Join Date: Jun 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's working together with vbseo without any problemes. i gonna check it this evening.
Reply With Quote
  #29  
Old 12-04-2007, 10:15 PM
pete_brady pete_brady is offline
 
Join Date: Mar 2002
Location: Dublin
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working for .com (albeit without truncation of links) but can't get it going for .co.uk at all.
Reply With Quote
  #30  
Old 12-07-2007, 09:22 AM
Vinyljunky's Avatar
Vinyljunky Vinyljunky is offline
 
Join Date: Feb 2007
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pete_brady View Post
working for .com (albeit without truncation of links) but can't get it going for .co.uk at all.

Does anybody use this with VBSEO?

I also need it for .co.uk

VinylJunky
Reply With Quote
  #31  
Old 12-12-2007, 06:48 PM
theinvisibleman theinvisibleman is offline
 
Join Date: Mar 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone had any joy with co.uk?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06097 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (13)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete