WordPress.org

Forums

Content Warning
Updating an old plugin and adding functionality? (30 posts)

  1. Jerry
    Member
    Posted 4 years ago #

    I'm actually in the process of updating this awesome plugin by rajeevan. The thing is that I, like others, need only certain pages/posts protected. Therefore I am adding a few hooks to the already awesome plugin but was wondering one thing... should I submit it under a V2 title? Or just send it to the original author, if he/she can be contacted?

    http://wordpress.org/extend/plugins/content-warning/

  2. tempor
    Member
    Posted 4 years ago #

    It is an abandoned plugin.

    It is also a very needed plugin.

    Please do all of us a favor and make a V2 version!!! It is not unusual you know...

    Be well.

  3. Jerry
    Member
    Posted 4 years ago #

    Haha, honestly I only needed one person to say "do it" well looks like I know what i'll be doin' on my next day off work. :)

  4. ThorsDad
    Member
    Posted 4 years ago #

    Let us know when V2 is out!

  5. Jerry
    Member
    Posted 4 years ago #

    Any feature requests would be greatly appreciated asides from the regular "warning-per-post"

  6. ThorsDad
    Member
    Posted 4 years ago #

    As far as I can tell the "Cookie Expiry Time" does not work. It would be nice to disable the warning after people click OK for say a day, month, year, forever.

  7. Jerry
    Member
    Posted 4 years ago #

    I know the "Cookie Expiry Time" works because on my clients site I have it set to expire every 24 hours, and in that time frame I always get a popup. However, I do agree it would be easier to simply have a selection of days, months, or years rather than do the calculations yourself.

  8. Jerry
    Member
    Posted 4 years ago #

    I think I'll localize this also. Any objections just say so.

  9. ThorsDad
    Member
    Posted 4 years ago #

    Maybe I don't understand how the cookie is supposed to work. I thought that you would not receive another content warning until the cookie expired?

    Sorry for not being up on the lingo but what do you mean by "localize this"?

  10. Jerry
    Member
    Posted 4 years ago #

    To see what you were talking about, I set the timeout to between 1 and 90 seconds. I too found that by doing that the cookie timeout doesn't work. Though after sifting through the code, there isn't an issue with the functions, everything is nailed tight and all functions are properly used, this leads me to believe it's a browser thing.

    Localizing a WordPress plugin basically means I'll provide the English language translations files, and others will be able to translate as needed.

  11. ThorsDad
    Member
    Posted 4 years ago #

    I've tried this with several browsers, MSIE, Firefox and Chrome. I get the warning every time I start a new session with my website no matter what I have the cookies set to.

    It would be nice to click "Enter" and not be asked again for a week, month or whatever.

  12. ThorsDad
    Member
    Posted 3 years ago #

    I've had to give up on this and other popups as they disappear behind flash videos in posts. I'm unable to add wmode="opaque" to every video. If someone knows another way to get this popup OVER flash videos let me know.

  13. Jerry
    Member
    Posted 3 years ago #

    maybe user jquery to automatically add it to the appropriate tag

  14. ThorsDad
    Member
    Posted 3 years ago #

    @Jerry: I'm not sure what you mean by that?

  15. Jerry
    Member
    Posted 3 years ago #

    If you want to use wpmode="opaque" you can automatically add it via jQuery. Jquery had it's way of adding and subtracting elements from the DOM.

    Adobe tells you how to do it manually via the HTML: http://kb2.adobe.com/cps/142/tn_14201.html#main_Editing_HTML_code_manually

    Since you know that now, you can do it dynamically with jQuery manipulation methods. http://api.jquery.com/category/manipulation/

    Still curious or confused, just let me know and I'll write it for ya :)

  16. Nevis-1
    Member
    Posted 3 years ago #

    Jerry, any news on your progress on this plugin? I REALLY need it for an upcoming project.

    Thanks for your efforts so far.

  17. Jerry
    Member
    Posted 3 years ago #

    @Nevis-1:

    No unfortunately I haven't even really played much with it lately. Give me a week, I'll have a v2 plugin for you guys okay.

  18. ThorsDad
    Member
    Posted 3 years ago #

    Looking forward to trying it Jerry!

  19. Nevis-1
    Member
    Posted 3 years ago #

    I look forward to it. I am really surprised that there isn't more call for this. Not just for adult sites, but gambling, guns, alcohol, etc.

    Thanks for your work.

  20. Jerry
    Member
    Posted 3 years ago #

    Sorry for the lack of progress on the code, i haven't even begun to start on it as i have been busy getting my linux box up and running. I would like to know EXACTLY what features you guys would like to see in this plugin before I begin.

    Please leave your feature requests below as I will be starting on this by Friday of the coming week. Please be as detailed as possible, it can be from a simple color change all the way to a re-write, just let me know okay.

  21. ThorsDad
    Member
    Posted 3 years ago #

    I'd like it to stay "On Top" of all elements on the page, esp. flash videos & flash banners.

  22. ThorsDad
    Member
    Posted 3 years ago #

    I'd like to be able to set it to stay gone for X number of hours/days/weeks after it has been clicked YES. I think the original was supposed to do that but it never worked for me.

  23. ThorsDad
    Member
    Posted 3 years ago #

    Not really for me but others would probably find it useful to be able to only have it pop up on certain posts or categories instead of the entire site. For G-rated sites that have the occasional NSFW post.

  24. Nevis-1
    Member
    Posted 3 years ago #

    I'd like it to stay "On Top" of all elements on the page, esp. flash videos & flash banners.

    Basically what ThorsDad said in the post above, plus I would like it to show up on any and all pages the visitor arrives at. Then by using a cookie say ste for the visit to only display on whatever page they land on. Does that make sense to you? I just want them to have to check the 18 bit on one page, no matter what page they land on.

    Thanks

  25. ThorsDad
    Member
    Posted 3 years ago #

    Hey Jerry, Any progress updates? I'm curious how the project is going.

  26. Jerry
    Member
    Posted 3 years ago #

    @ThorsDad
    I've actually finished the plugin research and figured out where to inject my code. Once I have time to actually sit down and code it, I can literally have it done in 72 hours. Keep in mind this includes adding the following options:

    • Allow users with "Author" permissions to override the minimum age requirements on their posts.
    • Give administrators the ability to select between days, weeks, months, or years for cookie expiration.
    • Allow admins to select between per-post or site-wide prompts. (if per-post is selected, it will be up to authors and administrators to un-flag their posts as mature as it will be set as default to mature)
    • Add a little jQuery for those wpmode issues.

    Of course this doesn't go without saying, all options will have the ability to be enabled or disabled by administrators. Just cuz I can.

  27. ThorsDad
    Member
    Posted 3 years ago #

    @Jerry

    Looking forward to it.

    On the per-post selection wouldn't it be better, if possible, to have the default be "not mature" as most per-post users would only be flagging the occasional post as mature.

  28. Jerry
    Member
    Posted 3 years ago #

    I was thinking a little differently though what you say seems reasonable also. I suppose an acceptable medium is to provide administrators the ability to set the default for the website themselves.

  29. Jerry
    Member
    Posted 3 years ago #

    Okay ppls, I've finally started coding on it, got some cool JS to go along with it. Anyhow, I have the back-end almost done, now I gotta make some post meta boxes for authors and administrators along with a few security measures to prevent workarounds.

    One added feature that I failed to realize it needed was to give a drop down menu for the Enter and Exit pages so admins can select a page if necessary. I will be leaving the URL text boxes also so you can use a custom url if you wish. But you will have three radio buttons per box now so you will have to select rather you want to use a URL, Page, or none (just let the user view the site).

    Due to restrictions placed upon cookies by their respective browsers, I have set it up whereas you have to have the cookie expire no less than 24 hours (1 Day). If you set it to (Days, Weeks, Months, or Years) and set the value to zero (0) the cookie will expire once the user closes the browser.

    I'm also working on the wpmode workaround for those of you who need it, you will have to enable it via the Admin panel however.

  30. Jerry
    Member
    Posted 3 years ago #

    Okay guys, it's FINISHED, and no I'm not joking this time. Until WordPress team decides to give me a repository I can provide it as a Beta to you guys if you wish. By doing so please understand, I'm sure you understand that posting support requests for a plugin that is not hosted by WordPress on the forums should be avoided.

    If you guys wish to download it you can do so by going to my site: here

    If you have any questions you can ask them there, please keep the WP forums clean of this plugin until I get the repository.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Content Warning
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic