Binary Quote of the Day

by 2Plus2 Partners, Inc
Binary Quote of the Day preview




Works with:
7.0, 8.0, 8.1, 8.2, 9.0

Web site,-Inc


Binary Quote of the Day shows a different quote from the quote custom table each day.


Default template shows the quote in binary format with a decode option, but can be customized for display as the admin sees fit using available tokens.


Daniela Kubikova commented on

Hi Kim,

I think the quote should be changed every day. I have explored the code a little and it seems that on every page load the query GET_RANDOM_QUOTE is executed (you can find it in Custom tables app -> edit nPlus Quote table -> Queries tab). If there already is a quote with "LastUsedDate" field set to current date in the custom table, this quote is displayed in the web part. Otherwise, some other quote is selected using following condition: DATEDIFF(dd, LastUsedDate, @CurrentDate) < 30 OR LastUsedDate IS NULL. So I would recommend to create less that 30 quotes or, if you have more of them, increase the number in the query to ensure that all quotes will be displayed.

But I fully agree that it would be great to have some documentation for this.

Kim Driggers commented on

There should be more documentation on how to customize this web part. Imported this to my development site. Added the web part. Added additional quotes but only the original quote displayed.

Nothing in the documentation gives you any indication as to how to set the number of quotes. Web part will only display one quote.

Leave message
Your rating: