Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Problem with the Path for the File/Image attachment

More
16 years 8 months ago - 16 years 8 months ago #27278 by bryan7
My forum is supporting for 2 groups. Internal user & external user.
For the internal user, they are using h t t p : //192.168.X.X.
For the external user, they are using h t t p : //www.X.X.net
The external user is unable to access h t t p : //192.168.X.X.

My problem is if the internal user is using 192.168.X.X to upload the attachment, the attachment path will be like http://192.168.X.X/media/kunena/attachments/legacy/images/123.jpg. However, for the external user, they are unable to access the attachment.

Any way I can make the path fixed to h t t p : //www.X.X.net/--- when the user upload the attachment?

Thanks!
Last edit: 16 years 8 months ago by bryan7.

Please Log in or Create an account to join the conversation.

More
16 years 8 months ago #27351 by bryan7
Solution:

Modify the code at \components\com_kunena\lib\kunena.image.upload.php around Line 100

Image:
Code:
$code = '[img]' . 'http://www.-------'. '/fbfiles/images/' . $newFileName . '[/img]';

File: \components\com_kunena\lib\kunena.file.upload.php around Line 90
Code:
$code = '[file name='. $newFileName . ' size=' . $fileSize . ']' . 'http://www.------' . '/fbfiles/files/' . $newFileName . '[/file]';

Please Log in or Create an account to join the conversation.

Time to create page: 0.258 seconds