I apologize for the delay. In link.php change this:
// track hit
$tdate = date("Y-m-d H:i:s");
if($ktrk==1){
// get the user's data
$result = mysql_query("select id from $utable where uid = '$userid'");
list($uid) = mysql_fetch_row($result);
}
To this:
// track hit
$tdate = date("Y-m-d H:i:s");
if($ktrk==1){
// get the user's data
$result = mysql_query("select id,uid,list,email,fname,lname from $utable where uid = '$userid'");
list($uid,$xuid,$list,$email,$fname,$lname) = mysql_fetch_row($result);
if(file_exists('./click-xtra.php')){
include('./click-xtra.php');
mysql_select_db($sqldb,$link);
}
}
Then click-xtra.php will look something like this:
<?php/*------------------------------------------------------------------------------- ListMail click-xtra.php - This file will run after a tracked link is clicked in link.php Modify the file and copy it to your MAIN ListMail dir. It will not be overwritten by updates! Place custom commands below, ListMail database link is already in effect as $link, if you need to access another database, use $link2. Available variables are loaded from the database just before this script is included. $uid - User's automatic numeric ID (note: different from other -xtra scripts for now!) $xuid - User's 6 character unique string. (note: $uid in other -xtra scripts!) $list - List subscribed to. $fname - First name, if available. $lname - Last name, if available. $email - User's email address. NOTE: It is recommended you perform your own list checking to make sure your custom commands run correctly. ie: if($list=='1'){ commands(); exit; }-------------------------------------------------------------------------------*//* // MYSQL CONNECT EXAMPLE $sql2u = 'USERNAME'; $sql2p = 'PASSWORD'; $sql2d = 'DATABASE'; $link2 = mysql_connect('localhost',$sql2u,$sql2p) or die('could not connect'); mysql_select_db($sql2d,$link2); // query example // listmail DB // mysql_query("select id from lm_users where 1",$link); // xtra DB // mysql_query("select id from yourtable where 1",$link2);*/// CUSTOM SCRIPT HERE// echo "click-xtra.php executing!<br><br>";// END?>