July 16th, 2009

Prosper202 Modification: Redirect to any Tab

Here’s a small mod that I’ve been using for my Prosper202 installations. ┬áThis is a pretty simple one. The basic idea is that the mod redirects to any tab you want in tracking202.

Originally, when you logged in, you have to type in your username and password, THEN you have to click on the “tracking202″ link and THEN click on the tab (overview, analyze, visitor, etc) and THEN click on the sub-category of that tab (keywords, referer, etc)

This mod allows you to login and automatically redirect (meta refresh) to the stats that you want.

It’s a fairly easy installation, you basically configure template.php, backup the original one, and then copy it over.

Here’s the readme.txt:

Installation Instructions.
1. Configure template.php *SEE CONFIGURATION INSTRUCTIONS BELOW*
2. rename /202-config/template.php to /202-config/template.php.bak
3. Copy /202-config/template.php to /202-config folder.

Configuration Instructions
1. Open template.php in a text editor.
2. Change the $refreshtime to redirect after X seconds.  Default is set to 2 second.
Example: $refreshtime = 5; // Redirect to the page after 5 seconds.
3. Change $tab_page to the page you want it to redirect to:
Example: $tab_page = "3c"; // Goes to "Text Ads" page

1-"Setup" page

2a-"Overview >> Campaign Overview" page
2b-"Overview >> Daily Overview" page
2c-"Overview >> Hourly Overview" page

3a-"Analyze >> Keywords" page
3b-"Analyze >> Text Ads" page
3c-"Analyze >> Referers" page
3d-"Analyze >> IPs" page
3e-"Analyze >> Landing Pages" page
3f-"Analyze >> Keywords LP CTR" page
3g-"Analyze >> Text Ads LP CTR" page

4-"Visitors" page
5-Spy page
6-Update page

Also, if you ever wanted to access that page, just hit the ESCAPE key to prevent the redirect from forwarding you to the OVERVIEW page.

Here’s a sample of the mod code from template.php:

if (($navigation[1] == '202-account') and (($navigation[2] != 'account.php') and ($navigation[2] != 'administration.php')) ) {

// Set $refreshtime to the # of seconds to wait until redirecting
//
// Set $tab_page to the page to be redirected to: (Default is 2-Overview page)
//   1-"Setup" page
//
//   2a-"Overview >> Campaign Overview" page
//   2b-"Overview >> Daily Overview" page
//   2c-"Overview >> Hourly Overview" page
//
//   3a-"Analyze >> Keywords" page
//   3b-"Analyze >> Text Ads" page
//   3c-"Analyze >> Referers" page
//   3d-"Analyze >> IPs" page
//   3e-"Analyze >> Landing Pages" page
//   *3f-"Analyze >> Keywords LP CTR" page
//   *3g-"Analyze >> Text Ads LP CTR" page
//
//   4-"Visitors" page
//   5-"Spy" page
//   6-"Update" page
//
// *NOTE: 3f, 3g are used if you installed the LP CTR script.

$refreshtime = "2";
$tab_page = "2a";

switch ($tab_page) {
    case "1":
        $tab_page_url = "/tracking202/setup";
        break;
    case "2a":
        $tab_page_url = "/tracking202/overview";
        break;
    case "2b":
        $tab_page_url = "/tracking202/overview/daily.php";
        break;
    case "2c":
        $tab_page_url = "/tracking202/overview/hourly.php";
        break;
    case "3a":
        $tab_page_url = "/tracking202/analyze/keywords.php";
        break;
    case "3b":
        $tab_page_url = "/tracking202/analyze/text_ads.php";
        break;
    case "3c":
        $tab_page_url = "/tracking202/analyze/referers.php";
        break;
    case "3d":
        $tab_page_url = "/tracking202/analyze/ips.php";
        break;
    case "3e":
        $tab_page_url = "/tracking202/analyze/landing_pages.php";
        break;
    case "3f":
        $tab_page_url = "/tracking202/analyze/keywords_lpctr.php";
        break;
    case "3g":
        $tab_page_url = "/tracking202/analyze/text_ads_lpctr.php";
        break;
    case "4":
        $tab_page_url = "/tracking202/visitors";
        break;
    case "5":
        $tab_page_url = "/tracking202/spy";
        break;
    case "6":
        $tab_page_url = "/tracking202/update";
        break;
    default:
    	$tab_page_url = "/tracking202/";
}

You can download the mod here: p202redirectV3.zip

Be Sociable, Share!

7 Responses to “Prosper202 Modification: Redirect to any Tab”

Trevor Nash-Keller says:
July 16th, 2009 at 10:31 am

Nice mod, I like anything that can save me some time!
.-= Trevor Nash-Keller´s last blog ..Swear at an IVR (interactive voice response) system = Instant human on the line! =-.

Daehee says:
July 16th, 2009 at 11:56 am

This is perfect, thanks! We should start a github repo for a modified Prosper202.

Affbuzz says:
July 16th, 2009 at 11:34 pm

Damn, this mod rocks. One less click to get to Spy!

Edward says:
February 19th, 2010 at 2:46 am

This is awesome! Thanks for sharing it.
.-= Edward´s last blog ..weboholic: That was an awesome game last night! I’m really happy the Saints won. =-.

Wes says:
March 26th, 2010 at 12:08 am

Here’s another way to get to spy view (or any view for that matter) very quick. It bypasses all the RSS and advertising calls. Finally I have zero delays when logging in.

Anyway, edit “202-login.php”

Copy and paste this bit of code over lines 79-80

//redirect to spy view
header(‘location: /tracking202/spy’);

I left the comment in just to remind me.
.-= Wes´s last blog ..Content Network Domination With ImageAds =-.

The Top 5 Prosper202 Hacks & Mods | Inside Affiliate says:
May 10th, 2010 at 2:59 pm

[...] 2. Redirect Prosper202 To Any Tab [...]

A Couple Of Quick Suggestions For The Guys At Tracking202 says:
October 27th, 2010 at 10:24 pm

[...] Nerdyaffiliate has a solution for this. Cool guy. This entry was posted in Tools and tagged prosper202, Tools, [...]

Leave a Reply

CommentLuv badge