Current time: 10-28-2012, 02:06 PM    Register | Lost Password?

Contest #1- First member to have 5 referals will get VIP status. You can find your referal link in your UserCP


Post Reply 
Site Rating MOD
Author Message
c0rrupt Offline
Administrator


Posts: 262
Joined: Mar 2010
Post: #1
Site Rating MOD
This MOD was made by frontlinegamerz, and it was in his forum warezwitch, but has its down for some time I decided to post it here...

Backup Your funcs.php file before you install this mod!

SQL STATEMENTS
$sql = "ALTER TABLE `wcddl_sites` ADD `emailsubmit` TEXT NOT NULL";
$sql = "ALTER TABLE `wcddl_sites` ADD `rate` TEXT NOT NULL";

Open funcs.php

Line 152 +-
Find:
$downloadSite = mysql_query("SELECT name as sname, url as surl, FROM wcddl_sites WHERE id = '".$row['sid']."'");

Replace with:
$downloadSite = mysql_query("SELECT name as sname, url as surl, rate as srate FROM wcddl_sites WHERE id = '".$row['sid']."'");

Find the func admin queue():

Delete all and replace with :
protected function admin_queue() {
        if(isset($_POST['url']))
            $url = $_POST['url'];
            if(isset($_POST['emailsubmit']))
            $emailsubmit = $_POST['emailsubmit'];
            if(isset($_POST['rate']))
            $rate = $_POST['rate'];
        if(isset($_POST['sitesub']))
            $sitesub = $_POST['sitesub'];
        if(isset($sitesub)) {
            @mysql_query("UPDATE wcddl_sites SET emailsubmit='$emailsubmit', rate='$rate' WHERE url='$url'");
            echo 'Notes added.';
                      
                }
            echo '<form action="" method="post"><table width="100%">
        <tr><td align="center">Add Notes to Sites</td></tr>
        <tr><td align="center">URL<input type="text" name="url">Date/Notes<input type="text" name="emailsubmit">Rating:<input type="text" name="rate"></td></tr>
        <tr><td align="center"><input type="submit" value="Make Note" name="sitesub"></td></tr></table></form><br>';                  
        if(isset($_POST['asub']) && isset($_POST['ad']) && !empty($_POST['ad'])) {
            foreach($_POST['ad'] as $addKey => $addVal) {
                $fetch = mysql_query("SELECT sid,title,type,url FROM wcddl_queue WHERE id = '".mysql_real_escape_string($addVal)."'");
                $fetch = mysql_fetch_assoc($fetch);
                mysql_query("DELETE FROM wcddl_queue WHERE id = '".mysql_real_escape_string($addVal)."'");
                mysql_query("INSERT INTO wcddl_downloads (sid,title,type,url,dat) VALUES ('".$fetch['sid']."','".$fetch['title']."','".$fetch['type']."','".$fetch['url']."','".time()."')");
            }
        }
        if(isset($_POST['dsub']) && isset($_POST['ad']) && !empty($_POST['ad'])) {
            foreach($_POST['ad'] as $delKey => $delVal) {
                mysql_query("DELETE FROM wcddl_queue WHERE id = '".mysql_real_escape_string($delVal)."'");
            }
        }
        if(isset($_POST['ucsub']) && isset($_POST['rmuc'])) {
            if(strpos($_POST['rmuc'],",") === false)
            mysql_query("DELETE FROM wcddl_queue WHERE id = '".mysql_real_escape_string($_POST['rmuc'])."'");
            else {
            $rmuc = explode(",",$_POST['rmuc']);
                foreach($rmuc as $rmucID)
                mysql_query("DELETE FROM wcddl_queue WHERE id = '".mysql_real_escape_string($rmucID)."'");
            }
        }
        $get = mysql_query("SELECT q.id,q.sid,q.title,q.type,q.url FROM wcddl_queue q LEFT JOIN wcddl_sites s ON (s.id = q.sid) ORDER BY s.rate ASC");
        $unclean = array();
        echo '<form action="" method="post" name="queue"><table width="100%">
        <tr><td>Type</td><td>Title</td><td>Site</td><td>Email</td><td>Emailsubmit</td><td>rating</td><td>Select</td><td>Cleanliness</td></tr>';
        while($got = mysql_fetch_assoc($get)) {
            $site = mysql_query("SELECT name as sname, url as surl,email,emailsubmit,rate FROM wcddl_sites WHERE id = '".mysql_real_escape_string($got['sid'])."' LIMIT 1");
            $site = mysql_fetch_assoc($site);
            $got = array_merge($site,$got);
            $got = $this->mapit($got,array("stripslashes"));
            unset($hack);
                foreach($got as $check) {
                    if($check != strip_tags($check)) {
                    $unclean[] = $got['id'];
                    $hack = '<span style="color:#FF0000;">UNCLEAN</span>';
                    }
                }
                if(!isset($hack))
                $hack = '<span style="color:green;">CLEAN</span>';
            $got = $this->mapit($got,array("strip_tags"));
            echo '<tr>
            <td>'.$got['type'].'</td>
            <td><a href="'.$got['url'].'" target="_blank">'.$got['title'].'</a></td>
            <td><a href="http://'.$got['surl'].'" target="_blank">'.$got['sname'].'</a></td>
            <td><a href="mailto:'.$got['email'].'?subject=Dark DDL Submissions&body=">'.$got['email'].'</a></td>
            <td>'.$got['emailsubmit'].'</td>
            <td>'.$got['rate'].'</td>
            <td><input type="checkbox" name="ad[]" value="'.$got['id'].'"></td>
            <td>'.$hack.'</td>
            </tr>';
        }
        echo '<tr>
        <td><input type="submit" value="Accept Selected" name="asub"></td>
        <td><input type="submit" value="Delete Selected" name="dsub"></td>
        <td><input type="button" value="Select All" id="sbutton" onclick="jamez();"></td>';
        if(isset($unclean[0]))
            echo '<td><input type="hidden" value="'.implode(",",$unclean).'" name="rmuc"><input type="submit" value="Remove Unclean" name="ucsub"></td>';
        echo '</tr>';
        echo '</table></form>';
    }

Open index.php and find:
<tr><td>Type</td><td><strong>Title</strong></td><td>Views</td><td>Rating</td></tr>

Replace with:
<tr><td>Type</td><td><strong>Title</strong></td><td>sites</td><td></td><td>Views</td><td>Rating</td></tr>

Find:
<tr><td><?=$dl['type']?></td><td><a href="download.php?id=<?=$dl['id']?>"><?=$dl['title']?></a></td><td><?=$dl['views']?></td><td><?=$dl['rating']?></td></tr>

Replace with:
<tr><td><?=$dl['type']?></td><td><a href="download.php?id=<?=$dl['id']?>"><?=$dl['title']?></a></td><td><center><a href="http://<?=urlencode($dl['surl'])?>"><?=$dl['sname']?></a></center></td><td><?=$dl['srate']?></td><td><?=$dl['views']?></td><td><?=$dl['rating']?></td></tr>

on line 3 put make sure this is what is there
$downloads = $core->fetchDownloads(true);

=========================================================

To rate sites login to the Admin panel.. Go to Queue and you will see the options to rate sites.
02-16-2011 08:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
c0rrupt Offline
Administrator


Posts: 262
Joined: Mar 2010
Post: #2
Site Rating MOD
110% + rep
02-17-2011 05:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
WJManiaC Offline
Newbie


Posts: 11
Joined: Dec 2011
Post: #3
Site Rating MOD
Hello guys it works and all but i was wondering how you can get it close because its 2 far apart. i posted an imaged below.






12-24-2011 09:12 PM
Find all posts by this user Quote this message in a reply
c0rrupt Offline
Administrator


Posts: 262
Joined: Mar 2010
Post: #4
Site Rating MOD
For the last edit try this.
PHP Code: (Select All)
<tr><td><?=$dl['type']?></td><td><a href="download.php?id=<?=$dl['id']?>"><?=$dl['title']?></a></td><td><center><?=$dl['srate']?><a href="http://<?=urlencode($dl['surl'])?>"><?=$dl['sname']?></a></center></td><td><?=$dl['views']?></td><td><?=$dl['rating']?></td></tr> 
12-24-2011 11:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
WJManiaC Offline
Newbie


Posts: 11
Joined: Dec 2011
Post: #5
Site Rating MOD
c0rrupt Wrote:For the last edit try this.
PHP Code: (Select All)
<tr><td><?=$dl['type']?></td><td><a href="download.php?id=<?=$dl['id']?>"><?=$dl['title']?></a></td><td><center><?=$dl['srate']?><a href="http://<?=urlencode($dl['surl'])?>"><?=$dl['sname']?></a></center></td><td><?=$dl['views']?></td><td><?=$dl['rating']?></td></tr> 

I have a question does this mod go with the other one because im getting an error.
12-24-2011 11:34 PM
Find all posts by this user Quote this message in a reply
WJManiaC Offline
Newbie


Posts: 11
Joined: Dec 2011
Post: #6
Site Rating MOD
K i got it to works but now it loos like this how can i fix it plz. Smile








and how can i add a up arrow so it wont repeat the site ?
12-25-2011 06:37 PM
Find all posts by this user Quote this message in a reply
c0rrupt Offline
Administrator


Posts: 262
Joined: Mar 2010
Post: #7
Site Rating MOD
Looks like you have an extra column in your download table.

If you can provide a link to your site it would be easier to help
12-27-2011 11:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
WJManiaC Offline
Newbie


Posts: 11
Joined: Dec 2011
Post: #8
Site Rating MOD
My site is Piratesddl.co.cc Smile, if you have msn ill be on.
12-27-2011 07:06 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Show the downloads for a specific site (WCDDL v2) c0rrupt 0 109 07-26-2012 04:35 PM
Last Post: c0rrupt
  Show site Downloads/Rank [module] c0rrupt 9 607 12-25-2011 01:41 AM
Last Post: WJManiaC
  Admin Blacklist remove site downs or not c0rrupt 0 187 11-07-2010 02:17 PM
Last Post: c0rrupt
  Accept All Downloads By Site c0rrupt 1 268 05-28-2010 07:41 AM
Last Post: nirav5300
  Site Provider with up ^ arrow ^ c0rrupt 2 267 04-27-2010 07:46 AM
Last Post: nirav5300
  Site Provider (index page) c0rrupt 0 233 04-16-2010 01:02 PM
Last Post: c0rrupt



User(s) browsing this thread: 1 Guest(s)

Affiliates
PhazeDDL WarezUNION WarezOrder Free Full Downloads Free Full Downloads SuppaDDL Free Full Downloads CafeDDL-Serves Premium Downloads! Free Full Rapidshare Fileserve Netload RapidGator Extabit Warez Downloads
This forum uses Lukasz Tkacz MyBB addons.