Attachment Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
2035
71%
Very Good
444
16%
Good
175
6%
Fair
54
2%
Poor
156
5%
 
Total votes: 2864

Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

My own server.
I tried both the easymod way last night and this morning tried the manual install using the premodded scripts. (which again gave the same error - something about line 290 on an include script - sorry for not saving it)

I am now wiping out and reinstalling again to try the manual script change and upload method of step III to see if that one works.

Yes the forum was a fresh install and it worked fine. Thanks for replying so fast and good input :)
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Re: OH MY GOD IT WORKED!

Post by Nitrocharged »

illconcepts wrote: wow! 8O 8O im sooo shocked. this is the first of many mods that i have gotten to work.

@ IFATCA and BsK_sToRm.
if you were having the same problems as me i can tell you how to fix it.
origionally, i only uploaded the files in the contrib/php_attach_mod directory. you need to upload those, but theres more. you want to upload all the files and directories in attach_mod/root and attach_mod/scripts to your web server. once all the files are uploaded, run mod_table_install.php. now, when that loads, check to make sure that everything is working by checking the to see if in green the word completed is there. then delete the directory and happy uploading! if your still having problems with this, feel free to PM me.

wow, i never thought id see the day where id be helping any one with php.

cheers! ...Posted: Sat Mar 15, 2003


Sheesh ...over 300 posts later I see this - there was no mention of uploading contents of the script folder to the server in the install.txt file.
Guess I'll try this too.... take 4 here we come... :roll:
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

Ok - I did a manual install but used the premodded scripts. The forum still works this time so those scripts folder content must be the factor but the Admin attach_mod areas don't work and the function to add attachments doesn't appear in the main forum to allow to attach etc.

Logging into admin and selecting the following is giving these results:

Click on: Manage Attachments > Control Panel - Fatal error: Call to undefined function: get_var() in /home/nitro1/public_html/forum/admin/admin_attach_cp.php on line 62
Click on: Manage Attachments > Management - screen appears with no text anywhere ...borders tables etc can be seen but no content
Click on: Manage Attachments > Quota limits - same no text screen
Click on: Manage Attachments > Shadow attachments - I see all the root files in a list
Click on: Manage Attachments > Sync attachments - has these 3 lines of text on the page:
Sync Topics
.


Sync Posts


Sync Thumbnails


Click on: Extensions > Extension control - borders windows boxes but no text anywhere on page
Click on: Extensions > Extension group manage - Fatal error: Call to undefined function: get_var() in /home/nitro1/public_html/forum/admin/admin_extensions.php on line 539
Click on: Extensions > Forbidden extensions - no text again
Click on: Extensions > Special categories - Fatal error: Call to undefined function: is_imagick() in /home/nitro1/public_html/forum/admin/admin_attachments.php on line 874



Anyone shed light on this new set of problems please?
User avatar
fazaljatoi
I've Been Banned!
Posts: 503
Joined: Wed Aug 31, 2005 8:02 pm

Post by fazaljatoi »


Could not query attachment information

DEBUG MODE

SQL Error : 1146 Table 'apnajatoiforum.phpbb_attachments_config' doesn't exist

SELECT * FROM phpbb_attachments_config

Line : 80
File : attachment_mod.php


HELP ME SOLVE MY PROBLEM
User avatar
MrBad
Registered User
Posts: 8
Joined: Fri Sep 30, 2005 6:52 am
Location: Ukraine. Kiev
Contact:

Post by MrBad »

Guys!
i am trying to install this MOD for 5th time... i am sure about i am doing everything OK. same bug all time.

please explain me which file is responsible for displaying attachments in viewtopic?

is it possible, that my style use a different constants comparing to subsilver?
maybe i have to correct those files wich is not moderable (just upload), like subSilver/viewtopic_attach_body.tpl ?
my problem with attachment MOD here Image
bbvic
Registered User
Posts: 21
Joined: Fri Jul 22, 2005 5:13 pm

DEBUG

Post by bbvic »

I have errors

Would you please help how to fix those?

-----------------------------------------------------------
Fatal error: Call to undefined function get_var() in W:\www\phpBB2\admin\admin_attach_cp.php on line 62

-----------------------------------------------------------
Could not find Attachment Config Table

DEBUG MODE

SQL Error : 1146 Table 'solidyne.phpbb_attachments_config' doesn't exist

SELECT * FROM phpbb_attachments_config

Line : 126
File : admin_attachments.php
babydoll2u
Registered User
Posts: 214
Joined: Sun Sep 18, 2005 11:26 pm
Contact:

Post by babydoll2u »

Oh Lord... I'm not sure if I want to use this mod or not... I need it... I want it!!! But, 753 pages of problems... yikes! :(
Never, ever, argue with an idiot. They'll drag you down to their level and beat you with experience
The Gare
Registered User
Posts: 10
Joined: Thu Mar 24, 2005 8:19 pm

Post by The Gare »

This is a fairly easy MOD to add. I updated from 2.0.16 to 2.0.17. Of course afterward, it did not work. I had to re-do the MOD from scratch, but it really does not take that long. Just make sure you do ALL of the steps. If you are using the SubSilver template, there are pre-modified files that you only need to copy over and overwrite. All other templates you will have to do all by hand. I wish someone had pre-modded files for the Cobalt style, that one rocks.

Anyone have pre-modded files for the Cobalt Style????? 8O

P.S. And just to add, this is a GREAT MOD! There are 753 pages of people who usually did not follow the steps exactly and it is almost always something that you end up missing or over looking. I know I did several tiomes before I finally got it right. I have re-done it twice now and it really was not that bad.
I play drums!
Steve F
Registered User
Posts: 55
Joined: Sat Jul 30, 2005 8:51 pm
Location: USA

Post by Steve F »

I started by adding this mod to a bare 2.0.17 test board. The board is installed on w2k3, IIS6, sql2k, php4. I use EasyMOD. I only have SubSilver template.

I had one, well documented error where unset($delete_type); no longer has a closing brace right after it. I put the [ AFTER, ADD ] code right after the unset function call. Mine works. Someone else put the [ AFTER, ADD ] code after the brace in its new location (on 2.0.17 I guess) and his worked too. Go figure.

I copy all the files and directories in attach_mod/root to my phpbb root directory. Point my browser to http://website/install/mod_table_inst.php to get the sql tables set up. Run EasyMod on attach_mod's install.txt (which had the one change for the unset function call), then go in admin and configure the attachment settings.

I also add the following configuration settings to php.ini

max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
post_max_size = 32M
upload_max_filesize = 32M

Although max_input_time=600 is probably too much time on faster networks and no where near enough on dialup, I've left it at that until I can test the actual upload throughput. Having the max_execution_time half of max_input_time seems silly and I will change mine when I understand better what they should actually be. The other three are critically important as the default is 2m. When was the last time you saw anything on windows less than 2m?

Having AttachMod on my board has made the difference for my users where without it the board would be mostly usless. With AttachMod my users are very happy to be able to share files.

Oh, another thing, even though my board is closed to public, I run McAfee virus scanner on my server. I tested attachmod by uploading the eicar virus scanner test suite. I get an error from attachmod that the file can't be found after uploading. Of course this is true because McAfee caught it and moved it to quarantine. I wish attachmod had a different error message for this case. I know I'll have to write my own interface so if someone actually does upload a virus infected file, attachmod should at least warn them why the upload actually failed. I'll work on that another day.
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

SteveF wrote: I started by adding this mod to a bare 2.0.17 test board. The board is installed on w2k3, IIS6, sql2k, php4. I use EasyMOD. I only have SubSilver template.

I had one, well documented error where unset($delete_type); no longer has a closing brace right after it. I put the [ AFTER, ADD ] code right after the unset function call. Mine works. Someone else put the [ AFTER, ADD ] code after the brace in its new location (on 2.0.17 I guess) and his worked too. Go figure.

I copy all the files and directories in attach_mod/root to my phpbb root directory. Point my browser to http://website/install/mod_table_inst.php to get the sql tables set up. Run EasyMod on attach_mod's install.txt (which had the one change for the unset function call), then go in admin and configure the attachment settings.


You say that but even your post misses the fact that the scripts files need to be uploaded. Noone mentions this!!!
I am going to try a manual install today and hand code in the changes on v2.0.17 - if it fails again - I'll give up. Help on this board seems to have dried up unfortunately, and the only suggestions have been - yo're doing it wrong. Well, I have NOT seen a correct step by step method of doing it right. Even the install.txt file is wrong as it misses the fact that the scripts folder contents mut be uploaded. Positive help would really be appreciated guys :)
Peter77s
Registered User
Posts: 260
Joined: Fri Sep 17, 2004 8:18 pm
Location: Michigan

Post by Peter77s »

Great MOD!!
Last edited by Peter77s on Fri Oct 14, 2005 12:48 am, edited 2 times in total.
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy »

Nitrocharged wrote: You say that but even your post misses the fact that the scripts files need to be uploaded. Noone mentions this!!!
I am going to try a manual install today and hand code in the changes on v2.0.17 - if it fails again - I'll give up. Help on this board seems to have dried up unfortunately, and the only suggestions have been - yo're doing it wrong. Well, I have NOT seen a correct step by step method of doing it right. Even the install.txt file is wrong as it misses the fact that the scripts folder contents mut be uploaded. Positive help would really be appreciated guys :)

Dude,you don't need the scripts folder. Read the text file inside it to find out why it's there :wink:
Make sure your language files were correctly modified and also look here -> http://opentools.de/board/viewtopic.php?t=1848
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy »

fazaljatoi and bbvic
You both need to run teh mod_table_install.php file that came with this MOD. Your database has't been updated yet :wink:
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

Thanks Cherokee :)
I'll do it based on the link content you supplied and see how I go.
I will post my results. I appreciate your help. :D

Gimme a while as I have to do some other work tasks before getting back to this mod.
babydoll2u
Registered User
Posts: 214
Joined: Sun Sep 18, 2005 11:26 pm
Contact:

Post by babydoll2u »

unfortunately I don't have a clean board... I have version 2.0.17, but I have alot of mods/hacks installed, and am running a custom-made style. So I'm assuming it's going to be alot more difficult to install this mod on my forum..... grrrrrrrrrrrrrr
Never, ever, argue with an idiot. They'll drag you down to their level and beat you with experience
Post Reply

Return to “[2.0.x] MOD Database Releases”