vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Dynamic Amazon Links (https://vborg.vbsupport.ru/showthread.php?t=163393)

felxi 11-27-2007 05:55 AM

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

g00gl3r 11-29-2007 05:20 PM

Quote:

Originally Posted by djbaxter (Post 1389729)
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.

g00gl3r 11-29-2007 05:27 PM

Quote:

Originally Posted by djbaxter (Post 1388606)
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?

g00gl3r 11-29-2007 05:33 PM

Quote:

Originally Posted by djbaxter (Post 1388606)
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?

g00gl3r 11-29-2007 05:35 PM

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.

g00gl3r 11-29-2007 05:39 PM

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

felxi 11-30-2007 06:40 AM

it's working together with vbseo without any problemes. i gonna check it this evening.

pete_brady 12-04-2007 10:15 PM

working for .com (albeit without truncation of links) but can't get it going for .co.uk at all.

Vinyljunky 12-07-2007 09:22 AM

Quote:

Originally Posted by pete_brady (Post 1395111)
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

theinvisibleman 12-12-2007 06:48 PM

anyone had any joy with co.uk?


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (13)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete