Jump to content

Vivid Lust

Members
  • Posts

    456
  • Joined

  • Last visited

Everything 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. Any more replies guys? Am looking for more ideas on how to improve it still, thanks.
  3. I'm trying to get the top 2 most frequent values in a specific column in a db, so heres an example column_name 7 8 8 4 5 7 7 8 8 RESULT: 8,7 Is this possible? And if so how can it be achieved? Thanks lots!! Jake
  4. 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>';
  5. 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!!!!!!
  6. I only want certain content to appear on a page until midnight the first time they visit, after that it never appears again until the cookie is deleted.
  7. 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
  8. Hi all, How can I check in PHP if this date has already passed in the following format: 2012-12-12
  9. 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.
  10. so then after i can just do if 1287677304 > 1287675673 ????
  11. How can I check in php if a timestamp was x days ago For example the timestamp 1287677304 , how can I check if it was more than 2 days ago? Thanks lots Jake
  12. Hi all, I am looking for reviews on my language exchange website: Penpal Parade because I need to improve it. Thanks all in advance, Jake
  13. 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 #####
  14. require_once('classes/message.class.php'); $message = new message();
  15. The entire message is in the this threads subject, minus the file name and the line is the line i posted at the top.
  16. 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 ... ... .. ...
  17. 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); }
  18. Something strange is happning, line producing the error: if( ($this->subject == "") || ($this->message == "") ){ Any ideas guys? thanks lots!!
  19. Any idea why I'm getting this error? Line of code producing error: if( !isset($this->message) OR !isset($this->subject) ){
×
×
  • 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.