ActiveDen

Wordpress Link Hopper plugin and in

947 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Ireland
  • Sold between 10 000 and 50 000 dollars
EireStudio says

I am using the link hopper plugin (masks affiliate links) for a project and it works great, but I’m just wondering is there a way I can place an interstitial page to load before the affiliate link for say 3 seconds? There isn’t alot of code in the plugin, anybody free to help?

http://pastie.org/private/txdp5rhl6h0guarsvlzbza

2848 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark moderator says

Well, I suppose you could set up your interstitial page with a basic HTML redirect, the URL of which is dynamically generated via POST or GET parameter.

Then you could aim your link hopper links at the interstitial page, passing the URL of the destination via GET /POST

Basically, like this

//around line 83 of http://pastie.org/private/txdp5rhl6h0guarsvlzbza

$myinter = 'url_to_interstitial_page';
$redir = $myinter.'?dest='.$redir;

header('Location: '.$redir);

//Then in the <head> of the interstitial page,redirect after 3 secs

<meta content="3;URL=<?php echo $_GET['dest']; ?>" http-equiv="refresh" />
</head>

That’s just off the top of my head (not tested at all), and I have no idea the effect it’d have on SEO , but it’s something to play around with. :)

947 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Ireland
  • Sold between 10 000 and 50 000 dollars
EireStudio says

Well, I suppose you could set up your interstitial page with a basic HTML redirect, the URL of which is dynamically generated via POST or GET parameter.

Then you could aim your link hopper links at the interstitial page, passing the URL of the destination via GET /POST

Basically, like this

//around line 83 of http://pastie.org/private/txdp5rhl6h0guarsvlzbza

$myinter = 'url_to_interstitial_page';
$redir = $myinter.'?dest='.$redir;

header('Location: '.$redir);

//Then in the <head> of the interstitial page,redirect after 3 secs

<meta content="3;URL=<?php echo $_GET['dest']; ?>" http-equiv="refresh" />
</head>
That’s just off the top of my head (not tested at all), and I have no idea the effect it’d have on SEO , but it’s something to play around with. :)

Perfect, thanks :)

2848 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark moderator says

No problem :)

by
by
by
by
by