PPN:
Ok, I will see what you do. Thanks.
I added another row so that the actual banner would show up too.
Below the last </tr> I added
echo "<tr>";
echo "<td colspan='4' align='center'>$ads[advert]</td>";
echo "</tr>";
and I added the ability to reset the count on the advert to zero if you wanted by adding
// ###################### Start Reset #######################
if ($action=="reset") {
doformheader("ads","zero");
makehiddencode("adid",$adid);
maketableheader("Confirm reset");
makedescription("Are you sure you want to reset this advert");
doformfooter("Yes","",2,"No");
}
// ###################### Start Kill #######################
if ($HTTP_POST_VARS['action']=="zero") {
$ad = $DB_site->query("SELECT name FROM ads WHERE adid='$adid'");
$DB_site->query("UPDATE ads SET exposed=0 WHERE adid='$adid'");
echo "<p>Advert $ad[name] has been reset</p>";
$action="list";
}
and just link to reset.
Thanks again for a great hack. This is something that I thought should have been included with vBulletin from the start.
Parker
|