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

A Human
Registered User
Posts: 14
Joined: Mon Oct 24, 2005 6:41 am

Getting .18 to work at multiple sites quickly

Post by A Human »

I would like to recreate one site with all my mods, attach being most important but there are many others. This I would then just like to save and upload in a simple manner to many sites (with approp dbase name/user changes) where needed.

The forums have no posts to consider, just shell with categories/forums already entered

Files no problems - can see them and copy them down to desktop (config needs to be altered)

Table though, no luck. I tried

Backup through phpbb - seemed only to take unmodded fields
Tried doing an export through plesk and then reload in new domain but get reuploading issues

What do you guys do?

History to date on attach mode on .18 upgrade with attach mod

I had to do a fresh install and then run the mod with the correction as advised by (dam while writing post cant see whole topic) thanks for the suggestion, you know who you are

if you add this

include($phpbb_root_path.'config.'.$phpEx);

to both
mod_table_inst.php
attch_update_23x_to_latest.php

I also changed permissions on the config.php to 666(not sure if necesary though)

Ttable creation Successful
Coding Successful (able to add attach)

Any tips greatly appreciated

For the moders
It was fresh install, 2 prev attempts with other mods installed before this one failed, but I am a newbie.
Mods installed before trying to install attach mod that did not work

Forum Permissions list
Admin Userlist

Tah

A Human
User avatar
The Suite
Registered User
Posts: 617
Joined: Sat Jul 30, 2005 11:11 am
Location: NYC, USA
Contact:

Post by The Suite »

I just installed this on 2.0.18 and now I can't see anything. The site/page is blank, nothing comes up, just a blank page.

Has anyone had this problem?
Much appreciloved,

The Suite
Thank you :-)
The IT Security Information Center
sasox
Registered User
Posts: 1
Joined: Tue Nov 01, 2005 1:32 pm

Post by sasox »

Same problem.

I also manually modified .18 files. Same result.
dj.rogi
Registered User
Posts: 1
Joined: Tue Nov 01, 2005 1:54 pm
Contact:

2.0.18 broke

Post by dj.rogi »

due to updates on my web server to PHP5.0.5, I upgraded to phpbb 2.0.18, and the attachment mod has stopped displaying in the forums. The forums show correctly, just no attachments.

Does anyone have a list of changes that have to be re-fixed? Previously on 2.0.17.

BTW.. Awesome MOD!!
User avatar
The Suite
Registered User
Posts: 617
Joined: Sat Jul 30, 2005 11:11 am
Location: NYC, USA
Contact:

Post by The Suite »

DJ Rogi,

I'm happy for you my friend, my board is blank :-(

Anyone have an ideas on how to fix this apart from rolling back the install and changes.

See, this is why I use EasyMOD for all my installs, quick and simply fix in times like this, no hassle.

Ins.
Much appreciloved,

The Suite
Thank you :-)
The IT Security Information Center
User avatar
Jadestone
Registered User
Posts: 630
Joined: Tue May 24, 2005 12:54 am
Location: Juno Beach, FL
Contact:

Re: Getting .18 to work at multiple sites quickly

Post by Jadestone »

A Human wrote: if you add this

include($phpbb_root_path.'config.'.$phpEx);

to both
mod_table_inst.php
attch_update_23x_to_latest.php


i just did a fresh install with CH installed and and i was having problems with the table install.. couldnt connect to database.

by adding

Code: Select all

include($phpbb_root_path.'config.'.$phpEx);
after

Code: Select all

$phpbb_root_path = './../';
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx); 
after that i ran the install/mod_table_inst.php and no problem!

since this was a fresh install i had no need to edite the update file.

also i didn`t need to change the permissions to 666.

everything seems to work so far.
UT MTN BIKER
Registered User
Posts: 4
Joined: Wed Jul 21, 2004 4:18 pm
Location: Alpine, UT
Contact:

Post by UT MTN BIKER »

Thanks, that worked.

However, now when I try to go to the main index page, I am getting this error:

Fatal error: Call to undefined function: attach_setup_basic_auth() in /home/www/xxxx/phpBB2/includes/auth.php on line 111

Any suggestions?
All my scabs are gone. I need to go mountain biking.
User avatar
Jadestone
Registered User
Posts: 630
Joined: Tue May 24, 2005 12:54 am
Location: Juno Beach, FL
Contact:

Post by Jadestone »

sry see below, posted reply instead of edit.... sry
Last edited by Jadestone on Tue Nov 01, 2005 7:11 pm, edited 1 time in total.
User avatar
Jadestone
Registered User
Posts: 630
Joined: Tue May 24, 2005 12:54 am
Location: Juno Beach, FL
Contact:

Post by Jadestone »

id check you coding to see if you missed anything, i found out that sometimes if im in a rush i missed a , or a ;

just look up the code for that file and double check it, especially that line.

Code: Select all

# 
#-----[ OPEN ]---------------------------------------------
# 
includes/auth.php

# 
#-----[ FIND ]---------------------------------------------
# around line 105
		case AUTH_ATTACH:
			break;

		default:
			break;
	}

# 
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the closing brace
	attach_setup_basic_auth($type, $auth_fields, $a_sql);
this is all the code change for auth.php

id assume that you missing this part

Code: Select all

($type, $auth_fields, $a_sql);
i`ve never had that problem tho, maybe someone else had that error.
iluphade
Registered User
Posts: 5
Joined: Tue Nov 01, 2005 7:39 pm

Post by iluphade »

I've uploaded the changed main files and the ones for the subilver template and the athena template to my site:

Code: Select all

www.vrg.be/changed.rar
P.S.: the files named "Kopie van" are the original ones.
(I'd prefer someone checked them out first though)
User avatar
Jadestone
Registered User
Posts: 630
Joined: Tue May 24, 2005 12:54 am
Location: Juno Beach, FL
Contact:

Post by Jadestone »

iluphade wrote: I've uploaded the changed main files and the ones for the subilver template and the athena template to my site:

Code: Select all

www.vrg.be/changed.rar
P.S.: the files named "Kopie van" are the original ones.
(I'd prefer someone checked them out first though)


what problems are you getting? This will help to look for your errors.

are you getting a blank page? blank page with a header? or are you getting a lot of code showing on your forums?

any extra info you could give would be useful.

do you have any mods installed (asides from this one) and if you did were your forums working with those mods before you tried to install this one.

or did you just try to install all your mods at the same time and then realized your forums arent working.
iluphade
Registered User
Posts: 5
Joined: Tue Nov 01, 2005 7:39 pm

Post by iluphade »

I don't have any problems. It works perfectly.
All i'm saying is that i've uploaded the files that need to be changed, so that others don't have to do all the changing manually.
(Offcourse, that is for fresh installs)
(Oh, iff you have the extreme stylez mod, the files have those changes incorporated)
Just trying to save some people the time and effort off doing it themselves.
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Scotland
Name: Kenny Cameron
Contact:

Post by stickerboy »

UT MTN BIKER wrote: Thanks, that worked.

However, now when I try to go to the main index page, I am getting this error:

Fatal error: Call to undefined function: attach_setup_basic_auth() in /home/www/xxxx/phpBB2/includes/auth.php on line 111

Any suggestions?

I think you may be missing a few files.
Make sure you correctly uploaded all the attach MOD files to the right places ;)
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
User avatar
Jadestone
Registered User
Posts: 630
Joined: Tue May 24, 2005 12:54 am
Location: Juno Beach, FL
Contact:

Post by Jadestone »

iluphade wrote: I don't have any problems. It works perfectly.
All i'm saying is that i've uploaded the files that need to be changed, so that others don't have to do all the changing manually.
(Offcourse, that is for fresh installs)
(Oh, iff you have the extreme stylez mod, the files have those changes incorporated)
Just trying to save some people the time and effort off doing it themselves.


so this is a fresh install with no mods asides from te attachment mod and extreme stylez mod?

also what version of phpbb2 are you using for this?

i like your idea tho.
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Re: Getting .18 to work at multiple sites quickly

Post by Ptirhiik »

Jadestone wrote:
A Human wrote:
if you add this

include($phpbb_root_path.'config.'.$phpEx);

to both
mod_table_inst.php
attch_update_23x_to_latest.php


i just did a fresh install with CH installed and and i was having problems with the table install.. couldnt connect to database.

by adding

Code: Select all

include($phpbb_root_path.'config.'.$phpEx);
after

Code: Select all

$phpbb_root_path = './../';
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx); 
after that i ran the install/mod_table_inst.php and no problem!

since this was a fresh install i had no need to edite the update file.

also i didn`t need to change the permissions to 666.

everything seems to work so far.
Actually the problem comes from the presence of the include(db.php) in those both files. I don't see any point of having this line there, at it is already - and correctly - done in common.php. I wouldn't be surprised both the install and the upgrade failed onto phpBB 2.0.18 for this reason. IMHO, simply remove the include($phpbb_root_path . 'includes/db.php');, and all will work without the errors encountered.

There is probably another problem in attachmod with the include of the file where stands the function iclude_user_lang() : probably the $phpbb_root_path not properly handled for the inclusion.
Post Reply

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