Results 1 to 10 of 16
Threaded View
-
21st Jun 2011, 11:26 AM #1OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.orgAuto Site Rating
Hi,
I'm trying to setup an auto site rating for WCDDL. I have used the code from a mod here: http://warezcoders.com/forum/viewtopic.php?f=15&t=1095
PHP Code:if(isset($rsites)) {
mysql_query("UPDATE wcddl_sites SET rating=1");
$get300 = mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 0,300");
while ($row = mysql_fetch_array($get300)) {
mysql_query("UPDATE wcddl_sites SET rating= rating+1 where id = '".$row['sid']."'"); }
$get200 = mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 0,200");
while ($row = mysql_fetch_array($get200)) {
mysql_query("UPDATE wcddl_sites SET rating= rating+1 where id = '".$row['sid']."'"); }
$get100 = mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 0,100");
while ($row = mysql_fetch_array($get100)) {
mysql_query("UPDATE wcddl_sites SET rating= rating+1 where id = '".$row['sid']."'"); }
$getwhite = mysql_query("SELECT url FROM wcddl_whitelist");
while ($row = mysql_fetch_array($getwhite)) {
mysql_query("UPDATE wcddl_sites SET rating= rating+1 where url = '".$row['url']."'"); }
echo '<div align="center" style="color:green;">Sites Rated</div>';
}
But it is just setting all the sites as *4 but none of the sites have even 100 downloads (and none in whitelist hence its not setting then as 5*. As it stands all of the sites should be set as 1*. can anybody tell me whats wrong with the code??DEViANCE Reviewed by DEViANCE on . Auto Site Rating Hi, I'm trying to setup an auto site rating for WCDDL. I have used the code from a mod here: http://warezcoders.com/forum/viewtopic.php?f=15&t=1095 if(isset($rsites)) { mysql_query("UPDATE wcddl_sites SET rating=1"); $get300 = mysql_query("SELECT COUNT(title) AS 'number' , sid FROM wcddl_downloads GROUP BY sid ORDER BY number DESC LIMIT 0,300"); while ($row = mysql_fetch_array($get300)) { mysql_query("UPDATE wcddl_sites SET rating= rating+1 where id = '".$row."'"); } Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
AtomicWarez Site Rating
By Ccucu in forum Forum and DDL DiscussionReplies: 7Last Post: 24th Mar 2011, 12:03 PM -
WCDDL Site Rating
By CyberHacK in forum Web Application/Script SupportReplies: 22Last Post: 8th Apr 2010, 11:09 PM -
joeschatterbox 3* site rating
By leaky_joe in forum Site ReviewsReplies: 8Last Post: 14th Feb 2010, 02:25 PM -
WCDDL Site Rating Mod
By DDLwarez in forum Web Application/Script SupportReplies: 5Last Post: 3rd Feb 2010, 03:11 AM -
Site rating of x-sharezone??
By djay in forum Site ReviewsReplies: 2Last Post: 19th Sep 2008, 08:37 PM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...