TalkPTC
The MarketPlace => Development and Support => Aurora Fixes And Updates => Topic started by: Ayman on April 15, 2012, 09:40:30 PM
-
-This fix it for edit popups in ad manager from members side in latest sdr3 script , currently when member tries to edit a popup it gives them an error saying
You do not have permission to this area
-To fix this do the following :
open this file : members/view_popup.php , find this code :
else {
if($action == "save") {
$Db1->query("UPDATE ads SET daily_limit='".addslashes($daily_limit)."', upgrade='".addslashes($premOnly)."' WHERE id='$id'");
$Db1->sql_close();
header("Location: index.php?view=account&ac=view_link&id=$id&".$url_variables."");
exit;
}
change it to be :
else {
if($action == "save") {
$Db1->query("UPDATE popups SET daily_limit='".addslashes($daily_limit)."', upgrade='".addslashes($premOnly)."' WHERE id='$id'");
$Db1->sql_close();
header("Location: index.php?view=account&ac=view_popup&id=$id&".$url_variables."");
exit;
}
and error should be fixed now