Home > Programming, Servers & Scripts >

Dynamic LP Give-Away! (Built for selecting best dating offers w/ PPV) (7)


01-04-2012 05:19 AM #1 dubbsy (Member)
Dynamic LP Give-Away! (Built for selecting best dating offers w/ PPV)

Download here: http://adamwisawesome.com/files/option.zip

The second site, page2.php was a template I downloaded from someone on this forum, I cant think of their name or their site I got it from, but THANK YOU, that basic format helps me a lot every day, so if you see this post, show yourself! ;-)

I am by no means a coder/programmer, but this is something I am using for a dating campaign that I thought could help some of the other people in the same situation...

Situation:

PPV Dating campaign where you don't know the exact age of the visitor. You have multiple links for the same offer that allow for different payouts based on the age of the viewer.

Rather then just go with a 18+ lower paying/higher scrubbing offer, or a "hope" all users are 25+ and miss out on any potential 18+ users... the lander allows you to have user select their age, and then based on their age selection places the optimal aff link automagically for the highest payout. (You have to determine the afflinks)

Example:

User says they are 26 years old on page1.php... page2.php will assign all urls to age 26+ payout aff links (you just have to insert them).


This is the form code for page1.php (page where they select age):

Code:
<form method="POST" action="page2.php" >
            <p>I am a 
                <select name="age">
                    <option value="1" selected="selected"> 18-23 </option>
                    <option value="2" selected="selected"> 24-29 </option>
                    <option value="3" selected="selected"> 30+ </option>
                    <option value="4" selected="selected"> 35+ </option>
                </select>
            woman, looking for a good guy near <script language="JavaScript">document.write(geoip_city());</script>, <script language="JavaScript">document.write(geoip_region());</script>

            
            </p>
          

            <input type="submit" id="button" />
          
          </form>
and here is the php for page2.php (the page where it displays your offers):

Code:
<?php

$age=$_POST['age'];

if ($age==='1') {
    $url1="http://18plusoffers.com";
    $url2="";
    $url3="";
} elseif ($age==='2') {
    $url1="http://thirdhighestpayout.com";
    $url2="";
    $url3="";
} elseif ($age==='3') {
    $url1="http://secondhighest.com";
    $url2="";
    $url3="";
} elseif ($age==='4') {
    $url1="http://highestpayouts.com";
    $url2="";
    $url3="";
} elseif ($age='') {
    $url1="http://yourdefault18plusurl.com";
    $url2="";
    $url3="";
};

?>
I think it's pretty straight forward with what you need to edit... you can change the ages ( the # right before the </option> tag) on page1.php... and then on page2.php just make sure that you assign all the $url#'s to whatever links go with the value of $age

Example:

user selects 18-23 on first page... it would assign the $age variable to '1', which would then make $url1 = your18+offer.com $url2 = yoursecond18+offer.com, etc...

capiche?!?!

Any questions on how to edit it or if it's not working don't hit me up, bbrock is the programmer ;-) Syke, pm me or hit me up on skype and I will try to help :-)

I know there is probably a million easy ways to do this, but like I said, I am no programmer and this was the only way I could actually do it without watching 10 hours of youtube tutorials, so if you see something that's wrong or there's an easier way you'd like to share... feel free to hijack the thread!

-D


01-04-2012 06:26 AM #2 ackbar22000 (Member)

stop saying you are not a programmer :-)
if you were able to understand, modify, use this, you're programmer.


01-04-2012 07:29 AM #3 sm1810 (Member)

was the "looking for a guy" part a freudian slip? :P


01-04-2012 07:58 AM #4 dubbsy (Member)

Lol I like to think of it like learning a second language... Where I can't speak Spanish but I can understand what ppl are saying ... So I can't really just write code, but I can understand what I have to do most of the time

And hahaha could be a "slip" or could be that in using it for female dating


01-04-2012 01:54 PM #5 brodgers (Member)

Great stuff. Remember Finch talking about this concept in one of his premium posts, I just hadn't gotten around to coding one up


01-04-2012 03:04 PM #6 Finch (Moderator)

Good stuff.

You can also take it a step further and use dynamic selections to send users to dating sites that are likely to be more catered to their tastes - based on what they're 'looking for'. Helpful if you don't know the gender and have an offer with different tracking links for male and female.


01-04-2012 03:42 PM #7 dubbsy (Member)

Yeah I started using this once I read Finches Premium Post.. vol 3... if you haven't seen it yet, you should, it's big f*ckin titties

Thanks for the added suggestion Finch, and for replying to the email, looking forward to vol. 4 dude.


Home > Programming, Servers & Scripts >