• Resolved dcroxton

    (@dcroxton)


    First of all, this is a really nice plugin, it almost does exactly what I need. What I’d really like to achieve, as the title indicates, is to have a random quote appear that doesn’t get auto-refreshed *and* doesn’t have a “next quote” button. I am a developer, so I thought this wouldn’t be too hard for me to fix in my own version rather than bothering you about it, even though I don’t really know php and (more importantly) I have no idea of how WordPress works.

    So far, I have commented out lines 107-117 in random-quote.php, where it looks to me like it adds the button. I changed line 60 of quotes-collection.js to
    if(args.ajaxRefresh && !args.autoRefresh && 1==2)
    so it would never add the button. As a result of these changes (and maybe one or two more minor ones that I’m overlooking), I don’t see the button in the widget (which totally doesn’t matter to me). I still see it on the quote, but if I click on it, the next quote doesn’t have it. So apparently there is somewhere that the button is created on the initial page that I am overlooking, but I can’t figure out where. If you could point me in the right direction, I would appreciate it.

    Derek

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Srini G

    (@srinig)

    Instead of using the “Random Quote” block, use the “Quotes” block, set ‘Limit’ to 1 in the Content Settings, and choose ‘Random’ for ‘Order by’ in Sorting. Hope that helps.

    Thread Starter dcroxton

    (@dcroxton)

    Thank you, this is exactly what I needed. It did not occur to me that “random quote” would not be the right widget to get a random quote. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No auto refresh + no “next quote” button’ is closed to new replies.