WordPress.org

Ready to get started?Download WordPress

Forums

Need a plugin? - taking a request (33 posts)

  1. Aleister
    Member
    Posted 7 years ago #

    Once again, I am taking requests for a plugin.

    I have quite a few different projects I am working on right now, so please do not ask for anything too complex.

    I will take the first request that I like (mainly meaning - have time for).

    Any takers? :)

  2. robpet
    Member
    Posted 7 years ago #

    How about something that will limit the characters that are acceptable in comments? I'm looking for one like that, and that would truly rock.

    Thanks

    rob

  3. Aleister
    Member
    Posted 7 years ago #

    What did you have in mind as far as acceptable characters though? Like blocking all non-alphanumerics and whitespace or what?

  4. robpet
    Member
    Posted 7 years ago #

    Just blocking everything except alphanumeric, whitespace (space bar), period, comma and maybe question mark and exclamation point.

    Basicly, so the the comments can have proper grammer, but not allow the ' " % $ # ( ) * ^ < > / } { [ ] \ etc... So in other words, anything that could make up some sort of code to disrupt the database interaction and access to the website files.

    I can't imagine it would be that hard, but I don't know PHP and have no idea where to even start...

    Thanks

    rob

  5. jwurster
    Member
    Posted 7 years ago #

    Sounds like you're looking for a spam filter.

  6. robpet
    Member
    Posted 7 years ago #

    Not really. Unless a Spam Filter will stop these characters. I want to stop them from being able to be entered in comments only. I trust my bloggers, but not those people posting comments.

    Do you know of a Spam Filter Plugin that will do this? And what would the result be?

    I've thought about putting those characters in the Comment Blacklist and seeing what would happen... I would add a line in the post_comment script (whatever it's called) stating that any of those characters being used would cause the comment not to post...

    Thoughts?

    Sorry to fill your generous post Aleister.

    rob

  7. Aleister
    Member
    Posted 7 years ago #

    WordPress already does a pretty decent job of keeping code from executing in comments. There should be no danger. If there was, there would surely be a WordPress security update very soon ;)

    I do not think it is that great of an idea really, because people will get kind of upset if every comment they post with a parenthesis, double quote, etc.. is deleted automatically.

  8. robpet
    Member
    Posted 7 years ago #

    Okay, valid arguements. This is totally off topic of your post, but can someone either give me, or direct me to where I can get some scripting to defend WordPress, and to support it's inherent security?

    Then I may not have to worry about this at all...

    Thanks

    rob

  9. Aleister
    Member
    Posted 7 years ago #

    If you really want to, you could try the following code. It should just strip out anything besides letters, numbers, whitespace, and periods :)

    In wp-comments-post.php

    Find this line:

    $comment_content = trim($_POST['comment']);

    After it, add this line:

    $comment_content = preg_replace("/[^A-Za-z0-9s+.]/i", "", $comment_content);

    (my regular expressions are rusty heh)

  10. robpet
    Member
    Posted 7 years ago #

    Well, your regex works pretty well, but how would I get it to allow spaces? It just pushed all the characters together in one big word.

    Thanks

    rob

  11. Aleister
    Member
    Posted 7 years ago #

    Ah, actually there should be a backslash before the s. It may have vanished when I edited the post.

    \s

  12. moshu
    Member
    Posted 7 years ago #

    robpet,
    now you can go and mark resolved your original topic:
    http://wordpress.org/support/topic/80886?replies=1
    so that your paranoid IT guy could relax :)

  13. robpet
    Member
    Posted 7 years ago #

    I will mark the other one resolved, but I also want to let all know that this also works allowing spaces (thanks to a quick google):

    $comment_content = preg_replace("/[^A-Za-z0-9[:space:]s+.]/i", "", $comment_content);

    rob

  14. Jharis
    Member
    Posted 7 years ago #

    Aleister,

    Would you be willing to turn this already web-based application for editing and storing role playing game character sheets into a wordpress module? Since WP doesn't have much in the way of gamers stuff this would be pretty cool.

    You can find the package here.
    http://sourceforge.net/projects/rpgwebprofiler/

    don (el paso)

  15. halfbloodprince
    Member
    Posted 7 years ago #

    Hey, Aleister.

    I've been looking for a certain kind of Event Calendar Plugin for WordPress, but I haven't quite been able to find what I want.

    The Sound Republic Web site [http://www.thesoundrepublic.com] has exactly what I want. If you scroll down a bit on the home page, there is an Event Calendar on the right sidebar. If I click on any of the event dates (highlighted), it opens a popup window with a list of events for that day. The popup window with the list of events should also be customisable (I should be able to put my logo, etc. on it), as it is on that site.

    Can you create such a plugin? I'd be extremely grateful for any help :)

    Note: The site mentioned above (The Sound Republic) is not made using WordPress, the calendar is made using a modified version of a free PHP script.

    If it would be useful, the free PHP script can be found at this location.

    As far as modifications to the calendar are concerned, you can get an idea of the modifications by comparing the free script with the source code of the home page and popup page at The Sound Republic Web site.

  16. sidraja
    Member
    Posted 7 years ago #

    How about a polling system that works inside a post? The polls for wordpress are currently only for sidebars. I'd like something where I can paste the code inside the post (or use a button to do it) and have a poll.

  17. Aleister
    Member
    Posted 7 years ago #

    My offer actually expired last night :P

    But seriously, all three of those might be a bit more than I have time for right now. I will keep them in mind though!

  18. parameters
    Member
    Posted 7 years ago #

    Aleister,

    i had a quick one... in my photo blog, how do i show a summary of the blog like this one http://mocoloco.com/archives/cat_architecture.php
    without having the viewer scroll all the way till the next entry?

    also, how do tell wordpress where to put "continue reading"?

    here's my blog http://www.parameters.cc/blog

    great if you can help!
    many thanks

  19. Aleister
    Member
    Posted 7 years ago #

    parameters,

    Are you referring to the little about box they have at the very top of their sidebar? If so, you do not need a plugin for this - it can just be added into your sidebar template file.

    Also, WordPress sticks the 'continue reading' link wherever you stick the 'more' tag (using the 'more' button).

  20. Sainty
    Member
    Posted 7 years ago #

    I would like to see a plugin something like "I was here" comment. Ppl that just dont know what to say, they can just click a button and publish their name and link as if they wrote something usefull.

  21. moenkopi
    Member
    Posted 7 years ago #

    Sainty, you can always use Linkies, located here: http://www.blenza.com/linkies/

    I haven't used it, but I believe you have to manually insert it into every post, and it does contain ads, but it's something, at least.

  22. Aleister
    Member
    Posted 7 years ago #

    Sainty: You could just do this:

    In wp-comments-post.php

    After this line:

    $comment_content = trim($_POST['comment']);

    Add this:

    if (trim($comment_content) == "") {
    $comment_content = "I was here!";
    }

    That way if they do not leave a comment, it leaves that text instead. Just one idea of course.

  23. parameters
    Member
    Posted 7 years ago #

    Ah... thanks Aleister.
    Got it!

  24. parameters
    Member
    Posted 7 years ago #

    i've another request... is there a plugin to prevent the viewer downloading the images (by either dragging or right click). simple solution without flash player would be great!

  25. Ryan Fitzer
    Member
    Posted 7 years ago #

    I have a simple (I think) idea for a plugin:

    Have a dropdown menu on the write post page that could change the id of the body tag on the index page everytime you publish a post. What I'm thinking about is being able to change your front page layout (by swtiching out the body tag to reference a different CSS rule) depending on the content of each post (of course, the index page would only show 1 post at a time to accomodate this). Then one could use something like <?php variable_id (); ?> as the id on their index.php body tag. Sound interesting? This would support being able to change ones layout depending on the importance of the post.

  26. digitalfrog
    Member
    Posted 7 years ago #

    I would love to see a plugin that would show the EXIF data of a picture in a bubble as the mouse hovers over it !

    Digitalfrog

  27. Aleister
    Member
    Posted 7 years ago #

    parameters:

    See this link: http://www.hypergurl.com/norightclick.html

    But for the record, it is impossible to protect images 100% - someone could always just take a screenshot and crop it if they wanted to :)

    ryanfitzer: You could just enter a div declaration in your post:

    <div class="posttype1">post goes here</div>

    Then define the classes in your CSS.

    digitalfrog: That is an interesting idea. There are several ways it could be accomplished - the best perhaps would be the use of the 'title' tag - to bring up the standard popup text (it is a lot more cross-browser compatible then trying to use pure CSS or javascript popups). If I get a chance again I will look into it :)

    Until next time, please no more "plugin" requests right now everyone ;)

  28. Ryan Fitzer
    Member
    Posted 7 years ago #

    Good point but I would not like the user to have to write any code. This also wouldn't help if I had a rule for something like this:

    body#bigpost #sidebar {
    display:none;
    }

    This would enable a user to hide blocks of content whenever they needed. Now I understand that it could be possible to keep a layout fluid enough to accomodate knocking blocks down when the preceding block is a certain size but this gives much more control to the non-technical author. Thanks anyway.

  29. parameters
    Member
    Posted 7 years ago #

    thanks Aleister!!!!!

  30. cash-splitters
    Member
    Posted 7 years ago #

    I'd love a plug in that automatically removes the "Post" feature and writes Pages Instead (but still allows people to comment on the page).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.