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

    (@fonglh)

    Hi drober,

    The announcements are meant to be publicly viewable on the front page. In fact, I see it on your site, so everyone can indeed read it.

    Is the [Read All] link something you’re clicking on in the WordPress Dashboard?

    Thread Starter drober

    (@drober)

    Hi fonglh and thank you.
    I have translated the [Read All] link in the Announcement with [LEGGI] (in italian). This link appear in all the announcement displayed in the homepage of my site (www.gtal.it).
    If you try to click on it you can see the page than remember you to LOGIN into the site to read al the announcement. BUT if you login on the site like an Editor, Contributor, or other you CAN’T read the page, you always return to the LOGIN page. Only Administrator can read the entire announcement page, this is the same for all the announcement…these pages haven’t restrinction for readers, why they don’t work?
    Thank you.

    Plugin Author fonglh

    (@fonglh)

    Is your theme or another plugin restricting access to your pages? If so, it looks like it’s restricting access to everything else by default.

    Thread Starter drober

    (@drober)

    Problem founded: there are no restrictions for the announcements.
    All the announcements visible on the bar are SCHEDULED: the Announcement plugins intend SCHEDULED for expiration on the bar, the CMS (wordpress) intend SHEDULED for viewble in the future.
    – All the announcements viewble on the bar are inaccessible (by clicking [Read All]) for all the users because are SCHEDULED (vieweble only in the future) and only the ADMIN can read.
    – All the announcements not viewble on the bar are readable for all (thru other links) because for WordPress CMS are published.
    Example: this announcement is readble for all https://www.gtal.it/wordpress/?announcement=test but it don’t appear on the bar because is not scheduled for the future; otherwise if it is scheduled for the future, the announcement is visible on the bar in https://www.gtal.it but not readable by clicking [Read All].

    How can solve this little big problem??

    Thank you!!

    Plugin Author fonglh

    (@fonglh)

    Thanks for the explanation. I’ve tested it out and it does indeed behave like that.

    I can’t think of an easy fix for this right now but will try to work on it over the weekend.

    Plugin Author fonglh

    (@fonglh)

    If you’re comfortable with phpmyadmin, change the post_status of the announcement from ‘future’ to ‘publish’.

    You’ll also have to comment out line 104 in announcements-ticker.php (take out the ‘post_status’ => ‘future’ condition)

    The post status has to be manually changed whenever you update the announcement. I’m working on something more permanent.

    Thread Starter drober

    (@drober)

    Thank you! I’ve changed the announcements-ticker.php file and now work correctly. Now i need to remove manually expired announcements, but this isn’t a problem for me, the priority it’s to see working the plugin. Thank you!!!!

    Plugin Author fonglh

    (@fonglh)

    I’ve updated the development version of the plugin with the fix. You can get it at https://downloads.www.ads-software.com/plugin/announcements-ticker.zip

    This adds a filter which changes the post status from future to publish whenever the announcement post type is created or updated.

    Please test this version and let me know if it works.

    Thanks so much for the bug report and troubleshooting ??

    Thread Starter drober

    (@drober)

    It works perfectly, good job!
    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Announcements Readable only for Admin’ is closed to new replies.