Home > General > Affiliate Marketing Forum

Dating LP With Random 5-20 Mile GEO Radius? (10)


05-06-2013 10:59 PM #1 vidivo (Member)
Dating LP With Random 5-20 Mile GEO Radius?

I use MAXMind already in my LP's but I dont want to have each member be from the same city, looks suspicious and fake, rather maybe do a radius within 5-20 miles or so.

Does anyone know how to do it? Dont mind a paid solution either as I think it would be worth it!


Thanks!


05-06-2013 11:16 PM #2 w3061 (Member)

You could create an array of names and images using a PHP script and use a random number generator to populate the map. If you know PHP, this could probably be done in 30 minutes. If you don't I'm sure you can have someone build one on odesk for less than $50. That's actually a pretty good idea.


05-07-2013 02:09 AM #3 vidivo (Member)

not sure what you said exactly, but it did give me an idea of maybe having some code grab the users IP and then using it add a few digits or subtract ( if IP ranges work this way, not sure) and then it would automatically pre populate the other geos randomly with the city of the random IP?

lots of adult networks use something like this but not sure their exact method / script.


05-07-2013 10:33 PM #4 tmcalvin (Member)

I had a post on this same idea recently and haven't done much to get it followed up on.
this is the closest thing I could find but couldn't get it to work.
http://www.geoplugin.com/webservices...#nearby_places

check out this lander and see if this is what you're talking about.
http://lesbianpersonals.com/go/g551525-pct


05-07-2013 10:43 PM #5 tmcalvin (Member)

here's a chunk of what I used on mine, not exactly what I wanted which sounds like what you described but does do random ages within a range and random distance from the visitor.

results in something like this
Click image for larger version. 

Name:	Screenshot on 2013-05-07 at 17.39.02.jpg 
Views:	41 
Size:	4.7 KB 
ID:	1101

Code:
 <p class="panel member-thumb">SlipkFully, <script>
        var randomNumber = Math.floor(Math.random()*(39-25)) + 25;
        document.write(randomNumber); 
        </script><br>
          <script>
        var randomNumber = Math.floor(Math.random()*(45-1))/10 + 1;
        document.write(randomNumber); 
        </script> miles from you in <script>document.write(geoip_city());</script></p>


05-07-2013 10:51 PM #6 tmcalvin (Member)

one problem i have with this approach too is that the numbers also randomize with each refresh but the images and names are static. in the grand scheme it's not a big deal but bothers me. gonna tweak it but wanted to get the thing running


05-08-2013 01:57 AM #7 vidivo (Member)

Yeah that geoplugin is interesting.. im gonna mess around with it and see if i can get it to work, will post update if i do! thanks!


05-08-2013 02:49 AM #8 tmcalvin (Member)

Quote Originally Posted by vidivo View Post
Yeah that geoplugin is interesting.. im gonna mess around with it and see if i can get it to work, will post update if i do! thanks!
no prob man, yea, totally let me know if you get something together.
where I got confused was how I could call it in multiple places and have them all be independent of each other.
I was planning on paying to get something like that made. If you don't get something going let me now if you'd be interested in going in on it.


05-08-2013 12:21 PM #9 caurmen (Administrator)

the numbers also randomize with each refresh but the images and names are static
As w3061 said, this is simple enough to fix - just build a few arrays of names and images and pull randomly chosen ones every time the page is loaded. For example:

Code:
$names = array("Cindy","Lucy","Beth","Laura","Claire","Kylie");
echo $names[rand(0,5)];
That'll echo a random name every time you call

Code:
echo $names[rand(0,5)];
anywhere after the array.


05-08-2013 04:38 PM #10 tmcalvin (Member)

@caurmen Thanks for the reply, I will try that with my current setup.
I was talking about splitting out the one on the geoplugin site. they have an example on there showing 3 nearby places. I'm not sure how to take something like that, add additional instances and having them places on different places on the page. Hope that makes sense.


Home > General > Affiliate Marketing Forum