Rewritten to follow posting guidelines:
Link to my site: http://www.bfeo.org (You cannot get to it anyway, because it's not open to the public)
SMF version: SMF 1.1.6
TP version: TinyPortal v1.0.5 beta 1
Theme name and version: Mystic Jade, courtesy of Bikken
Mods installed:The issue is related entirely with tinyportal, so the other mods should not be relevant.
Related Error messages: Recently I reinstalled my forums using an old backup. Today I was adding new downloads (completely revamping the section), and I noticed that the database still holds information from files no longer uploaded. It becomes noticeable when a person clicks the download section's stats link.
Is there anyway to completely clear the download section's file information without harming the database? I don't mind reuploading what I've done so far, so if current files are erased, that's fine. I've already removed all files from the TPdownloads folder in my FTP.
Help much appreciated. ;D
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
How's that?
You'll have to manually delete the downloads and views row data in the database. This query might work, but I'm not promising anything, so BACKUP before you do. :)
UPDATE smf_tp_dlmanager SET downloads=0, views=0, WHERE type="dlitem";
This assumes your database has an smf_ prefix.
How do I submit a query for the database?
That depends on your host. Most hosts have phpMyAdmin, and you can just put that in the SQL tab and run the query. You'll need to talk to your host to see what they have for managing your databases if you don't know that.
A lot of great info on how to manage and work with your sql can be found here
http://www.mysql.com/
Thanks but I'm already familiar with PhpMyAdmin. I have it and use it. I looked at the query tab and became confused how to use it.
The sql tab. You copy and paste the code I posted. Then hit the submit button to execute the query.
Error
SQL query:
UPDATE smf_tp_dlmanager SET downloads =0,
views =0,
WHERE TYPE = "dlitem"
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE type="dlitem"' at line 1
Remove the trailing comma before the WHERE statement...
UPDATE smf_tp_dlmanager SET downloads=0, views=0 WHERE type="dlitem";
@ich : $sqlfoo-- :buck2:
Good catch Ianedres.
$ianedres_ego++
:2funny:
It appears to not delete the item completely, including leaving file size. All it appeared to do was reset number of times downloaded for every file to 0.
Well, if you have random items that aren't there, but are included in your stats, you'll probably have to go through your table and delete each row that you don't want there.