Jump to content

xnowandtheworldx

Members
  • Posts

    89
  • Joined

  • Last visited

    Never

About xnowandtheworldx

  • Birthday 08/13/1991

Contact Methods

  • AIM
    xallonblackx13

Profile Information

  • Gender
    Male
  • Location
    Oklahoma

xnowandtheworldx's Achievements

Member

Member (2/5)

0

Reputation

  1. To #1: That is referred to as skinning and isn't part of the PHP forum. You would find better help in the HTML section, and reading up on the documentation for the Simple Machines Forum on how to skin your forum. (http://docs.simplemachines.org/index.php?topic=233.0) To #2: We need to know what the name of the addon is in order to try and help you out with that.
  2. It's not a text field, people are just able to make posts which everyone is able to see. We just don't want anyone typing in their address in the text and giving it out to whoever. Thanks businessman I'll be sure to check that out! Thread will be marked as complete.
  3. Hey guys, we have a website where people are able to post things, and we don't want to allow anyone to be able to post their street address, for obvious reasons. I'm really stuck on this one, I've looked for some regular expressions to no avail...one idea we did have was to check a text for an address then check to see if it was a valid address with the google maps API but then again...it goes back to having a regular expression for capturing the street address. I was wanting to know, is there any way I will be able to catch whether a user has posted an address? I was going to post this in the regex section but I'm not sure if I should use any regex's or if there might be another way. Put basically I need to be able to strip a street address from the text if a user posts one. I'm pretty sure it's probably not possible, but I figured I'd ask first. Thanks for any help anyone can provide!
  4. Awesome! Thanks for this! Should help immensely!
  5. I have a new project coming up, and one of the functions that this person wants is to convert word documents/pdf/html etc. to the ePub format. I've googled, but i haven't been able to find any code references for getting this accomplished...has anyone had any experience with this? Any suggestions? Any help would be appreciated! Also, I wouldn't mind an API if there even is one...
  6. Okay, I'm just about done developing a website, and I have it set up to where after the paypal IPN shows that the transaction has been completed, the users serial number for the application is delivered to their email. This works great, except with ATT.NET. I've read that AT&T automatically deletes any emails that they believe have forged headers. Do you guys think there is anyway that I can get around this? Or will I just have to make it to where they are not allowed to use ATT.NET emails? Such a pain in the ass... I'm open to any suggestions!
  7. <?php $mystring = "Some apple is eating my orange but not my watermelon about."; function notInList($string) { $frags = array('as', 'is', 'about', 'us', 'at'); $words = explode(' ', strtolower($string)); $replace = array(',','.','\'','!'); //replace common punctuation so that it can still recognize words $count = 0; foreach($words as $word) { if(!in_array(str_replace($replace, '', $word), $frags)) { //All you had to do was add an ! in front of the in_array, so essentially, it is now trying make sure that the words in $frags are NOT in the string...if that makes sense? echo str_replace($replace, '', $word) . '<br/>'; $count++; } } return $count; } echo notInList($mystring) . " words."; ?> I believe this is what you wanted, if it's not just let me know, and I'll see what I can do.
  8. Ah, okay, sorry about that, well, if you can't figure out how to change it post here, and I will post the updated code and let you know how I set it up.
  9. <?php $mystring = "Some apple is eating my orange but not my watermelon about."; function notInList($string) { $frags = array('as', 'is', 'about', 'us', 'at'); $words = explode(' ', strtolower($string)); $count = 0; $replace = array(',','.','\'','!'); //replace common punctuation so that it can still recognize words foreach($words as $word) { if(in_array(str_replace($replace, '', $word), $frags)) { echo str_replace($replace, '', $word) . '<br/>'; $count++; } } return $count; } echo notInList($mystring) . " words."; ?> I commented where you had made your mistake. EDIT: I also made it to remove punctuation so that it can still recognize the word even if it has an ',!. at the end of it.
  10. Yeah, I'll do a little investigation to see if there might be a better way to accomplish this. Unfortunately, not atm(to my knowledge). It sucks that they don't provide an API. EDIT: Wow, now I see what you're talking about. Didn't know that Sony changed the trophy layout. DAMN YOU SONY! lol ya. I'd actually devote some time to developing this if it was worthwhile but being these two large companies they aren't going to keep stuff right longer than a few months.
  11. Unfortunately, not atm(to my knowledge). It sucks that they don't provide an API. EDIT: Wow, now I see what you're talking about. Didn't know that Sony changed the trophy layout. DAMN YOU SONY!
  12. Set up a query that grabs the users data from the database with the given id. example: $id = mysql_real_escape_string($_GET['user_id']); //Lets say it equals 1 $query = "SELECT * FROM users_table WHERE id = " . $id; $result = mysql_query($query); $data = mysql_fetch_array($result); echo $data['username']; //if the row is a username, it would echo that username I tried to explain as best as possible, I'm not good at explaining. Hope I was at least able to help a little. EDIT: I think I may have misunderstood what you meant. If I did, I apologize.
  13. Sorry for the bump, but I have actually written a class for doing this. http://www.phpclasses.org/browse/package/5886.html Mods, if you view this as advertising, then please, by all means remove the link. I just didn't want to have to post all of my files in this topic.
×
×
  • 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.