TalkPTC

The MarketPlace => Development and Support => Aurora Fixes And Updates => Topic started by: Ayman on April 15, 2012, 09:40:30 PM

Title: Fix For Edit PopUps in Members Ad Manager In SDR 3 Scripts
Post 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
Quote
You do not have permission to this area

-To fix this do the following :

open this file : members/view_popup.php , find this code :

Code: [Select]
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 :
Code: [Select]
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