vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Kindle Daily Deal Grabber by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=280597)

Mr_Running 12-22-2012 10:12 AM

Have been testing it for a little over a week and I just wanted to provide an update.
The postings for me seem to be later and later each passing day.
I love the mod but have uninstalled it on my site because I feel the kindle book topics really don't work for my forum but mod is marked installed as I may re-visit it again and may continue testing. :)

BirdOPrey5 12-22-2012 11:51 AM

Updated to version 2.1.2 due to changes in Amazon USA daily deal formatting. Amazon also removed the titles of the deal books from the page.

The title will now show something like "Romance Daily Deal" or "Teens Daily Deal", etc...

If updating (USA ONLY) please change the post template setting to:

Code:

[B][SIZE=3]Kindle Daily Deal for {DATE}[/SIZE][/B]

[B][I][URL="{LINK}"]{TITLE}[/URL][/I][/B]

[URL="{LINK}"][img]https://vborg.vbsupport.ru/[/img][/URL]

[B]About:[/B] {SHORTDESC}

[B]Deal Price: {DEALPRICE}[/B] (Today Only) ({DISCOUNT} Off)

[B][SIZE=3]Other Deal[/SIZE][/B]

[B][I][URL="{LINK}"]{ALT_TITLE}[/URL][/I][/B]

[URL="{LINK}"][img]https://vborg.vbsupport.ru/[/img][/URL]

[B]About:[/B] {ALT_SHORTDESC}

[B]Deal Price: {ALT_DEALPRICE}[/B] (Today Only) ({ALT_DISCOUNT} Off)


[B][URL="{LINK}"]View More Deals Now[/URL][/B] or [URL="{ALINK}"]Browse Amazon.com[/URL].

UK and German Amazon users do not need to upgrade.

Cla75 12-22-2012 04:11 PM

Good Mod, but
is not possible for italian version ?
www.amazon.it

thanks for support

BirdOPrey5 12-26-2012 11:18 AM

Updated to version 2.1.3 which fixes the price issue for Amazon USA. No update needed for Amazon UK or Germany.

Amazon changed the wording from "Today's Price" to "Deal Price" had to update the code.

Quote:

Originally Posted by Cla75 (Post 2392243)
Good Mod, but
is not possible for italian version ?
www.amazon.it

thanks for support

I can do Italy, or any other Amazon site if you can give me the link to the Daily Deal page.

For Amazon USA it's: http://www.amazon.com/gp/feature.htm...cId=1000677541

I could only find for UK and Germany while searching, I'm not sure every country has daily deals.

Nirjonadda 12-27-2012 12:57 PM

1 Attachment(s)
Bug on Thread / Post Title? How to fix on this issue?

Attachment 143041

BirdOPrey5 12-29-2012 07:35 PM

Do not use {SHORTDESC} in Thread / Post Title in settings.

Nirjonadda 12-29-2012 07:45 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2393438)
Do not use {SHORTDESC} in Thread / Post Title in settings.

But Bug on Product Details,How to fix on this issue ?

About:

Attachment 143063

Attachment 143064

BadgerDog 01-08-2013 11:18 AM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2392800)
Updated to version 2.1.3 which fixes the price issue for Amazon USA. No update needed for Amazon UK or Germany.

Amazon changed the wording from "Today's Price" to "Deal Price" had to update the code.

Hi .. :)

I updated but it doesn't seem to be showing the prices any longer for me? (see pic)

Thanks ...

Regards,
Doug

glen290 01-11-2013 03:04 PM

Same here, not getting any prices showing either.

Also get this error if I enable VBCredits.

Fatal error: Call to a member function escape_string() on a non-object in /home/tenpinfo/public_html/take5/dbtech/credits/credits_core.php on line 568

BirdOPrey5 01-12-2013 02:02 PM

Yeah prices changed, will need an update.

The vbcredits error isn't related to this mod, this mod has no plugins so it can't interfere with anything.

BirdOPrey5 01-12-2013 02:03 PM

Quote:

Originally Posted by Nirjonadda (Post 2393445)
But Bug on Product Details,How to fix on this issue ?

About:

Attachment 143063

Attachment 143064

Is it working now? Some days there will be missing info, it can't be perfect because Amazon is always changing.

If you still get the problem, which amazon site are you using? COM, UK, or DE?

Nirjonadda 01-12-2013 05:10 PM

I am using com(USA) , Does not fixed info.

glen290 01-14-2013 02:13 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2396447)
Yeah prices changed, will need an update.

The vbcredits error isn't related to this mod, this mod has no plugins so it can't interfere with anything.

I only get the error when vbcredits is enabled and i try to run the cron job..

BirdOPrey5 01-14-2013 04:49 PM

Updated to version 2,1.4 - fixes prices on Amazon USA.

Quote:

Originally Posted by glen290 (Post 2396791)
I only get the error when vbcredits is enabled and i try to run the cron job..

The error:

Code:

Fatal error: Call to a member function escape_string() on a non-object in /home/tenpinfo/public_html/take5/dbtech/credits/credits_core.php on line 568
is being generated from credits_core.php in the dbtech directory- I have no idea why vb credits would even attempt to run... Hmmm...

I'll bet it's running because the new thread is being created and it's set to run on thread creation... I'm using the vBulletin data manager to create the thread which as far as I know is the correct way of doing it. I don't like passing the buck but it really looks like the issue is with VB Credits mod.

BadgerDog 01-24-2013 12:54 PM

Uninstalled....

Results unpredictable ...

Thanks for the effort ... :)

Regards,
Doug

BirdOPrey5 01-31-2013 08:32 PM

Indeed the nature of the beast it will be unpredictable... today it picked up a second image of the romance daily deal for some reason.

No way to know how Amazon is going to format their pages before they do- it's just better than nothing, but far from perfect.

inphoenix 03-02-2013 09:04 PM

I get this error when I run the cron job. No new thread is created.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/dbtech/credits/credits_vbulletin.php on line 405

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/dbtech/credits/credits_vbulletin.php on line 405

Go Back

DEBUG INFO-------------------

Daily Deal URL: http://www.amazon.com/gp/feature.htm...cId=1000677541

VB Version >= 4.1.4 (4.1.5)

VB Version >= 4.1.4 (4.1.5)
Amazon Link: http://www.amazon.com/?tag=tablsuppforu-20
Big Img URL: http://ecx.images-amazon.com/images/I/51Y2%2BTZx4FL.jpg
Small Img URL: http://ecx.images-amazon.com/images/...4FL._SL110.jpg
Title: Kindle Daily Deal
Deal URL: http://www.amazon.com/gp/feature.htm...ablsuppforu-20
Percent Off: %
Today's Price: $1.99
Date: 03-02-2013
Final Title: Kindle Daily Deal for 03-02-2013Kindle Daily Dealhttps://vborg.vbsupport.ru/external/2013/03/31.jpgAbout: Welcome to Deck Z, where 2,200 passengers are trapped aboard the doomed Titanic, on an icy Atlantic... with the walking dead.Deal Price: $1.99 (Today Only) (% Off)View Deals Now or Browse Amazon.com.

New Post Successful!

BirdOPrey5 03-03-2013 12:33 PM

It's a conflict with dbtech's credits mod. You'll have to talk to them or disable this mod- but this mod is coded correctly.

inphoenix 03-04-2013 01:21 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2407588)
It's a conflict with dbtech's credits mod. You'll have to talk to them or disable this mod- but this mod is coded correctly.

I disabled the credit mod and the Kindle Daily deal works now. Just for kicks, I decided to enable the credits mod and this still works with this warning.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/dbtech/credits/credits_vbulletin.php on line 405


Thanks for this mod. It does exactly what I wanted it to do.

A suggestion -> Would it be possible to create a mod where we provide the ASIN number (with some tag) and it would go and fetch (from Amazon) the price, star rating, pic and a small description in a post?

BirdOPrey5 03-04-2013 11:33 AM

Thanks for update. Please "Mark as Installed" if you are going to keep using this.

Your mod idea is intriguing. Usually 'content scrapping' in unethical, but like this mod it ultimately will only help Amazon sales I don't see that being a problem.

I will put some thought into this and announce here if I make something.

inphoenix 03-13-2013 05:26 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2313927)
Amazon App of The Day is best done via the RSS Feed: http://geekexile.com/amazon_rss.php

No need to re-invent the wheel, it will do basically the same as this.

This RSS feed does not allow to add our affiliate tag to the download link. Your Kindle daily deal mod allows that. If you can create a similar mod for the app of the day (and allow to add our affiliate tag) that would be awesome!!

tareqbd 03-14-2013 04:09 PM

Code:

Kindle Daily Deal Grabber by BOP5

Fatal error: Call to a member function escape_string() on a non-object in /home/***********/public_html/dbtech/credits/credits_core.php on line 640

When I try to run "Cron Job" above error comes. Please fix.

tareqbd 04-09-2013 01:47 PM

Quote:

Originally Posted by tareqbd (Post 2409960)
Code:

Kindle Daily Deal Grabber by BOP5

Fatal error: Call to a member function escape_string() on a non-object in /home/***********/public_html/dbtech/credits/credits_core.php on line 640

When I try to run "Cron Job" above error comes. Please fix.

Bump!

BirdOPrey5 04-13-2013 06:10 PM

It's a problem from dbtech's credits mod, not this one.

ATN 04-28-2013 10:40 PM

Hi, fantastic idea for a mod, but I'm having a problem with actually populating the post.

The post is being generated, and I've changed the template to the suggested UK style (I'm using amazon.co.uk

I've also tried pulling from the US site and get no info from there either.

I'm getting the following on the actual post;

Kindle Daily Deal for 29-04-2013

Kindle Daily Deal

https://vborg.vbsupport.ru/

about:

Deal Price: ?. (Today Only) (% Off)

Deal # 2

Other Daily Deal

https://vborg.vbsupport.ru/

about:

Deal Price: ?. (Today Only) (% Off)


View All Deals Now or Browse Amazon.uk.

ATN 04-30-2013 09:45 AM

Any pointers as to what it is I'm missing?

jpbryan 04-30-2013 10:51 PM

1 Attachment(s)
I am having a similar problem as ATN (above)..

Please see screen shots and tell me what I have done wrong..

Thanks for the mod and your help...

ATN 05-04-2013 11:28 AM

Still looking for any pointers that anyone can give me on this add-on.

Thanks

BirdOPrey5 05-04-2013 08:27 PM

I can't tell much from the screenshots and explanations - jpbryan I can see you have BBCode in your subject//title, that won't work but it shouldn't be breaking anything else.

I confirmed it is still working on my 2 forums without issue so not sure why it wouldn't be picking up.

If you want to PM me admin access to your forums I will take a look but I can't promise how quickly that will happen.

ATN 05-04-2013 08:37 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2419971)
I can't tell much from the screenshots and explanations - jpbryan I can see you have BBCode in your subject//title, that won't work but it shouldn't be breaking anything else.

I confirmed it is still working on my 2 forums without issue so not sure why it wouldn't be picking up.

If you want to PM me admin access to your forums I will take a look but I can't promise how quickly that will happen.

I know it's something I'm doing, I saw how well it works on your page :)

I'll sort out the access tonight and PM it over to you later.

pelican 06-01-2013 05:16 AM

is it possible to somehow modify it so that i can put it in one of the ad location instead of posting it.

BirdOPrey5 06-01-2013 09:40 AM

I wouldn't call it modified at that point, it would basically be at least 50% new code.

You could use the code that scrapes the info from the pages but after that I would imagine instead of using the vBulletin functions to create a new post you'd need to write a custom .html file and then use that as an <iframe> ad in an ad location template.

It's not a bad idea... Never thought of using them in an ad. I'm not sure when I would get a chance to work on it though, will definitely post back if/when I add the option.

What size ad were you considering?

Toorak Times 06-02-2013 11:16 AM

Does it work for aus BOP?

BirdOPrey5 06-02-2013 11:23 AM

I could only find daily deals for US, GB, and DE. If you know the link for an Australian daily deal please post it here and I'll try to add it.

cykelmyggen 09-26-2014 01:40 PM

Hi
This mod stopped working sometime in 2012 and I tried to make it work at that time with no succes. I would like to have this working on my new design, so I tried to uninstall/install the mod and run the cron job manually. The message from the cron job is that it ran succesfully, but no posts are showing in the assigned forum.
Any help would be appreciated.
http://www.bookeater.dk/vbforum/kindle-daily-deal/

BirdOPrey5 09-26-2014 05:50 PM

Which amazon site are you pulling from? It's actually still working for me, puling from amazon.com. There is a little HTML code displayed but generally it works.

cykelmyggen 09-27-2014 05:42 AM

I'm using Amazon.com as well.

BirdOPrey5 09-27-2014 10:53 AM

I just installed this on a VB4 test site, virtually stock, and it works- at least when I run the cron job manually from the mod settings- if you run it manually from the settings page does it work for you?

I'm using this as the code for the post template:
Code:

[B][SIZE=3]Kindle Daily Deal for {DATE}[/SIZE][/B]

[B][I][URL="{LINK}"]{TITLE}[/URL][/I][/B]

[URL="{LINK}"][img]https://vborg.vbsupport.ru/[/img][/URL]

[B]About:[/B] {SHORTDESC}

[B]Deal Price: {DEALPRICE}[/B] (Today Only)

[B][SIZE=3]Other Deal[/SIZE][/B]

[B][I][URL="{LINK}"]{ALT_TITLE}[/URL][/I][/B]

[URL="{LINK}"][img]https://vborg.vbsupport.ru/[/img][/URL]

[B]About:[/B] {ALT_SHORTDESC}

[B]Deal Price: {ALT_DEALPRICE}[/B] (Today Only)


[B][URL="{LINK}"]View More Deals Now[/URL][/B] or [URL="{ALINK}"]Browse Amazon.com[/URL].


Also - What PHP version is on your server?

cykelmyggen 10-20-2014 03:17 AM

Using PHP Version 5.3.10-1ubuntu3.13

Code for template:
Code:

*Kindle Daily Deal for {DATE}*

*{TITLE} (http://{LINK})*

[IMG]{SMALLIMG}[/IMG] (http://{LINK})

*about_:* {SHORTDESC}

*Deal Price: {DEALPRICE}* (Today Only)

*Other Deal*

*{ALT_TITLE} (http://{LINK})*

[IMG]{ALT_SMALLIMG}[/IMG] (http://{LINK})

*about_:* {ALT_SHORTDESC}

*Deal Price: {ALT_DEALPRICE}* (Today Only)


*View More Deals Now (http://{LINK})* or Browse Amazon.com (http://{ALINK}).


cykelmyggen 10-20-2014 03:20 AM

Tried your template and gets the same message:

Code:

Kindle Daily Deal Grabber by BOP5


Go Back

DEBUG INFO-------------------

Daily Deal URL: http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000677541

VB Version >= 4.1.4 (4.2.2)

VB Version >= 4.1.4 (4.2.2)
Amazon Link: http://www.amazon.com/?tag=wwwboggnasker-20
Big Img URL: http://ecx.images-amazon.com/images/I/51h91cFSI7L.jpg
Small Img URL: http://ecx.images-amazon.com/images/I/51h91cFSI7L._SL110.jpg
Title: The Kindle Daily Deal
Deal URL: http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000677541&tag=wwwboggnasker-20
Percent Off: %
Today's Price:
Date: 20th October 2014
Final Title: Kindle Daily Deal for 20th October 2014The Kindle Daily Dealhttps://vborg.vbsupport.ru/external/2014/10/8.jpgAbout: by Jan-Philipp Sendker Customer review: "If you are an Amy Tan fan or you enjoyed The Bridges of Madison County or Memoirs of a Geisha, then you will love this book! So powerful and moving, it will touch your heart."Deal Price: (Today Only) (% Off)View Deals Now or Browse Amazon.com.

New Post Successful!

F?rdig

However the post doesn't show up at the selected forum


All times are GMT. The time now is 10:12 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.01520 seconds
  • Memory Usage 1,844KB
  • 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
  • (7)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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