Jump to content

Vivid Lust

Members
  • Posts

    456
  • Joined

  • Last visited

Posts posted by Vivid Lust

  1. I run an online community with over 10k members and frequently get spammed by users sending spam messages to other members in the forms of money scams. They are not sent via robots but by real human beings, probably sat in cyber cafes abroad!!

     

    I currently don't have any concrete measures put in place and am trying to formulate the best mix of measures to combat this successfully, as I know my competitors are having problems and I need to use this to be advantage as a point of differentiation.

     

    Current ideas include:

     

    - Limit messages for new members

    - Report member feature .... 3 reports = automatic account deactivation (but this wont immediately stop the spammer, they can spam hundreds of accounts in a matter of minutes)

    - some kind of regex that looks for recurring themes among spammers

     

    Not sure what else, any ideas and suggestions will be very much appreciated.

     

    Thank you all!

     

    Jake

  2. echo '<form  enctype="multipart/form-data" name="createGroup" method="post" action="">';
    			echo '<strong>Group Name:</strong> <input type="text" name="groupName" class="text-input" style="width:250px;" value="'.$_POST['groupName'].'"/><br />';
    			echo '<strong>Target Language:</strong>';
    			langCountrySelect(130,'option2',$_POST['groupTargetLang'],'Lang','groupTargetLang');
    			echo '<br /><strong>Group Description:</strong><br /> <textarea name="groupDescription" class="textarea-input"/>'.$_POST['groupDescription'].'</textarea><br />';
    			echo '<br /><strong>Select New Group Image:</strong> <input size="30" name="groupImage" type="file" /><br /><br />';
    			echo '<input type="hidden" name="editGroupSent" />';
    			echo '<input type="submit" value="Edit Group!" class="button-input" style="font-size: 13px;font-weight: bold;margin: 0 35px 10px 10px;" /><script language="javaScript">document.createGroup.groupName.focus();</script>';
    
    

  3. Hi,

     

    I have a form where it is optional to upload an file however the part of the script that checks if they have selected a file is not working, here is the line:

     

    if( isset($_FILES['groupImage'])){

     

    The script always thinks that it is set even when no file has been selected

     

    Please help guys!!

     

    Thanks lots!!!!!!

  4. Hi all,

     

    I'm struggling with a program I'm trying to write with cookies, so any help would be very much appreciated!!

     

    What I'm wanting to do is when someone visits my site, I want to display content until the end of the day, and once the days up it disappears forever/until the cookies are deleted.

     

    Could someone help me with this?

     

    Thanks lots in advance,

     

    Jake

  5. Hi all,

     

    I am going to be offering downloads on my site to members. However i want to somehow hide the download link so that they are unable to copy and paste and give it to their friends. IE, they have to be logged into my site to be able to download it else its not possible.

     

    Any ideas?

     

    Thanks

     

    Jake!

     

    PS. Not sure if this is the correct forum.

  6. Hi all!

     

    I am currently reprogramming my site with objects etc, making it better. I have some code below and am not sure upon how to make it better. loops, cases, classes, functions etc not sure what to do, currently looks like a jumble, here it is, am looking comments on how I can improve how it looks and maybe split it up more or someting, not sure:

    #####  FIND OUT SQL TO SHOW RESULTS ##### 
    // country results sql
    if( $_GET['country'] != "" ){
    
    	$keyword = str_ireplace("_"," ",$_GET['country']);
    	$keyword = langCountryNum($keyword,"COUNTRY",138);
    
    	$sql = 'SELECT * FROM exchange WHERE `location` = "'.$keyword.'" ORDER BY FROM_UNIXTIME(lastOnline) DESC';
    	$urlText = "/xxxxx/".( in_array($lang,$_ENV['supportedLanguages']) ? $lang."/" : $nothing).HEADlanguage_exchange."/country/".HEADbefore_lang.constant("COUNTRY" .$keyword).HEADafter_lang;
    
    //language results sql		
    }elseif( $_GET['language'] != "" ){
    	$keyword = str_ireplace("_"," ",$_GET['language']);
    	$keyword = langCountryNum($keyword,"Lang",130);
    	$sql = 'SELECT * FROM exchange WHERE `option` = "'.$keyword.'" ORDER BY FROM_UNIXTIME(lastOnline) DESC';
    	$urlText = "/xxxx/".( in_array($lang,$_ENV['supportedLanguages']) ? $lang."/" : $nothing).HEADlanguage_exchange."/language/".HEADbefore_lang.constant("Lang" .$keyword).HEADafter_lang;
    // all members results sql 
    }else{
      		$sql = "SELECT * FROM exchange ORDER BY id DESC";
      		$urlText = ( in_array($lang,$_ENV['supportedLanguages']) ? $lang."/" : $nothing).HEADall_penpals;
    	}
    #####  END FIND OUT SQL TO SHOW RESULTS ##### 
    

     

  7. class message

    {

     

    var $recipientID; //id of member message is being sent to

    var $errorCount; // how many errors have been found

    var $error = array(); // array of he errors found

    var $subject; // subject of the message

    var $message; //the message that is being sent

     

    function __construct()

    {

    $errorCount = 0;

    }

     

    function send($loggedEmail,$subj ... ... .. ...

  8. function send($loggedEmail,$subject,$message,$recipientID)

    {

    $this->subject = $subject;

    $this->message = $message;

     

    echo "s".$this->subject;

    echo "m".$this->message;

     

    if( ($this->subject == "") || ($this->message == "") ){

    echo "apps";

    }

     

    }

     

     

    if( isset($_POST['sendForm']) ){

    $message->send($_POST['email'],$_POST['subject'],$_POST['message'],$recipient->id);

    }

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.