Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Forum Attachment Mod
Author Message
esttecb
Hangin' Around



Joined: Mar 14, 2007
Posts: 37

PostPosted: Mon Mar 10, 2008 3:40 pm Reply with quote

Hi, I'm getting this error when I try to attach a file. I don't know what's wrong.
When I click on test settings in the admin panel all are fine. The files directory CHMOD is 777. The extension i not forbbiden and the quota is right.

Help?

PS: I used premodded files and to seem the theme files are correctly modified too (I modified this).

EDIT: I found the problem but I don't know how fix it. If I change the upload directoy to "modules/Forums/files" I can attach a file but I can't download a file (the link go to http://www.mywebsite.com/modules/Forums/modules/Forums/files/myfile.txt). And if I change the upload directory to "files" I can download the attached files, but I can Attach a file to the post. (Upload Error: Could not upload Attachment to ./files/file.txt).

Help please?


_____________________________________

EDIT:

See the solved problem here, and please someone corrects the syntax error for coming updates I don't test it (whatever, you can see the big problem there), but i think this should works. If it's not, so you still need make this change -> [ Only registered users can see links on this board! Get registered or login! ]


Last edited by esttecb on Mon May 05, 2008 9:03 pm; edited 6 times in total 
View user's profile Send private message
bprsk8r4272
Regular
Regular



Joined: Jan 23, 2007
Posts: 96
Location: Rochester, Ny

PostPosted: Mon Mar 10, 2008 4:55 pm Reply with quote

the upload directory should be modules/Forums/files but i havent had that error(http://www.mywebsite.com/modules/Forums/modules/Forums/files/myfile.txt) at all
 
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
esttecb







PostPosted: Mon Mar 10, 2008 5:01 pm Reply with quote

Well, Thats really don't help me Confused

BTW, I'm using and I need use the physical download method... so, in the "Download Link to FTP Path" I enter "files" path. But to seem this not modify anything... the download url when I try to download an attanch don't change at all.
If I enter "modules/Forums/files" in the Upload Directory, when I click on test settings I get this error: "The Directory 'modules/Forums/files' does not exist or couldn't be found." (If I enter only files, all is right)

TY
 
bprsk8r4272







PostPosted: Mon Mar 10, 2008 7:11 pm Reply with quote

did you use the premod files on ravennuke or a different version of phpnuke? and i dont think the test settings feature works
 
esttecb







PostPosted: Mon Mar 10, 2008 7:36 pm Reply with quote

on RN 2.20.02, and if the test settings don't works, so the mod was not correctly converted from phpbb...

Whatever I still have this problem... I don't know how fix it...

EDIT: OMG! the test setting works wrong because the folder paths in the modules/Forums/admin/admin_attachments.php is wrong... the upload path is not "../../../", it's "../" (or "./../" it's the same) Confused Who make this mod? I think he write a lot of directory paths wrong...

EDIT: Ok I fix this error. "Open modules/Forums/Download.php"
Find (about line 394)

Quote:
$script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path']));

f ($script_name[strlen($script_name)] != '/')
{
$script_name .= '/';
}


Remplace with:

Quote:
//$script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path']));

//if ($script_name[strlen($script_name)] != '/')
//{
$script_name .= '/';
//}


It's only remove the path forum duplication that you enter in the configuration settings of the admin forums panel . And is only to fix the physical download metod, so if you are using the inline metod, you don't need this modification.

It's all.

And pleace, the next time fix the directory paths in "modules/Forums/admin/admin_attachments.php".

Cyas
 
mercman
Regular
Regular



Joined: Nov 29, 2006
Posts: 64
Location: TN, USA

PostPosted: Sat Mar 29, 2008 5:53 pm Reply with quote

esttecb,
I'd be interested in using this mod...
Could I ask where you found it?

_________________
-Merc 
View user's profile Send private message Visit poster's website
bprsk8r4272







PostPosted: Sat Mar 29, 2008 6:59 pm Reply with quote

it comes as a addon for RN so download RN and its in the zip
 
mercman







PostPosted: Sun Mar 30, 2008 8:11 am Reply with quote

Oh, GOOD LORD!! DOH!! Embarassed

Well, I guess that's what I get for sittng in front of this machine for 8+ hours...
killing me

Thanks!
 
bbuz
New Member
New Member



Joined: May 17, 2006
Posts: 17

PostPosted: Mon May 05, 2008 4:15 pm Reply with quote

Thanks !!
 
View user's profile Send private message
esttecb







PostPosted: Mon May 05, 2008 8:44 pm Reply with quote

esttecb wrote:


$script_name = preg_replace('/^\/?(.*?)\/?$/', '/\1', trim($board_config['script_path']));

f ($script_name[strlen($script_name)] != '/')
{
$script_name .= '/';
}


ahahaha... I don't know why i'm wathed this topic... but it's funny, I found an obvious error... What the hell is it? : ''f ($script_name[strlen($script_name)] != '/')'' who translate this mod delete an ''i'' !! he wrote f instead if !!!!!!!!!!!!!!!!!!!!.. and the errors on this mod keep coming!!!...

So, don't remplace anything what I said above, only correct the syntax error.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Jul 22, 2008 3:31 pm Reply with quote

This will be fixed in the trunk for the next release of RavenNuke

Note that esttecb posted the code incorrectly and it is not the change we will be using.

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Forum Attachment Mod

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©