DOWNLOAD smarters v4 Modded back to old theme

JEMUMAN

Well-known member
Top Poster Of Month
Joined
Mar 16, 2023
Messages
579
Awards
4
Offline
helllo every one if u want the smarters 4 ads panel to work with smarters 3 ads on here to work replace this on your adpage.php file in your panel put this html code in
<?php

error_reporting(0);
$db = new SQLite3('./.db.db');
$imgs = $db->query("SELECT * FROM ads");
$rows = $db->query("SELECT COUNT(*) as count FROM ads");
$row = $rows->fetchArray();
$numRows = $row['count'];
while ($imge = $imgs->fetchArray()) {
$data[] = ["id" => $imge['id'], "title" => $imge['title'], "type" => "image", "link" => "", "description" => "AHD", "orderby" => "0", "position" => "horizontal", "extension" => $imge['extension'], "createdon" => $imge['createdon'], "path" => $imge['path'], "orignal" => $imge['path'], "thumbpath" => $imge['path']];
}
$jdata = json_encode($data);
echo "{\"result\":\"success\",\"data\":{\"vertical\":{\"adds\":" . $jdata .", \"count\": " . $numRows . "}}}";


?>
but it will not work switching from autoads to menads it will be just ads unless someone could figture out
 

JEMUMAN

Well-known member
Top Poster Of Month
Joined
Mar 16, 2023
Messages
579
Awards
4
Offline
or this
<?php
error_reporting(0);
$db = new SQLite3('./.db.db');
$imgs = $db->query("SELECT * FROM ads");
$rows = $db->query("SELECT COUNT(*) as count FROM ads");
$row = $rows->fetchArray();
$numRows = $row['count'];

$data = array();
$json_response = array();

while ($imge = $imgs->fetchArray()) {
$data[] = [
"id" => $imge['id'],
"title" => $imge['title'],
"type" => "image",
"link" => "",
"description" => "AHD",
"orderby" => "0",
"position" => "horizontal",
"extension" => $imge['extension'],
"createdon" => $imge['createdon'],
"path" => $imge['path'],
"orignal" => $imge['path'],
"thumbpath" => $imge['path']
];

$row_array['AdName'] = $imge['Title'];
$row_array['AdUrl'] = $imge['path'];
array_push($json_response, $row_array);
}
 
Top