PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
mikemc
New Member
New Member


Joined: Dec 14, 2007
Posts: 12

PostPosted: Thu May 07, 2009 3:58 pm Reply with quote Back to top

Every time I post a file via the attachment mod the file uploads fine (to "modules/forums/file" folder) and appears in the post OK, the in-line link is fin (i.e. [domain name]/modules.php?name=Forums&file=download&id=##) but the resulting link goes to a path "[domain name]/modules/Forums/modules/Forums/files/[file.ext]"

I've looked for the issue in these forums, all over the net and through all my files but cannot seem to find where I've gone wrong. Anyone else seen this issue?
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu May 07, 2009 11:37 pm Reply with quote Back to top

Try setting the path to just /files
View user's profile Send private message Visit poster's website
mikemc
New Member
New Member


Joined: Dec 14, 2007
Posts: 12

PostPosted: Fri May 08, 2009 6:28 am Reply with quote Back to top

I tried that, and the links already in posts will then work, but the upload for new posts fail because the destination [domain name]/files/ does not exist...... It has to be somewhere in the uploads or forum display file, but I cannot seem to find it.
View user's profile Send private message
mikemc
New Member
New Member


Joined: Dec 14, 2007
Posts: 12

PostPosted: Mon May 25, 2009 6:19 am Reply with quote Back to top

I believe I know where the issue is being generate, but cannot find in the code where the action is performed.

I think the displayed link translation is adding a second "modules/forums/" to the translated link path. Uploading files works correctly, and the files are stored in the correct folder on the server. But the link in a post is picking up an extra PHPbb_Root_Path somewhere.

When you attempt to download the file from a post, the link is directing towards
Only registered users can see links on this board!
Get registered or login to the forums!
(notice the duplication of folder paths "modules/forums/").

Anyone have an idea which file performs the filename determination and storage to the database?

Or put another way;
When I click an attachment link in a post, what file translates "http://www.YourDomain.com/modules.php?name=Forums&file=download&id=23" into this; "http://www.YourDomain.com/modules/Forums/file/filename.txt"?
View user's profile Send private message
mikemc
New Member
New Member


Joined: Dec 14, 2007
Posts: 12

PostPosted: Mon May 25, 2009 8:29 am Reply with quote Back to top

OK, I got this "fixed" for the moment, but located the avenue for initial issue investigation. In the forum control panel under EXTENSIONS > EXTENSION GROUP CONTROLS, I changed the download mode to "INLINE" and all works fine now. Therefore I assume the issue resides in the "Physical" mode.
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon May 25, 2009 1:40 pm Reply with quote Back to top

Yes, not sure what physical mode is doing. For now, use inline
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum