(#1)
c0rrupt Offline
Administrator
 
Posts: 197
Join Date: Mar 2010
Location: Canada
Accept All Downloads By Site - 04-16-2010, 05:07 PM

Open funcs.php.
Find:
Code:
<td><input type="checkbox" name="ad[]" value="'.$got['id'].'"></td>
Replace it with:
Code:
<td><input type="checkbox" name="ad[]" value="'.$got['id'].'" site="'.$got['sid'].'"></td>
Find:
Code:
<td><a href="http://'.$got['surl'].'" target="_blank">'.$got['sname'].'</a></td>
Replace with:
Code:
<td><a href="http://'.$got['surl'].'" target="_blank">'.$got['sname'].'</a> (<a href="#" onclick="selectsite(\''.$got['sid'].'\'); return false;" title="Toggle Selection From This Site">Toggle</a>)</td>
Open adminfolder/index.php.
Find:
Code:
</script>

Add Above:
Code:
var selected = [];
function selectsite(sid)
{
   if(!selected[sid]) selected[sid]=true; else selected[sid]=false;
   for(var i=0;i<document.queue.elements['ad[]'].length;i++)
   {
      if(document.queue.elements['ad[]'][i].getAttribute('site') == sid)
         document.queue.elements['ad[]'][i].checked = selected[sid];
   }
}
Original Poster: ddlshack


Before doing any edits to your DDL Site always make a BACKUP first.
(#2)
nirav5300 Offline
 
Posts: 7
Join Date: Apr 2010
Re: Accept All Downloads By Site - 05-28-2010, 12:41 PM

its working very nice thanks

Bookmarks

Tags
accept, downloads, site

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO