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

Dude great share! I was looking to create something like this myself but you beat me to it! and good thing for me that you did lol :D
 
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)

?>

Do you know of way to code it so that if we make the url "mydomain[dot]com/offers/joe's-pizzeria" that in the page it will make the first letter of each word in their business is caps? So right now if we direct them to say "mydomain[dot]com/offers/joe's-pizzeria" then in the page it will should their business name as "joe's pizzeria" instead of "Joe's Pizzeria". I know that I can fix that by giving them the url as "mydomain[dot]com/offers/Joe's-Pizzeria" and that will work, but I'm just trying to see if there is a way to default it to make it always caps the first letter of each part whether they type it the url as "mydomain[dot]com/offers/joe's-pizzeria" or "mydomain[dot]com/offers/Joe's-Pizzeria"?

Any help?
 
Last edited:
Nevermind. I was able to find the code and it works. For anyone else that is interested here is the code:

Code:
$item2 = ucwords(strtolower($item2));

This always make the first letter of the string Uppercase i.e. so if you have a url address of "mydomain[dot]com/offers/joe's-pizzeria" in will show up on the Page,Title,etc. as "Joe's Pizzeria".
 
Thanks for the script. Rep given. Great technique for bringing off-line into online and many other uses. Big help on this side!
 
This is fantastic! Thanks OP! I can't seem to find the landing page content anywhere... Has it been posted? I downloaded the "Amazing Google Maps Placement Letter", but it only has the .docx letter that is meant to be sent. What about the content that actually goes on one of these offer webpages? Did you all just come up with that yourselves? What kind of headlines have you found to be effective?

Thanks a lot for the help.
 
I don't use this method but have been considering giving it a try. This is pretty useful though.
 
I've added this to the top of the code.. but I'm not able to email.. everything else works.. any ideas?

Code:
<?php

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

$item2 = str_replace("-", " ", $item);
$item2 = ucwords(strtolower($item2));

?> 
<?php

 $to = "[email protected]";
 $subject = $item2 ." Opened Page";
 $body = "Customer View page!";
 mail($to, $subject, $body)

?>


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)

?>
 
Anyone know how to modify this so it works with subdomains instead, like johns-pizza.domain.tld?
 
this looks great.

just a heads up http://searchengineland.com/google-places-is-over-company-makes-google-the-center-of-gravity-for-local-search-122770

looks like google places will be getting replaced with google+ results
 
Apparently this only works with subfolders even if you leave the rewrite base as /

I'd appreciate some help on getting it to work without subfolders as in the root of the domain like site.com/biz-name etc.

--EDIT--

Nvm it works, idk what had happened to my htaccess file...
 
Last edited:
Looks great, thank you for this! Thanked in the original post as well. I can't wait to implement this when I get back to work. Going to save quite a bit of time.
 
Back
Top