WordPress.org

Ready to get started?Download WordPress

Forums

Announcements Ticker
[resolved] Announcements Readable only for Admin (10 posts)

  1. drober
    Member
    Posted 1 year ago #

    Hi.
    I'm working on my site http://www.gtal.it with your beautiful Announcements Ticker.
    I have a big problem: all the Announcements are readable only for Admin user: registered, editors or all the other groups of people can't read the Announcements clicking on [Read All]. I've see the 'Restriction' for reading the pages of the Announcements and I haven't restrictions for readers! Why this?

    Thank you.

    Romeo.

    http://wordpress.org/extend/plugins/announcements-ticker/

  2. fonglh
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. drober
    Member
    Posted 1 year ago #

    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.

  4. fonglh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. drober
    Member
    Posted 1 year ago #

    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 http://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 http://www.gtal.it but not readable by clicking [Read All].

    How can solve this little big problem??

    Thank you!!

  6. fonglh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. fonglh
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. drober
    Member
    Posted 1 year ago #

    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!!!!

  9. fonglh
    Member
    Plugin Author

    Posted 1 year ago #

    I've updated the development version of the plugin with the fix. You can get it at http://downloads.wordpress.org/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 :)

  10. drober
    Member
    Posted 1 year ago #

    It works perfectly, good job!
    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.