PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
st247
New Member
New Member


Joined: Apr 19, 2006
Posts: 19

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

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: 4640

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

Sounds like a parsing problem - or, the code in admin/Downloads.php doesn't know what to do with the DownloadOverview op value...
View user's profile Send private message
st247
New Member
New Member


Joined: Apr 19, 2006
Posts: 19

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

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 ?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4640

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

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.
View user's profile Send private message
st247
New Member
New Member


Joined: Apr 19, 2006
Posts: 19

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

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 ?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum