1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

For GP Letter Method, use this code to QUICKLY create the annoying offer webpages

Discussion in 'Offline Marketing' started by mandude, Mar 4, 2012.

  1. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    If you are doing the Google Letters method and get tired of creating 100 "special offer" pages custom for the clients, use this code to make the page custom to the client, but only requires you to create the page ONCE! It took me some days to tweak it to get it to work, but I just got it working.

    What will happen is you can tell them to go to www.yoursite.com/offers/whatever and the page will be custom to that "whatever."

    I didn't want to use up a root domain page for this so I made this to work in a subfolder. but it can easily be changed to work in the root as well. Here is the code:

    1.) In the actual offer page, put this at the top:

    PHP:
    <?php

    $item 
    $_GET['item'];
    if (!
    $item$item "You";

    $item2 str_replace("-"" "$item);

    ?>
    and then put:
    Code:
    <title>Special Offer for <?=$item2;?></title>
    Or whatever as this will put the variable in the page title as well.

    2.) Now in the document where you want it to mention their name or website or whatever, put:

    Code:
    <?=$item2;?>
    So for example it is
    Code:
    An Important Letter and*Exclusive Offer Created Especially for <?=$item2;?>
    3.) That is half the battle. Now you need to create an .htaccess file. If you aren't sure how, just open up notepad and paste the code below in and save it as "all types" and just name it .htaccess nothing before the "."

    Code:
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /offers
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^]+)/([^]+)$ index.php?item=$1&query=$2 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^.]+)$ index.php?item=$1 [L]
    
    # AddHandler application/x-httpd-php .php .htm .html
    This will make anything you put after /offers/ to be defined as the item. I had it include periods that way you can just use their domain names!

    4.) Upload this .htaccess and the .php offer page to a subdirectory called "offers".

    To see a live example, check out the link below. Know that this is just an example page to show you the capabilities.

    http://www.thesecretadvantage.com/offers/BlackHatWorld
    or
    http://www.thesecretadvantage.com/offers/Black-Hat-World

    The best part is you can create spaces (to use names) by using dashes. It looks really legit when you do this.

    I hope you find this useful and if you do please thanks or rep!
     
    • Thanks Thanks x 42
    Last edited: Mar 4, 2012
  2. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    130 views and only 3 people find this useful? I guess only 3 people are ACTUALLY doing this offline method? (or doing the webpages)
     
  3. skinnyboi

    skinnyboi Regular Member

    Joined:
    Apr 6, 2008
    Messages:
    368
    Likes Received:
    108
    thanks, just now seeing this thread, will add to my repertoire
     
  4. Dr_Scythe

    Dr_Scythe Regular Member

    Joined:
    Jul 4, 2011
    Messages:
    281
    Likes Received:
    210
    Location:
    Australia
    This is a great start.

    How hard would it be to add something that calls say image1.jpg from the folder offers/<?=$item2;?>/image1.jpg

    This would enable you to have a different image for all prepared proposed clients allowing even greater personalization without too much extra work.
     
  5. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    That's a pretty good idea. But the <item> isn't an actual folder its more of like a wildcard URL. so that folder doesnt exist so it wont be able to call an image in a folder. BUT if you put a bunch of images in a folder and name them what you will put as the url, it should work in my opinion.

    So you would have in your code:
    Code:
    <img src="/images/<?=$item2;?>.jpg />
    I THINK, and if item2= joesrepair.com have an image with that name.

    Worth a try.
     
    • Thanks Thanks x 1
  6. myniche

    myniche Junior Member

    Joined:
    Feb 13, 2009
    Messages:
    112
    Likes Received:
    51
    Man, dude this is great! Reminds me of the early MFA scraper scripts where pages automagically were created.

    I will give this a try for an idea I am working on.
     
  7. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    Yes, there are many uses for this script great for CPA as well.. WINK
     
  8. gritts

    gritts Junior Member

    Joined:
    Dec 4, 2011
    Messages:
    120
    Likes Received:
    20
    Thanks for sharing, this could def. be tweaked for other things.

    Also, I think this will only work on a Linux Apache server if I'm not mistaken for those using Windows hosting as I don't recall Windows supporting mod_rewrite (at least by default, I believe there's an equivalent that you can install if you actually have access to the server and are not on shared hosting).
     
  9. GuinnessMan

    GuinnessMan Junior Member

    Joined:
    Apr 4, 2009
    Messages:
    120
    Likes Received:
    90
    Occupation:
    Co-Founder - Various; Independent DSA Closeout Con
    Location:
    USA
    Dude mandude! This is fantastically what I've been looking for. Thanks for the contribution.
     
  10. tobeto

    tobeto Junior Member

    Joined:
    Apr 10, 2010
    Messages:
    171
    Likes Received:
    19
    Thanks mandude's great sharing, it's very clever method, I will apply it.
     
  11. blackhatstand

    blackhatstand Newbie

    Joined:
    Mar 8, 2012
    Messages:
    18
    Likes Received:
    1
    may I know what the Google Letters method is?
     
  12. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
  13. vibebeatz

    vibebeatz Registered Member

    Joined:
    Aug 3, 2011
    Messages:
    86
    Likes Received:
    15
    would this work on wordpress?
     
  14. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    I tried this at first on a WP blog and couldnt get it to work. but it was before I had it working, so it might work. It would still have to be in a subfolder though.

     
  15. vibebeatz

    vibebeatz Registered Member

    Joined:
    Aug 3, 2011
    Messages:
    86
    Likes Received:
    15
    thanks and reps given it looks reallly good ill give it try to see if ican get it to work.
     
  16. flightrisk

    flightrisk Junior Member

    Joined:
    Apr 7, 2009
    Messages:
    141
    Likes Received:
    61
    awsome..I was making each file, funny.

    slight change to code to remove / when using an apostrophe.

    Code:
    <?php
    
    $item = $_GET['item'];
    if (!$item) $item = "You";
    
    $item2 = str_replace("-", " ", $item);
    $item2 = stripslashes($item2) //<< remove slash ex. mike's
    ?> 
    might be able to done in pass, not sure though

    Also to track if someone viewed the page I get an email each time the page to opened..pput this at top of page.

    Code:
    <?php
    
     $to = "youremail.com";
    
     $subject = $item2 ." Opened Page";
    
     $body = "Customer View page!";
    
     mail($to, $subject, $body)
    
    ?>
     
    • Thanks Thanks x 4
    Last edited: Mar 11, 2012
  17. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    Dude! That email code is awesome. Thank you for that. Just implemented it and it works. I just have to try not to view my own page anymore :p

    Works great. Rep given.

     
  18. flightrisk

    flightrisk Junior Member

    Joined:
    Apr 7, 2009
    Messages:
    141
    Likes Received:
    61
    thanks...Now you can be stealthy, when you get the email that the page was read you can call them right away. or at least send them a followup post card or something
     
  19. xziler8r

    xziler8r Regular Member

    Joined:
    Apr 27, 2009
    Messages:
    202
    Likes Received:
    232
    Occupation:
    IM
    Location:
    On Earth
    Another thing I did... in the WO PDF's it has verbiage that would be particular to each business.. such as "X # of people have visited your site.. or these are the keywords that someone searched for, etc.."

    I just removed that and added something generic such as "thousands of people" or "all of these people have searched for your business" so it can be completely 100% generic but using the script would apply to each business.
     
  20. mandude

    mandude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 18, 2008
    Messages:
    797
    Likes Received:
    306
    Location:
    Tampa FL
    yea I changed it to "thousands of people". Also, flightrisk thats exactly what I plan on doing, if I see them view it, call them :)