Author Topic: Fix For Edit PopUps in Members Ad Manager In SDR 3 Scripts  (Read 2107 times)

0 Members and 1 Guest are viewing this topic.

  • Developer
  • Hero Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 933
  • Karma: +58/-2
  • Referrals: 81
    • Cashons Network
    • Email
Fix For Edit PopUps in Members Ad Manager In SDR 3 Scripts
« 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



 

advertise here