• Sponsors


  • Modify Amazon Module (WP Robot Plugins) to add Custom Fields





    Wp Robot still the best autoblog plugins till now (to get more information about wp robot, read this article here). I ever try the other autoblog plugins, but no one can implemented as easy as wp robot. After chat with some friend, they also have same opinion with me.

    WP Robot plugins, easy to implement, but deadly!

    After Amazon module v.2 released, i have found something new. An interested add from Lunatic Studios to this module.

    What is that?

    Wp Robot Amazon module can add meta tag to our post automatically. This meta tags will shown as a new CUSTOM FIELDS inside our new post.

    Let me describe more about this.

    When we use some WordPress Premium Theme, sometimes we need to add new meta tags (inside custom fields) to add thumbnail, price, or other things that need to do to make those theme works perfectly.  Please see the image below for the example.

    Click to zoom

    In that theme, we need to add several custom fields key and value to make it works. It need to add “image” key, and fill its value with image url. It need to add “price” key, and the amount of $$$ (price) as value. If we don’t do this step, our layout will not as perfect as designed before. If we need to add this manually, then your site cannot called as Auto Blog, because it still need your touch.

    Actually, amazon module from wp robot can add this with ease, and of course it will be automatics. All we do is edit the amazon.php file inside module folder. Find this script below :

    Only registered member can view this content. Please Login or Register first.

    Want to rate this post? use this

    1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.60 out of 5)
    Loading ... Loading ...

    Author: cahyo on March 20, 2010
    Category: Tips
    Tags: , , , , , , , , , , , , , , , , , , , , , ,

    Facebook comments:

    18 responses to “Modify Amazon Module (WP Robot Plugins) to add Custom Fields”
    1. Gabriel says:

      I followed your step by adding above code in amazon.php but I donot find any new additional option. Do I miss any steps ? I use wprobot 2.01.

      Your advices is appreciated.

      [Reply]

      cahyo Reply:

      Hi Gabriel,

      Just remember that your modified code on amazon.php will affect on the next post.
      Just try to force the wp robot to post 1 amazon product, and see that post inside post edit.
      See the custom fields area, and you will find it there (effect of amazon.php change)

      If you still have problems, please let me know

      [Reply]

      Gabriel Reply:

      I got custom fields now in the post section. But I have no idea how to use. As product was already posed by wprobot. How this custom used for ? Such as price. How to post price ?

      By the way, Do you have any code method to have wprobot quote the pricelist , saveprice ? And how to code condition not to display when price is too low to display or unavailable.

      Much appreciated for your kindness.

      [Reply]

      cahyo Reply:

      How to use it is depend on your theme bro. Just in case if your theme need some customfieds to show thumbnail or price or etc.
      How to post price is using your amazon template (inside wp robot option). Just add {price}, then it will show the price of amazon products.

      According to wp robot founder, there is nothing we can do to show save price. Just curent price that will be show. Maybe Lunatic Studios will add it at their next update (i hope so). And about too low price, nothing we can do now.

    2. khalifah says:

      Hey…i use Studiopress Church Theme…

      i alter a little bit your code because what u give me is not working in this theme…i need to use thumb instead of ‘thumbnail’ …this is what i use:

      add_post_meta($insert, thumb, $thumbnailurl);

      the problem is…this theme required the thumbnail image to be save 1st in my domain directory…

      if i just point the value to the original thumb url, it’s not work…

      so my question is:

      1) how i want to grab the thumbnail image and save it into my directory automatically

      2) how to point that to that thumbnail location (in my own directory)

      anyway…your idea is brilliant…:-)

      [Reply]

      cahyo Reply:

      I’ve got lots of these trouble. Especially when the theme were using “thumb.php” to help to change the image size. If this problems happen, i will modify the theme. Modifying the theme with the special plugin called “get the image” (you can read about it in other post).

      I cannot solve your problems yet, because i do not have your theme that you describe above. If nly you can send me parts of your theme to analyze it. (please give me your web url also that using this theme)

      Answer 1 and 2 :
      I believe that some plugin out there will be able to capture image and save it in our own directory, but i still don’t know it (yet).

      Just little advice, i will not use this kind of plugins. This plugins works just like “the Thumb” plugins to capture image and save it inside our host. This will make trouble, especially when you have limited host space, because your file will multiply quicker just for this thumbnail.

      [Reply]

      khalifah Reply:

      This is my website url:

      lalakers [dot] hotzines [dot] com

      the thumbnail image appear when i add it manually…but if i must add it manually, that’s not the autoblog purpose right…

      so i tried follow your instruction and it add the thumb into the CUSTOM…i use “thumb” because this theme need that exact name…not “thumbnail” like u suggest…

      i don’t get any error but the the problem is the thumbnail not appear on autopost…the thumbnail space is replaced by the “post title”…so i get 2 post title there…

      i hope i can find the solution for this…however if there are any suggestion that i can make default thumbnail image base on category, so it’s also great…maybe we can create a random image selector for that…

      [Reply]

      cahyo Reply:

      maybe you can send me this theme?, or if you don’t want to do it,..just send me “index.php” or some “home.php” files.
      send it to autoblogtheme(at)gmail.com

    3. khalifah says:

      Theme have been sent to your gmail address…hope u can help me…i also install Get The Image plugin but dont know how to use it…it’s an advanced plugin for noob like me…lol!

      [Reply]

      cahyo Reply:

      i have a new post to help you with this studiopress church theme. See it here
      http://www.autoblogtheme.info/themes/change-studiopress-church-wordpress-theme-into-autoblog-theme.html

      [Reply]

    4. busy do Holandii ze Slupska says:

      I like your blog, is very good, but have you tried drupal platform, it’s even better

      [Reply]

    5. [...] Modify Amazon Module (WP Robot Plugins) to add Custom Fields [...]

    6. [...] for AutoBlog Theme visitor (khalifah) that leave comment in my previous post, he (i assume that this person is male) ask me how to make [...]

    7. [...] Modify Amazon Module (WP Robot Plugins) to add Custom Fields [...]

    8. dimasprast says:

      Hey bro, how can we change amazon’s URL for more SEO friendly like this blog
      www[.]videogamestopreviews[.]com

      [Reply]

      dimasprast Reply:

      The title contain on URL

      Bukmak!
      :D

      [Reply]

    9. coqui says:

      Hi Cahyo;

      Thank you for your tips. I”m currently working on implementing them on a new Thesis site. But I either did not understood your instructions about the custom code or my version does not have the section you are referring “// Custom Field”

      I’m currently using wprobot ver 3.56, and although I’ve looked through both my amazon, and youtube php modules I can’t locate the code you are showing here. Instead, what I do see is:
      $content = str_replace(array(“[has_listprice]“,”[/has_listprice]“), “”, $content);$asin = $item->ASIN;$content = str_replace(“{thumbnail}”, $thumbnail, $content);$content = str_replace(“{smallimage}”, $item->SmallImage->URL, $content); $content = str_replace(“{mediumimage}”, $item->MediumImage->URL, $content); $content = str_replace(“{largeimage}”, $item->LargeImage->URL, $content);
      One other question I have is about the way you protected this post. How did you do that? I have several guides in that I’m going to upload in this new site, and would love to protect them this way.
      I hope you can help me out on this. 

      [Reply]

      cahyo Reply:

      First, this post were write for WPR Ver 2.xx
      for ver 3.xx, see this post
      http://www.autoblogtheme.info/plugins/wp-robot-modification-tips.html
      http://www.autoblogtheme.info/plugins/wprobot-custom-fields-list.html

      To hide some post, use this plugin
      http://nguyenthanhcong.com/hidepost-plugin-for-wordpress/

      [Reply]

    Leave a Reply


    + 2 = 4

    Last articles