• Resolved dcrst75

    (@dcrst75)


    Hi
    I have shortcodes on Slimstat Shortcode plugin that work ok. But now this dont work with Slimstat 4 internal shortcodes.
    I have

    Today page visit: [slimstat f='count' w='*' lf='day equals today']
    Today visitors: [slimstat f='count' w='ip' lf='day equals today&&&visit_id is_greater_than 0']
    Online visitors: [slimstat f='count-all' w='ip' lf='WHERE:NOW() - dt < 300']

    What is new internal shorcodes on Slimstat 4
    Thanks

    https://www.ads-software.com/plugins/wp-slimstat/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    We just published the documentation in our knowledge base:

    https://slimstat.freshdesk.com/solution/categories/5000098828/folders/5000259023

    In your case, the shortcodes are

    Today’s pageviews: [slimstat f=’count’ w=’id’]strtotime equals today[/slimstat]
    Today’s visitors: [slimstat f=’count’ w=’ip’]strtotime equals today[/slimstat]
    Online Visitors: [slimstat f=’count-all’ w=’id’]WHERE:NOW() – dt < 300[/slimstat]

    For the last one, you may need to adjust the clause if your mysql server is using a different timezone than your WordPress site.

    Thread Starter dcrst75

    (@dcrst75)

    thanks. it work now, but, when I deactivate Contact Form plugin from BestWebSoft, shortcuts from Slimstat dont work. Display only text without render commands. Why?
    Shortcodes is on Footer widget

    Plugin Author Jason Crouse

    (@coolmann)

    WordPress does not support shortcodes in widgets by default. There’s some extra work you need to do (or plugins need to do) to change that:

    https://www.ads-software.com/support/topic/how-to-make-shortcodes-work-in-a-widget?replies=4

    Since this impacts overall performance, we decided to not enable our shortcodes in widgets by default, leaving it to the user. Apparently your other plugin implements those step, thus enabling shortcodes in widgets.

    Eek!

    The new short code formats destroy my page html – specifially the table layouts. I was using about 10 shortcodes on my Stats page, and it’s a mess. Is there a way to prevent this?

    Plugin Author Jason Crouse

    (@coolmann)

    @elbopa, please open a new thread and link the page having the issue.

    Hi!
    I updated the plugin just now and switched the shortcodes, and they work fine apart from this one you posted above:

    Today’s pageviews: [slimstat f=’count’ w=’id’]strtotime equals today[/slimstat]

    I looked through the FAQs, and couldn’t figure out a way to do it (thanks for the filterlist btw, it would just be nice if there was a description for example for strotime, I have no idea what it could be ?? ). The value today also doesn’t seem to exist in this list.

    Plugin Author Jason Crouse

    (@coolmann)

    @ katrinkleeblatt could you please open your own thread?

    Today's pageviews: [slimstat f='count' w='id']strtotime equals today[/slimstat]
    Today's visitors: [slimstat f='count' w='ip']strtotime equals today[/slimstat]
    Online Visitors: [slimstat f='count-all' w='id']WHERE:NOW() - dt < 300[/slimstat]

    i added the above shortcode on my widget.

    on my sidebar which displays below lines:
    Today’s pageviews: 14 Today’s visitors: 2 Online Visitors: 14WHERE:NOW() – dt < 300[/slimstat]

    i use wordpress 4.4 and SlimStat 4.4

    as you mentioned abvoe i added the line on functions.php

    please resolve my issue and how to display the status line by lines?

    Plugin Author Jason Crouse

    (@coolmann)

    Sheriffonline, could you please start your own topic?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Slimstat 4 shortcodes’ is closed to new replies.