Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    629
    Plugin Contributions
    3

    Default Re: PO Box Ban [support thread]

    Hi Steven300

    Thanks for a great mod.

    Could you please explain the use of "/", "\" and "si" in your code, so that others might add their own additions without bothering you.

    I am thinking of adding the following

    GPO Box (is this already covered by your code?)
    Private Box
    Private Bag
    Locked Bag

    Best Regards

  2. #22
    Join Date
    Jan 2008
    Posts
    1,711
    Plugin Contributions
    7

    Default Re: PO Box Ban [support thread]

    Sure.

    Well this is the most basic example of preg_match:

    PHP Code:
    if (preg_match("/choice/""PHP is the web scripting language of choice.")) {
        echo 
    "A match was found.";
    } else {
        echo 
    "A match was not found.";

    As you can see, the forward slash "/" indicates the start and end of the pattern.

    An "i" afterwards makes it case-insensitive.

    I can't remember exactly what the "s" means. It's something to do with matching a pattern when there's a new line.

    The period (dot) symbol is normally a wildcard (meaning it can stand for any single character). So if you actually want to match a period symbol itself, you need to escape it with a backslash "\" before it.

    Yes, "GPO Box" is already covered by the mod. The others will need adding.

    Further reference:
    http://php.net/manual/en/function.preg-match.php

  3. #23
    Join Date
    Oct 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: PO Box Ban [support thread]

    Also my web provider (Quadrahosting) says for their unix accounts there is not mods required for uCRL proxies.....

  4. #24
    Join Date
    Jan 2008
    Posts
    1,711
    Plugin Contributions
    7

    Default Re: PO Box Ban [support thread]

    What does cURL have to do with the PO Box Ban mod?

    Are you in the right thread?

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Simple SEO URL [support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 5039
    Last Post: 9 May 2013, 04:00 PM
  2. Better Together Contribution Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 579
    Last Post: 21 Apr 2013, 04:59 AM
  3. Apple Zen Support Thread
    By jettrue in forum Addon Templates
    Replies: 3036
    Last Post: 26 Mar 2013, 03:35 PM
  4. ZJ Silver Support Thread
    By anthonyd in forum Addon Templates
    Replies: 220
    Last Post: 5 Nov 2010, 03:30 PM
  5. SplitTaxLines mod support thread
    By pdprenty in forum All Other Contributions/Addons
    Replies: 80
    Last Post: 19 Dec 2009, 10:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •