TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 211
  • Total: 211

TinyPortal Downloads

Started by bfeo, October 02, 2008, 08:32:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bfeo

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


bfeo


IchBin

#3
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.

bfeo

How do I submit a query for the database?

IchBin

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.

G6Cad

A lot of great info on how to manage and work with your sql can be found here
http://www.mysql.com/

bfeo

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.

IchBin

The sql tab. You copy and paste the code I posted. Then hit the submit button to execute the query.

bfeo

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

This website is proudly hosted on Crocweb Cloud Website Hosting.