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

Pricelessparrots
Registered User
Posts: 224
Joined: Sat Dec 11, 2004 1:14 pm

Post by Pricelessparrots » Thu Feb 16, 2006 12:23 pm

I have a table problem within my ezserenity template. This for some reason has squashed the left hand sized table thus squashing the graphics on the left hand side of my viewforum.php. Any ideas?
Firstly if i knew where to change the table propertys i would, dont know which file to look in.
Someone has told me that my graphics are 19px in width but my cell are only 20 with a 4px cell padding. If one of you could help me with this i would be so grateful. I have ezserenity, with a attatchment mod on it. This is the only problem i know of.. www.pricelessparrots.com/forum01/index.php
You will find the problem when you go to view topics, you will see the graphics are shrunk..
Anyone?.
Regards
Paul

Z Fisher
Registered User
Posts: 13
Joined: Fri Dec 30, 2005 3:44 am
Location: Connecticut, USA

Post by Z Fisher » Thu Feb 16, 2006 1:56 pm

k, I've installed the attachment mod fine and been posting attachments for some time. I've not changed any of the default settings, so I went into the "Management" menu under Attachments in the Administration Panel and tried to change some of the settings. I'm trying to allow larger files sizes (512KB) and increase the number of files in a posting to 5.

When I make those changes and select submit, none of the settings change. When I go back into the Management screen all the settings are back where they were before the change (256KB and 3 files).

Any ideas why I can't change any of these settings?

[EDIT: PROBLEM SOLVED. I JUST WENT BACK AND RELOADED ALL THE ATTACHMENT MOD FILES AND ITS BACK UP AND RUNNING. THERE MUST HAVE BEEN A FILE THE WENT BAD]

PHPBB V. 2.0.19
Attachment Mod v2.4.1
Forum Watch 1.0.2
Last edited by Z Fisher on Thu Feb 16, 2006 3:34 pm, edited 1 time in total.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17060
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: attachment table table cutting off.

Post by DavidIQ » Thu Feb 16, 2006 2:24 pm

Speedbump wrote: Because I cant find anywhere in ehre where I posted this question before, but can someone elaborate on how to make this compatible with the nosebleed themse ?


I posted this yesterday (1 page back)... :roll:
DavidIQ wrote:
adamm22 wrote:
DavidIQ wrote:Ah...forgot to address your issue :lol:

Are you using Extreme Styles MOD? And what is your template's name? Some templates are designed in a way that'll mess with the attachmod tables.


I am using NoseBleed as the base, but I totally changed a lot of it. And no I am not using Extreme Styles MOD

Thanks for replying DavidIQ.. i thought i was doomed, no one was helping!! :(

Well I know where your fix is...but it's gonna cost you a dollar. No joke either:

http://www.mikelothar.com/

He redesigned the attachment mod files to work with NoseBleed and they're only available on his forum. Might want to do some searching around but I did and not much came up. Thing is that if you want to access the community.mikelothar.com site you'll need to cough up a dollar for monthly access. :roll:
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

yangjiayi
Registered User
Posts: 2
Joined: Mon May 16, 2005 12:57 pm

help me

Post by yangjiayi » Thu Feb 16, 2006 4:43 pm

i am a japanese.
i am using japanese phpbb2.0.19.
i installed Attachment Mod v2.4.1.
but i can not upload files..

Fatal error: Call to undefined function include_attach_lang() ..
why?

and what can i do??

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17060
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: help me

Post by DavidIQ » Thu Feb 16, 2006 7:20 pm

yangjiayi wrote: i am a japanese.
i am using japanese phpbb2.0.19.
i installed Attachment Mod v2.4.1.
but i can not upload files..

Fatal error: Call to undefined function include_attach_lang() ..
why?

and what can i do??

I think that out of 900+ pages this issue has been addressed in 500 of them :evil: or I don't really mean issue but more like user error :roll:

This is what you're missing:

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
common.php

#
#-----[ FIND ]---------------------------------------------
# around line 218
	$board_config[$row['config_name']] = $row['config_value'];
}

# 
#-----[ AFTER, ADD ]-------------------------------------- 
# After the closing brace
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);
and if you're missing that then you're probably missing most if not all of the other edits included in docs/install.txt....
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

lquid
Registered User
Posts: 2
Joined: Tue Feb 14, 2006 3:50 am

Post by lquid » Thu Feb 16, 2006 9:41 pm

DavidIQ wrote:
Fantasia wrote:
lquid wrote:I get this error in all of my attachment pages. i looked in the files and there is no refrence to that function in any of the includes. Please help me. This was a fresh install.
--------------------------
Fatal error: Call to undefined function: include_attach_lang() in /home/*username*/public_html/phpbb/admin/admin_attach_cp.php on line 52


Yes I am getting EXACTLY the same problem, any solutions would be appreciated.

You're missing this edit:

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
common.php

#
#-----[ FIND ]---------------------------------------------
# around line 218
	$board_config[$row['config_name']] = $row['config_value'];
}

# 
#-----[ AFTER, ADD ]-------------------------------------- 
# After the closing brace
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);


Excelent! that fixed it!
Thank you so much!!!

imoore
Registered User
Posts: 26
Joined: Fri Feb 10, 2006 1:16 pm

Post by imoore » Fri Feb 17, 2006 2:48 pm

Hi, I've had a bit of an accident with my install of this mod -
overwrote some files in the phpBB2 install. I have a backup from before this mod was installed and that works fine - the data seems to be intact.

The problem comes when I try to add the mod back in - I get this error when I load the board:
phpBB : Critical Error
Could not query config information
DEBUG MODE
SQL Error : -1 ERROR: relation "config_table" does not exist
SELECT * FROM CONFIG_TABLE
Line : 213
File : common.php

There is a table called phpbb_config, but no config_table table. the part of common.php in question seems to be:
//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __
LINE__, __FILE__, $sql);

It looks to me like CONFIG_TABLE should be defined somewhere as phpbb_config, but it's not - or perhaps I'm off track there?

Anyway, can anyone suggest a possible fix for this?

Cheers,

Ian

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17060
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Post by DavidIQ » Fri Feb 17, 2006 4:03 pm

imoore wrote: Hi, I've had a bit of an accident with my install of this mod -
overwrote some files in the phpBB2 install. I have a backup from before this mod was installed and that works fine - the data seems to be intact.

The problem comes when I try to add the mod back in - I get this error when I load the board:
phpBB : Critical Error
Could not query config information
DEBUG MODE
SQL Error : -1 ERROR: relation "config_table" does not exist
SELECT * FROM CONFIG_TABLE
Line : 213
File : common.php

There is a table called phpbb_config, but no config_table table. the part of common.php in question seems to be:
//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __
LINE__, __FILE__, $sql);

It looks to me like CONFIG_TABLE should be defined somewhere as phpbb_config, but it's not - or perhaps I'm off track there?

Anyway, can anyone suggest a possible fix for this?

Cheers,

Ian

Check your config.php file. The table prefix is supposed to be set from there.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

TogasPoon
Registered User
Posts: 3
Joined: Thu Feb 16, 2006 5:00 pm

Nothing happens?

Post by TogasPoon » Fri Feb 17, 2006 4:11 pm

I've added this mod and it seemed to install without any hitches. I can go the control panel and see the Attachments section. "Test Settings" returns the "everything seems to be fine message"

So, here is my problem - when I browse out to a file and then click "Add attachment" nothing happens. No error but also no file added.

Submitting the post works fine but no attachments are ever added.

Any thoughts?

pr0gr4mm3r
Registered User
Posts: 33
Joined: Mon Feb 06, 2006 6:21 pm
Location: NW Indiana
Contact:

Post by pr0gr4mm3r » Fri Feb 17, 2006 5:39 pm

This mod is just fantastic! I love it, and it works great and flawless for me, however, I do have one question about permissions. I would like to limit the downloading rights to registered users, and I know how to do that. The only problem is, I want it to still show the file information box, but when the user tries to download the file, they will be taken to the login/register screen if they are not logged in as a registered user. Some of the visitors might get confused when I post something that says "Download the file below", and there is nothing there. Is this possible? Thanks!
Life would be easier if I had the source code.

billsatx
Registered User
Posts: 23
Joined: Sat Sep 17, 2005 2:55 pm

Watermarking

Post by billsatx » Fri Feb 17, 2006 6:59 pm

Is there a mod or something or someway that you can put a watermark (like a .png file) on the attachment that shows when enlarged or donloaded? I looked but can't find anythng about that...

PoopShoot
Registered User
Posts: 3
Joined: Fri Feb 17, 2006 8:29 pm

Post by PoopShoot » Fri Feb 17, 2006 8:33 pm

Hey guys something weird maybe you all can help with

I'm getting this same error but I've used the pre-modded files.

Fatal error: Call to undefined function: include_attach_lang() in D:\Inetpub\MYSITE\phpBB2\admin\admin_attach_cp.php on line 52


BEfore you get pissed... look it IS set already in my common.php. Any ideas?


while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17060
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Post by DavidIQ » Fri Feb 17, 2006 9:14 pm

Do your pages get cached on your server?
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

MaryHaik
Registered User
Posts: 62
Joined: Tue May 04, 2004 1:55 pm
Location: Marshfield, Missouri
Contact:

gifs are not thumbnailed

Post by MaryHaik » Fri Feb 17, 2006 9:59 pm

We have attachment mod installed, but noticed today that gif images are not thumbnailed, regardless of the size of the file. jpgs are thumbnailed fine.

I have tried it with the GD2 on and off, and they still are not thumbnailed, any ideas?

PoopShoot
Registered User
Posts: 3
Joined: Fri Feb 17, 2006 8:29 pm

Post by PoopShoot » Fri Feb 17, 2006 10:02 pm

Do your pages get cached on your server?


ERmm not sure how can I check?

No it doesn't.

Post Reply

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