meril

Location:

Elgg Sites

Group membership

Activity

  • meril replied on the discussion topic users_sessions table corrupted for 2.3.x versions of Elgg
    Kindly also follow this discussion "https://elgg.org/discussion/view/2776966/elgg-user-sessions-table-corrupted"  view reply
  • meril added a new discussion topic Add Primary key to bookmark URL in sql in the group Performance and Scalability
    Hi,  Can i add a primary key to bookmark URL in sql database if so what is the table name ?
  • If you still have admin access you better deactivate all the third party plugin & try putting the website in maintenance mode..    view reply
  • meril replied on the discussion topic Contact Form Spam
    Hello Rohit,      Thanks for your help it worked.. Now i am free from this spammer who miss use my contact form .. Thanks once again for your valuable time & help ..   view reply
  • meril replied on the discussion topic Contact Form Spam
    Hello Rohit,  Thanks for your help but it did not stop .. // check spam if($message){ if(!preg_match("#^((ht|f)tps?:)?//#i", $message)) {     $message= 'http://' .... view reply
  • meril replied on the discussion topic Contact Form Spam
    Hello,    Does anyone knows how to make this possible where to add the validation any link is placed in the contact forum message/subject it should not send email at all it should simply reject the message with... view reply
  • meril added a new discussion topic Contact Form Spam in the group Performance and Scalability
    Hi all,     I am using ColdTrick Contact (https://github.com/ColdTrick/contact) which is a quite helpful & beautiful plugin but i want to add an extra condition to the contact form that is when a user places any link inside the...
    • Hello Rohit,

       Thanks for your help but it did not stop ..

      // check spam
      if($message){
      if(!preg_match("#^((ht|f)tps?:)?//#i", $message)) {
          $message= 'http://' . $message;
      register_error(elgg_echo("contact:message:invalid_message_spam"));
      }
      }
       
      I am not a good coder can you tell me like what i am missing here ..
    • I thought you wanted to remove URL from your message but the code that you have shared is doing something else.. This is what it does:

      1. Check if $message is not blank
      2. Check if $message does not starts with https or ftps then
      3. Add http to the $message
      4. Register an elgg error and
      5. continue to run the code as there is no exit command.

      Form the code it seems like you want to add a url to your message and not remove it.

      Your code should be:

      if (strpos($message, 'http') !== false) {
          register_error(elgg_echo("contact:message:invalid_message_spam"));
      } else {
          // rest of the code to send the message
      }
    • Hello Rohit,

           Thanks for your help it worked.. Now i am free from this spammer who miss use my contact form ..

      Thanks once again for your valuable time & help ..  

  • meril commented on the plugin Blog Tools
    Hi Jerome,     Hope your doing well.. When i try to navigate to blog/featured i get a message "Page not Found" . Can you plz let me know what would be the problem.  1) Latest Elgg 2.3.10 2) Blog Tools...

Send private message

You must be logged in to send a private message.