WordPress.org

Forums

Cookie Law Info
[resolved] Cookie table lists only 10 entries? (9 posts)

  1. andyjuki
    Member
    Posted 2 years ago #

    Hi, I have around 12 cookie entries, but the smartcode table only shows 10 on my privacy page, with no 'next' link...feel like I'm missing something obvious, any thoughts appreciated, thanks!

    http://wordpress.org/extend/plugins/cookie-law-info/

  2. Ian McLeish
    Member
    Posted 2 years ago #

    Hi, same issue here. I also (THINK) I found that the Google cookies won't display if named for example _utma calling them "Google _utma" sorted that one out. Could that perhaps be a reason you are missing a couple??
    I am missing 9 from my list, so if you find anything let me know!

  3. richardashby
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Just taken a look (not yet tested): in shortcodes.php, line 72 is set to 10 posts when it could be more. I'll see what I can do to fix it within the next week but even though a small change, I am really pushed for time right now and will struggle to make it live any time soon. If you wanted to make the change to e.g. 20 you'd probably be safe. Worst case scenario and it breaks something, then delete the plugin and re-install and it will go back to how it was before.

    Hope that helps!

  4. andyjuki
    Member
    Posted 2 years ago #

    Thanks! this works :) I have it set to 30 just now with no side effects.

  5. Ian McLeish
    Member
    Posted 2 years ago #

    Ha, I set it to 30 also, and it doesn't/ didn't display a thing. Will need to try again. I also tried to paginate the results, but failed miserably, probably because I know nothing about php.

  6. andyjuki
    Member
    Posted 2 years ago #

    That is odd. All I did was change the no on line 72 as above and it worked ok. Maybe check for other plugin conflicts?...I have been caught out myself by this in the past.

  7. Ian McLeish
    Member
    Posted 2 years ago #

    Yup, just checked again, changed line 72 to read 30, only get a blank page displayed, no error, just a white page. Changed it to 12 still doesn't work. No idea.

    If it was a plugin, then why wouldn't it fail with the original code rather than my amendment?

    Andyjuki, what shortcode are you using?

    Before posting this I just checked my shortcode, it was
    [cookie_audit style="simple"] changed it to the basic [cookie-audit] one and it worked.
    Strangely it now works with the original code too!
    Anyway, it is working, I am happy - thanks to Richard for the prompt reply and to Andyjuki for making me try the code again. Cheers!!

  8. davidmcc3
    Member
    Posted 1 year ago #

    Hi
    Just encountered this for the first time, and changing the number on line 72 fixed it.
    Thanks to all.

  9. richardashby
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, fixed in version 1.1 (now set to 50)
    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic