News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Amazon MP3

Started by hchute, December 05, 2008, 04:00:24 PM

Previous topic - Next topic

hchute

Link to Mod

This mod provides an Amazon MP3 button in your posting template. It converts selected text into an affiliate link that searches for that text in Amazon's MP3 store. 

Amazon allows and encourages these links that draw traffic to its site. The mod is designed to make it easy for your forum members to make clickable links in their posts when they reference an album title, song track, or artist.

If you are in Amazon's affiliate program, your affiliate code can be automatically embedded in the link, so that you get credit for any resulting purchases.

Screenshots:

Posting button:


Posting page (close-up):


Posting page:


How it's used:

When creating or modifying a post, your forum members can select text in that post and click on the Amazon MP3 button. The selected text will become a clickable link in the post. When visitors to your forum click on that link, a new browser page will open with the Amazon MP3 search page results for that string.

The mod also provides an easy way for your forum moderators to modifying existing posts to convert text to Amazon links.

After running the automatic install, copy the included amazonmp3.gif to your Themes/Default/Images/BBC folder. And, if you are part of Amazon's affiliate program, edit Subs.php in your Sources folder and replace the string "affiliate-id" with your affiliate ID assigned by Amazon.

Changelog:

1.0 - 11/28/08
- initial release
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hchute

#1
Hello all,

This is my second SMF mod, and is an Amazon-affiliate-link mod, similar to my first one.

One of the forums I run has a music slant to it, and I find that many posts include song names, names of artists, and album names. This mod allows forum members to select any of those, press a 'musical note' bbcode button, and the text becomes a link that searches Amazon's MP3 download store for that text.

My forum members have really taken to using it. They like the convenience of it and they encourage new members to use it as well. Everybody's use of it drives up my affiliate sales, so everybody wins with this mod.

It's a simple mod, to install and to use. Let me know if you have any questions or suggestions. And do let me know how well it works for you in your forums!

- Harvey

PS You may also be interested in other mods that build Amazon affiliate links. Here are the ones I've developed so far:


  • Amazon Search. Converts selected text to an affiliate link that searches Amazon's site for that text string.
  • Amazon DVD. Converts selected text to an affiliate link that searches Amazon's DVD store for that text string. The posting bbcode button is an image of a musical note. 
  • Amazon MP3. Converts selected text to an affiliate link that searches Amazon's MP3 download store for that text string. The posting bbcode button is an image of a musical note. 
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hchute

Thanks for the response; this has hit over 50 downloads in the past couple of days.

If you want to see the mod at work, you can view it at either of my gadget sites: http://www.kindleboards.com and http://www.zunerama.com.

Here's a screenshot of the Amazon MP3 bbcode button, and the bbcode that it adds to a post.

KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

bernholdt

Hi were exactly do i put m affiliate link ?

'content' => '<a href="hxxp:www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D15%26ref%255F%3Dnb%255Fss%255Fgw%26y%3D11%26field-keywords%3D$1%26url%3Dsearch-alias%253Ddigital-music&tag=affiliate-id-20&linkCode=ur2&camp=1789&creative=390957 [nonactive]" target="_BLANK">$1</a>',

hchute

replace the string "affiliate-id" with your affiliate ID. I've bolded it below. Just replace that text with your Amazon affiliate ID.

Quote from: bernholdt on December 07, 2008, 04:53:15 PM
'content' => '<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D15%26ref%255F%3Dnb%255Fss%255Fgw%26y%3D11%26field-keywords%3D$1%26url%3Dsearch-alias%253Ddigital-music&tag=affiliate-id-20&linkCode=ur2&camp=1789&creative=390957" target="_BLANK">$1</a>',
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

bernholdt

Got an error in the gallery after installing this any idea how to fix ??
Quote
8: Undefined index: amazonsearch_post
File: /root/Themes/Theme/Post.template.php (mgallery_form sub template - eval?)
Line: 785

hchute

#6
Check that your Modifications.english.php file was modified properly. (You'll find that file in your Themes > Default > Languages folder.)

It should have the following text string in it:
         $txt['amazonsearch_post'] = 'Amazon Search';]


(If you are using a default language other than English, you may have to make a similar change to the Modifications.XXXX.php file, where XXXX is your default language.)

A couple of questions that will help:

- Did you run the automatic install, or did you install it manually?
- What version of SMF are you running?
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

bernholdt

Quote from: hchute on December 09, 2008, 12:14:05 PM
Check that your Modifications.english.php file was modified properly. (You'll find that file in your Themes > Default > Languages folder.)

It should have the following text string in it:
         $txt['amazonsearch_post'] = 'Amazon Search';]


(If you are using a default language other than English, you may have to make a similar change to the Modifications.XXXX.php file, where XXXX is your default language.)

A couple of questions that will help:

- Did you run the automatic install, or did you install it manually?
- What version of SMF are you running?

I used the automatic installer
Version Information:
Forum version: SMF 1.1.7
Current SMF version: SMF 1.1.7


hchute

OK. You should be okay - it sounds like you may using a different languages file.

Are you not using English as your different language in your forum setup?

Check the Modifications.english.php file that I mentioned above, and see if it has that code in it.
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hchute

You may also be interested in other mods that build Amazon affiliate links. Here are the ones I've developed so far:


  • Amazon Search. Converts selected text to an affiliate link that searches Amazon's site for that text string.
  • Amazon DVD. Converts selected text to an affiliate link that searches Amazon's DVD store for that text string. The posting bbcode button is an image of a musical note. 
  • Amazon MP3. Converts selected text to an affiliate link that searches Amazon's MP3 download store for that text string. The posting bbcode button is an image of a musical note. 
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hchute

Update: I've updated the mod for compatibility with SMF 2.0 RC1, and SMF 1.1.8.

Existing users of the mod won't have to make any changes to keep using it. If you're upgrading SMF or newly installing the mod, this new version will ensure compatibility with the latest SMF versions.
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hchute

Update: Mod updated for compatibility with SMF 1.1.11, 1.1.10, and 1.1.9. Also for compatibility with SMF 2.0 RC1 and RC2.

Existing users of the mod won't have to make any changes to keep using it. If you're upgrading or newly installing SMF, use the newer version of this mod (v1.1).
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hartiberlin

Could this MOD please be updated to SMF 2.0RC5 ?

Many thanks.

Regards, Stefan.

hchute

Yes - will update it this weekend and will post in here when it's done.
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

hartiberlin

Any news on the update date ?

Many thanks.

Regards, Stefan.

hchute

The mod page has been updated to indicate that the mod is compatible with current 1.1.* and 2.* releases of SMF. Existing users of the mod should not have to change anything.
KBoards - (2.5M posts) | SMF mods for Amazon affiliates: - Amazon Search - Amazon DVD  - Amazon MP3

Arantor

Moved to the BBC category of mods.

Advertisement: