Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Gr Downloads - a.k.a NukeDepository
Author Message
st247
New Member
New Member



Joined: Apr 19, 2006
Posts: 19

PostPosted: Fri Apr 13, 2007 9:54 am Reply with quote

I would like to have an overview of the downloaded files.
I adjusted the NSNGD_Advanced to contain the latest 10 downloads together with username and that works fine. I created a table which contains userid, downloadid and date.
I wanted to adjust the admin page to have an overview of all downloaded files together with username and date.
I adjusted includes/nsngd.func and modules/Downloads/admin/index.php.
To make sure I didn't make any mistakes I just copied lines that were present.
In nsngd.fun I replaced

Code:
echo "<td align='center' width='25%'>&nbsp;</td>\n";

    echo "<td align='center' width='25%'>&nbsp;</td>\n";
    echo "<td align='center' width='25%'>&nbsp;</td>\n";
    echo "<td align='center' width='25%'><a href='".$admin_file.".php?op=DownloadNew'>"._WAITINGDOWNLOADS."</a> ($newdownloads)</td>\n";


with
Code:
     echo "<td align='center' width='25%'><a href='".$admin_file.".php?op=DownloadOverview'>"._DOWNLOADED."</a></td>\n";

    echo "<td align='center' width='25%'>&nbsp;</td>\n";
    echo "<td align='center' width='25%'>&nbsp;</td>\n";
    echo "<td align='center' width='25%'><a href='".$admin_file.".php?op=DownloadNew'>"._WAITINGDOWNLOADS."</a> ($newdownloads)</td>\n";


And in index.php I added the line
Code:
case "DownloadOverview":@include("modules/$module_name/admin/Downloads.php");break;

So it refers to an existing page that works fine. I did it this way to make sure this part was working and there wouldn't be any errors in a newly created page.

When I go to my Downloads Administration I see the 'Overview downloaded files' link. When I click on it I just get a blank page.
In config.php I set $display_errors to true, but I don't see an error.

Anyone has any idea what might be the problem ?
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Fri Apr 13, 2007 4:09 pm Reply with quote

Sounds like a parsing problem - or, the code in admin/Downloads.php doesn't know what to do with the DownloadOverview op value...

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
st247







PostPosted: Sat Apr 14, 2007 1:18 pm Reply with quote

Is there anything else I should change so that I can get an error ?

Does it need changing in downloads.php too ? I thought that one only listed all the available downloads ?
 
kguske







PostPosted: Sat Apr 14, 2007 3:11 pm Reply with quote

I'd guess it's not a parsing problem. You probably should add code in admin/Downloads.php so it knows what to do when you click the overview link.
 
st247







PostPosted: Sun Apr 15, 2007 12:43 pm Reply with quote

I found the problem. What I changed was correct, but there was also a reference in case.php. So I just added 1 line there and it works fine now.
I now have an overview of downloaded files, with username and date.
Only 'problem' I still have right now is, that I don't know which language file it uses.
I added _DOWNLOADED and _USER to both Downloads/language/lang-english.php as Downloads/admin/language/lang-english.php. I thought it would be the one under the admin directory, as this is an adminpage. It doesn't work, while it does work in the menu on top (called from includes/nsngd.php).
Any idea where I should put it or what I have to change in my DownloadsOverview.php ?
 
pureliving
Worker
Worker



Joined: Dec 01, 2008
Posts: 180

PostPosted: Sat Feb 14, 2009 6:02 pm Reply with quote

Is there any chance you can post a more detailed guide, as the ability to have a overview of downloads sounds brilliant.

I'm using nsn gr downloads.

xx Bless xx
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Gr Downloads - a.k.a NukeDepository

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©