Posts Tagged ‘Wordpress’

Disable HTML in WordPress Comments


02
07
11

In your SPAM folde there are many comments with alot of HTML codes which are basically links. That is how most spammers add links. But you can disable HTML in WordPress Comments to be functional. So if someone uses the strong code, it will not bold the text etc.

All you have to do is simply open your functions.php and add the following code:

 

    // This will occur when the comment is posted
    function plc_comment_post( $incoming_comment ) {
 
    // convert everything in a comment to display literally
    $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
 
    // the one exception is single quotes, which cannot be #039; because WordPress marks it as spam
    $incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );
 
    return( $incoming_comment );
    }
 
    // This will occur before a comment is displayed
    function plc_comment_display( $comment_to_display ) {
 
    // Put the single quotes back in
    $comment_to_display = str_replace( ''', "'", $comment_to_display );
 
    return $comment_to_display;

The original author also offers a plugin that you can download from his site.

WordPress Cheat Sheet


02
12
09

A WordPress Cheat Sheets can be very helpful for every WordPress user. Especially if you start working on your own WordPress theme. Or you just want to customize a existing theme. You can find on Google a lot of WordPress Cheat Sheets. But most are outdated, not finished or just too complicated.

If you want to go tweaking the insides of WordPress go and have a look at the Liquidicity WordPress cheat sheet.

The WordPress Help Sheet includes the following:

  • Basic Template Files
  • PHP Snippets for the Header
  • PHP Snippets for the Templates
  • And Extra Stuff for WordPress

Download: WordPress-Help-Sheet

Eerste Thema binnekort klaar


14
06
09

theme_01Het eerste volledig zelf ontwikkelde WordPress thema is klaar. Het thema draag de naam MMistque. Het thema wordt op dit moment nog uitgebreid getest maar is zeer binnenkort hier te downloaden.

Het is een fris modern en strak thema met een oosters tintje. De pagina heeft een vaste breedte met twee kolommen en de menubalk aan de rechterkant. Tevens is er horizontaal een dropdown menu in verwerkt. Natuurlijk is het MMistique thema widget ready.