Skip to main content
added 1 character in body
Source Link
matt2000
  • 274
  • 1
  • 7

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up youyour advertisement page as path/to/advert and have it redirect to $_GET['somevar'] after the timeout.

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up you advertisement page as path/to/advert and have it redirect to $_GET['somevar'] after the timeout.

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up your advertisement page as path/to/advert and have it redirect to $_GET['somevar'] after the timeout.

added 2 characters in body
Source Link
niksmac
  • 7.7k
  • 3
  • 31
  • 69

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up you advertisement page as path/to/advert and have it redirect to $_GET['somevar']$_GET['somevar'] after the timeout.

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up you advertisement page as path/to/advert and have it redirect to $_GET['somevar'] after the timeout.

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up you advertisement page as path/to/advert and have it redirect to $_GET['somevar'] after the timeout.

Source Link
matt2000
  • 274
  • 1
  • 7

With a quick glance at the shurly code, I'd think this should work:

function yourmodule_shurly_redirect_before(&$redirect) {
  $redirect->destination = 'path/to/advert?somevar='. $redirect->destination; 
}

And then you need to set up you advertisement page as path/to/advert and have it redirect to $_GET['somevar'] after the timeout.