vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PM Attachments 3.5 (https://vborg.vbsupport.ru/showthread.php?t=95477)

predatorkill 11-01-2005 08:47 AM

I ve run this query:

ALTER TABLE xxxx_attachment add usedin varchar(30) not null;

AND

I get the following mysql error:

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT attachmentid
FROM xxxx_attachment AS attachment
LEFT JOIN xxxx_pmtext AS pmtext ON attachment.usedin='pmtextid' AND attachment.itemid=pmtext.pmtextid
WHERE
pmtext.pmtextid IS NULL
AND usedin<>''
AND itemid<>'';

MySQL Error : Unknown column 'usedin' in 'where clause'
Error Number : 1054

any solutions?Thanks in advance!

How can i revert the table back to normal?

Kuimera 11-06-2005 08:07 PM

Quote:

Originally Posted by lowandloudinc
the code your looking for is at the top of the template you need to look in
about 5 or 6th line i think

Hey m8, I put there the code I got, if you make a search, you will not find the "$_pmt = 1;"

Prob I?m dumb, dont know...

WNxWakko 11-11-2005 01:50 AM

Were do the attachments go? I attach to a PM, it lists it in the popup window, I submit. When I do it again, the popup window doesnt show it in my attach inventory, nor does it in my main attachment inventory. Is it just a floating attachment or something? Oh and where it would normally list my attach inventory, it says array and nothing more.

Sychev_S 11-13-2005 05:01 PM

I get this error when tryign to send pm with attachment:
Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE pmtext SET attach='1' WHERE pmtextid='333';

MySQL Error : Unknown column 'attach' in 'field list'
Error Number : 1054
Date : Sunday, November 13th 2005 @ 01:54:34 PM
Script : http://www.talkinto.com/forums/private.php
Referrer : http://www.talkinto.com/forums/private.php?do=newpm&u=5
IP Address : 209.158.71.16
Username : Administrator
Classname : vb_database

I can also NO longer add regualr attachments to post...
anybody knows how to fix that?

Sychev_S 11-13-2005 05:32 PM

Nvermind.
I configured config.php to allow me run quiries from admincp (used to run form phpmyadmin).
I ran them, everything is back to normal but I still cannot send attachments. I attach them, but when other person opens pm he sees no attachments there. No errors.

Sychev_S 11-13-2005 07:13 PM

okey, I just deleted plugin and installed it again.
Works perfectly now! vb 3.5.0
Thank you!

zendiver 11-29-2005 02:37 AM

Will this work for 3.5.1?

Snake 11-29-2005 12:08 PM

Yes it will.

zendiver 12-01-2005 04:14 PM

Installed and works great.

zendiver 12-01-2005 06:45 PM

A little hasty I was. It works for me, BUT others get this error:

Quote:

Close this window Manage Attachments
Upload Errors
Picture 23.jpg:
File system directory is not writable.
I thought this was storing the attachments to the same place the threads are? I checked my permissions there and they are set to 777

zendiver 12-07-2005 11:08 PM

BP, any news on an update to this?

Happy Holidays all.

zooman 12-13-2005 01:14 AM

Sorry to be thick but this is new to me. Right it is not working and it prop because of this

Quote:

QuickFaq
I'm getting Invalid Post specified:
That means the plugin was unable to get attachments permissions for the user. The solution is to locate a thread in your forum (one that shouldn't be deleted in a long time, it doesn't matter if it's closed). Remember it's threadid
Go to Plugin Manager and click on "private attachments - get posthash and allow attachments"

Find: $_pmt = 1;


Replace the "1" with the threadid
this much I get.

Right now how should the replacement look?

1.
Quote:

Find: $_pmt = the threadid ;
or something similar.

2.
Quote:

Find: $_pmt = 123;

Or am I looking at this the wrong way?

Please help a vaild eg. would be very good.

zooman 12-14-2005 08:52 PM

bump

zendiver 12-14-2005 09:48 PM

zooman, the second way. It needs an integer number of an active thread that is on your board. What I would do would be find the BIGGEST forum, go to the very last page and the last post and use that thread id number.

zooman 12-15-2005 12:55 AM

Cheers all working now, used number post #2 :) I now understand why. I will have deleted the frist post as it will have been a test.

Again Cheers

zendiver 12-15-2005 11:51 AM

Glad I could help and that you got it working.

matthias.m 01-06-2006 08:20 AM

Does it work with vB 3.5.3???

And other Question: Can Picture-Attachments set to be visible in the PM instead of being a Link?

Greetings,
Matthias Moench

redlabour 01-06-2006 09:36 AM

It does !

matthias.m 01-06-2006 10:04 AM

Quote:

Originally Posted by redlabour
It does !

Danke redlabour ;)

PS: Was tut es? Mit 3.5.3 funktionieren und/oder Bilder in der PM anzeigen?

---

Because it`s not fair to speak German on an International Board - here comes the Translation ;):

Thanks redlabour!

Post Scriptum: What does it do? Working with vB 3.5.3 and/or show Pictures in the PM?

Gr??e,
Greetings,
Matthias Moench

redlabour 01-06-2006 11:34 AM

Quote:

Originally Posted by matthias.m
Danke redlabour ;)

PS: Was tut es? Mit 3.5.3 funktionieren und/oder Bilder in der PM anzeigen?

---

Because it`s not fair to speak German on an International Board - here comes the Translation ;):

Thanks redlabour!

Post Scriptum: What does it do? Working with vB 3.5.3 and/or show Pictures in the PM?

Gr??e,
Greetings,
Matthias Moench

Schau mal hier : http://www.vbhacks-germany.com/forum...newpost&t=2060

Take a look : http://www.vbhacks-germany.com/forum...newpost&t=2060

;)

himerus 01-07-2006 05:00 AM

Schweeeeet....
worked like a charm. 3.5.2
Nice Hack

INSTALL

IntoXiqu? 01-16-2006 10:30 AM

I've the problem that only the admins and mods can use this function... When a normal user want to attach some files he get the message that he hasn't enough rights!

How can i change that?
I've the Version 3.5.3.

Thanks,
Cheers!

Keyser S?ze 01-18-2006 09:16 AM

i hate to sound like a fool but im still getting the invalid post error

i went to the right plugin and change the 1 to a thread that is very old and wont ever be seen or deleted (110)

but still i get the error also i tried other threads, but all give me the same error

wouldnt it be better to just make a new table for PMattachments

anyways, any suggestions?

ConKien 01-18-2006 09:25 PM

Sorry for a lil. off topic but can someone use this mod and make it for the calendar instead? I've spent so many days try to make a calendar attachment and ended up wipped out my forum after 2 months built it up!

da_judge 01-20-2006 07:55 PM

Running 3.5.3... Installed every thing twice... dont get any errors... but dont get attachments button / section at the bottom of the PM box... any ideas.. i have read all that is in this thread....

Cheers Judge

Mickie D 01-20-2006 08:59 PM

is this hack going to support usergroup permissions ?

also this hack would be better as said to use its own database or file DIR, i dont know why this is not a feature in vbulletin for members to allow sending files in private messages (as long as file sizes are limited and or there is a certain amount of space a user can have before they need to clean there storage box ?

well i think so anyway lol

da_judge 01-20-2006 10:28 PM

Quote:

Originally Posted by da_judge
Running 3.5.3... Installed every thing twice... dont get any errors... but dont get attachments button / section at the bottom of the PM box... any ideas.. i have read all that is in this thread....

Cheers Judge


Sorry to be pain..

Judge

Keyser S?ze 01-21-2006 01:12 AM

did u do the template edits?

da_judge 01-21-2006 08:46 AM

yes m8... done both... files... well strange hey... like i say done em twice... I just saved.. or u think i should Save & Reload...

Cheers Judge

All sorted now... works a treat...
I forgot to enable plugins LMAO

bashy 01-21-2006 06:45 PM

Hi

EDIT: Sorted now, had to redo an edit :)

LincolnForums 02-01-2006 02:25 AM

couldnt get to work on my php5 and mysql5 server, could it be just an issue with that?

DruidToolz 02-06-2006 09:25 PM

I am also having a problem getting this to work.. What i am getting is this...

Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE pmtext SET attach='1' WHERE pmtextid='175';

MySQL Error : Unknown column 'attach' in 'field list'
Error Number : 1054
Date : Monday, February 6th 2006 @ 05:18:56 PM
Script : http://**********/forum/private.php
Referrer : http://**********/forum/private.php?do=newpm&u=31
IP Address : **.***.**.**
Username : DruidToolz
Classname : vbdatabase

Could someone help me please.. Thnx in advance

Kimah72 03-09-2006 05:14 PM

Hi, I got everything changed but when I went to do the SQL Queries, I ran into
Quote:

error number: 1146
error desc: Table 'momswit_Forum.attachment' doesn't exist
also when running all of them at the same time, I get this error.

Quote:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';
ALTER TABLE attachment add itemid int not null;
ALTER TABLE
I don't know what I am missing. Could you please help? This would be a nice hack to have on my board. Thanks! :)

dsotmoon 03-10-2006 10:43 PM

is this working ok in 3.5.4 ?

DruidToolz 03-11-2006 01:32 AM

Well i have all the modifications setup up on 3.5.4 I just wish there was an easier way then editing the sql query tables.. The reason i say this is i got a failed message which i didn't want to try it again unless i either backup my database or write over it and hope it doesn't mess up.. So please can someone help me with this.. Thnx

GoodKarmaKid 03-26-2006 05:54 AM

I was cruising right through the installation with no problems right up until the sql query. I wasn't able to execute an sql query from the vb control panel? I've installed several other hacks without a problem.

Presumably has something to do with access read/write permissions for the database? Opened up the file manager from my web control panel and the folder permissions seemed to be set correctly. I opend up myphpadmin and was going to try and run the querys from the tables following the instructions but quickly got in over my head.

The easiest thing for me would probably be just to execute the query from the vb control panle.

Any help in pointing me in the right direction to execute the sql query would be appreciated.

Thanks,
Jason

https://vborg.vbsupport.ru/external/2006/03/3.jpg

Rickie3 03-26-2006 09:49 AM

Quote:

Originally Posted by GoodKarmaKid
I was cruising right through the installation with no problems right up until the sql query. I wasn't able to execute an sql query from the vb control panel? I've installed several other hacks without a problem.

Presumably has something to do with access read/write permissions for the database? Opened up the file manager from my web control panel and the folder permissions seemed to be set correctly. I opend up myphpadmin and was going to try and run the querys from the tables following the instructions but quickly got in over my head.

The easiest thing for me would probably be just to execute the query from the vb control panle.

Any help in pointing me in the right direction to execute the sql query would be appreciated.

Thanks,
Jason

https://vborg.vbsupport.ru/external/2006/03/3.jpg

you need to edit your config.php with your id to allow to run queries,go to your server where your forum is installed then find includes folder inside the includes folder you will find config.php look for this code note in my code id is set at 1,edit to your user id then save you will now be able to run queries from your admin CP hope that helps
Code:

//        ****** USERS WITH QUERY RUNNING PERMISSIONS ******
        //        The users specified here will be allowed to run queries from the control panel.
        //        See the above entries for more information on the format.
        //        Please note that the ability to run queries is quite powerful. You may wish
        //        to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '1';


gcphost 03-28-2006 07:21 AM

Hey all I am able to upload images and possibly other items but im trying to upload a tar.gz, it uploads with no problem (so it seems) but when adding to mysql its adding the content of the binary to the db causing this:

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO vb_attachment
        (dateline, thumbnail_dateline, visible, userid, extension, filename, posthash, filehash, filesize, filedata)
VALUES
        (1143537565, 1143537565, 1, 1, 'gz', 'GameCP-Master-Stable-0.9.9.85.tar.gz', 'd59e42333cabdd9a8beefd91d82bc5c3', '46ed6412a916564e3579c79019515e88', 1135938, '‹\0<’$D\0?Z        xU?Š@J?(*?M?!,?5d%K?H\',K*?•?\"?UEUuw:,2+#?€ˆ

Any thoughts?

Rickie3 03-30-2006 02:39 AM

installed and working great thanx

defcon_420 04-05-2006 03:45 PM

Quote:

Originally Posted by DruidToolz
I am also having a problem getting this to work.. What i am getting is this...

Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE pmtext SET attach='1' WHERE pmtextid='175';

MySQL Error : Unknown column 'attach' in 'field list'
Error Number : 1054
Date : Monday, February 6th 2006 @ 05:18:56 PM
Script : http://**********/forum/private.php
Referrer : http://**********/forum/private.php?do=newpm&u=31
IP Address : **.***.**.**
Username : DruidToolz
Classname : vbdatabase

Could someone help me please.. Thnx in advance

i'm using 3.5.4 and get the same error as well... looks like there is no support for this one :confused:


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01471 seconds
  • Memory Usage 1,832KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete