![]() |
getting this error Database error in vBulletin 2.2.5:
Invalid SQL: SELECT privatemessage.*,icon.title as icontitle,icon.iconpath,attachment.attachmentid,at tachment.filename,attachment.counter FROM privatemessage LEFT JOIN icon ON (privatemessage.iconid = icon.iconid) LEFT JOIN attachment ON (attachment.attachmentid = privatemessage.attachmentid) WHERE privatemessageid=97729 mysql error: Unknown column 'privatemessage.attachmentid' in 'on clause' mysql error number: 1054 Date: Thursday 02nd of May 2002 07:13:57 PM Script: http://www.emusanet.com/forums/forum...essageid=97729 Referer: http://www.emusanet.com/forums/private.php?s= i assume thats a problem with my private.php file, its attached, as far as i can tell everything is fine with it :( ---- Quote:
|
Quote:
PHP Code:
|
any reason why when i delete the messages from the sender and reciver that the attachments are still in the database?
|
Hallo fire,
I have a weird error with this one. All seems to be working but if I have a look at my pm sent box a day later, then the attachment is gone. The attachment Icon in the pm does not show up anymore and the amount of downloads also no longer. This attachment link is also gone. Any Ideas what that might be. This happens on the sender als well as the recipient side. greetings tina |
can anyone please help me get thisd hack working cause it still doesnt work with kidney's fix :(
|
getting this error when i try to view a attachment
Database error in vBulletin 2.2.6: Invalid SQL: SELECT forumid FROM thread WHERE threadid= mysql error: You have an error in your SQL syntax near '' at line 1 mysql error number: 1064 Date: Saturday 22nd of June 2002 06:26:17 PM Script: http://www.totalshock.net/forums/for...atemessageid=5 Referer: http://www.totalshock.net/forums/pri...atemessageid=5 any help pls |
I am able to attach files to pm's however when a person goes to view them they get
Parse error: parse error in /home/xxxxxxxxxxxxxx/forums/attachment.php on line 67 I did this step correctly In file attacment.php replace this: | +-------------------------------------------------------------------------------------------------+ updateuserforum($getforuminfo['forumid']); +-------------------------------------------------------------------------------------------------+ | | +-------------------------------------------------------------------------------------------------+ | With this: | +-------------------------------------------------------------------------------------------------+ if ($privateok==0) { updateuserforum($getforuminfo['forumid']); } ----------------------------------------------------------------------- the updateuserforum line is line 67 in my file here are the lines surrounding that part if ($privateok==0) { updateuserforum($getforuminfo['forumid']); } $getforuminfo['threadid']); if ($noshutdownfunc) { does anyone see any errors here? thanks in advance. p.s. it seems to have problems attachming anywhere even to posts. |
Nice work Chen
*clicks install* |
Email me your attachment.php file by email.
|
Oh bummer :(
This one is no longer working. Upgraded to vB2.2.6 a while ago, and changed php (register_globals = Off) Now there's no more attachment in pm's. I've taken a peek with phpMyAdmin, and the private message that's supposed to have an attachment shows no attachmentid (= 0) :ermm: |
Turn reg_globals on.
|
Hallo Firefly,
i already posted about this problem before, but didnt get any feedback yet. I rechecked the hack installation today and updated it to the current version, but it hasnt made any difference to my problem. At first all seems to work fine, the attachment can be added and shows up in the receveivers and senders pm's. However after about 30 min. the icon and link for the attachment download disappears aswell at the number for the amount of times it was downloaded. Its really weird. Im attaching a screenshot, of how the pm looks after 30 min or so. Would appreciate any help. Tina |
Do you have my hack of keeping attachments on preview post?
|
No chen, I dont have a hack for keeping PM attachments installed (only for the normal postings).
Tina |
That's not what I'm talking about. Do you have this hack installed?
https://vborg.vbsupport.ru/showthrea...threadid=38995 |
Yes I have that installed.
|
In newreply.php and newthread.php replace this:
PHP Code:
PHP Code:
|
Thank you chen!!!
Looks like that has solved my Problem :) Tina |
bravo firefly, another fantastic hack :)
|
Have everybody make this one:
"except for limiting this for usergroups -- if you want that do it yourself it's not hard but I'm tired of adding permissions to the dreaded usergroup.php" i want that only mods and admins can posting attachements. Can everybody help me? |
hmm is nobody here there can fix this hack?
I want that only mods and admins can posting attachements. Can everybody help me? |
Great hack!!! Thanks a ton! :)
|
Quote:
|
Quote:
|
Hi I am having the same problem as IceMalee...I get some database errors at line 1
PHP Code:
|
I really want to install this Hack, but after reading all post and downloading the the text file, I have one question.
Has the install privattach.txt file been updated with all the changes I see in the 5 pages of post? Or do I have to follow the instructions and then come back and make the other changes I see posted here? Thanks |
Database error in vBulletin 2.2.6:
I'm getting the following error aftertrying to send a PM: Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt,attachmentid) VALUES (NULL,1,1,1,'hahah','ahaha',1036464302,'1','0',0,0 ,1,) mysql error: You have an error in your SQL syntax near ')' at line 1 mysql error number: 1064 Is Firefly still watching this thread?I Hope. :) |
Invalid SQL: INSERT INTO attachment (attachmentid,userid,dateline,filename,filedata,vi sible,private) VALUES
(NULL,1,1036510300,'java msg anim.txt','','1','1') mysql error: Unknown column 'private' in 'field list' mysql error number: 1054 Date: Tuesday 05th of November 2002 08:31:40 AM Script: http://dev.********.com/private.php Referer: http://dev.********.com/private.php?...age&userid=218 Hey FireFly Got your Wings On? Or is this now a unsupported HACK now that its out of Bata? |
You forgot to add the field 'private' in your database ....
|
Read the statement under the thread title:
"The hacker cannot guarantee to provide support for this hack." Also, most of the problems are because the installer has not followed the instructions properly. For example, like Rolodex said, you didn't run the query to insert the column "private" in the "attachment" table. |
I have ran the
query(s): ALTER TABLE attachment ADD private TINYINT(1) UNSIGNED DEFAULT "0" NOT NULL AFTER visible; ALTER TABLE privatemessage ADD attachmentid SMALLINT(5) UNSIGNED NOT NULL; Which produced these lines in the db. Database dsstv_forum2 - table privatemessage Field = attachmentid Type = SMALLINT Length/Values* = 5 Attributes = UNSIGNED Null = not null default = 0 Extra = Database dsstv_forum2 - table attachment running on localhost Field = private Type = TINYINT Length/Values* = 1 Attributes = UNSIGNED Null = not null Default = 0 Extra = ~ So much for not following the instructions ~ |
Quote:
13 tables ... 12 Values |
Quote:
Second, look at the attachment.php for that SQL INSERT string and look for anything that might not seem valid on or around the column name. Make sure that the column inside the database has the same name that the query is trying to enter data to ... |
Quote:
Now onto the next problem... Nothing "major", but the paperclip.gif image is not appearing next to the PM title. Here's what I have in Private.php: PHP Code:
|
My Question ....
How many themes are you working with? Also, i'd check the spelling of the paperclip image for caps ... I had a simular problem like that and that was the problem. Make sure it's in lower case! |
Just a single theme on my test board, and the code I pasted is taken directly from my private.php file...paperclip.gif is in all lowercase. Just to cleare it up, I'm not getting a "broken image"...theres just nothing showing up where paperclip.gif should be. Weird.
|
Quote:
I have gone back to the Org. php files and added all the lines need to them. I have added the new lines to Template and created the new template. Uploaded all files And Im right back to the Org. error: Database error in vBulletin 2.2.8: Invalid SQL: INSERT INTO attachment (attachmentid,userid,dateline,filename,filedata,vi sible,private) VALUES (NULL,1,1036627824,'newbie guide.txt',','1','1') mysql error: Unknown column 'private' in 'field list' mysql error number: 1054 Date: Wednesday 06th of November 2002 05:10:24 PM Script: http://dev.*********.com/private.php Referer: http://dev.*********.com/private.php...age&userid=218 How do I fix this And yes the tables where added to the DB. |
I need help
I installed the hack fine with out any problems but when someone clicks the attachments in the PM they get the following error Parse error: parse error in /home/mike1121/public_html/board/attachment.php on line 100 here are lines 89 to 102 in my attachments.php file Code:
if ($extension=='gif') { |
anyone?
|
I wonder if it is possible to limit this function to only certain user groups? :)
|
All times are GMT. The time now is 04:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|