PDA

View Full Version : Quick Help?


Koutaru
05-20-2003, 06:22 PM
Can someone please help me by telling me what codes I need to remove exactly so I can get rid of attachments completely. I tried, now I'm getting a MYSQL error since I already deleted the tables in the database

-.-;;

Thanks!! I hope this is quick ;)

filburt1
05-20-2003, 06:23 PM
1. Turn them off for every usergroup and every permission
2. Turn them off in the admin CP
3. Run these queries:

UPDATE post SET attachmentid = 0;
DELETE FROM attachment;

Xenon
05-20-2003, 06:27 PM
also UPDATE thread SET attach=0

Koutaru
05-20-2003, 06:33 PM
-.-; I dropped attachmentid in post and attach in thread

I was trying to delete all the attachment codes as well but now I have an error in showthread etc.


Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
WHERE post.postid IN (0,8,9,10,11)
ORDER BY dateline

filburt1
05-20-2003, 06:34 PM
Don't drop the fields unless you enjoy rewriting half of vB's queries...just empty them.

Koutaru
05-20-2003, 06:38 PM
I'm too picky about these things >.< I want the code to be very clean.

I'll try to figure out the queries (unless someone is willing to help), if all else fails, I backed up everything