Demo RevMax Plugin for OpenX

Questions about openx adserver plugin RevMax?

RevMax OpenX Plugin Features

Author Topic: Package id lost on signup error using custom urls  (Read 1036 times)

Offline btdsoft

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • btdsoft.com Independant OpenX Consultant
    • btdsoft.com
Package id lost on signup error using custom urls
« on: March 05, 2011, 08:12:45 AM »
It was pointed out that when a client made a error like username exist, the advertisers signup page reloaded without packageid info, causing them to start over.

If you experience this error find line 421 in /clients/advertisers.php:
Code: [Select]
$packageid = $_GET["packageid"];and replace with:
Code: [Select]
$packageid = $_GET["packageid"];
if(isset($packageid)){
$packageid = $packageid;}
else{
$packageid = $_POST["packageid"];}

Line 432 change to:
Code: [Select]
<input type="hidden" name="packageid" value="<?php echo $packageid ;?>">
Probably a better way of doing it, let me know, but this works.