Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Same image path - Different dirs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Same image path - Different dirs

 Post Reply Post Reply
Author
neitakk View Drop Down
Newbie
Newbie


Joined: 10 October 2004
Location: Norway
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote neitakk Quote  Post ReplyReply Direct Link To This Post Topic: Same image path - Different dirs
    Posted: 03 August 2005 at 6:49pm
I have a forum under the path wwwroot/forum/
I've tried to make a light version of the forum, and have placed a modified forum in the path wwwroot/light/
Both forum apps are reading data from the same db.
There is only one problem... I want user postet images to appear in both normal and light forum.

E.g:
An image that is placed here: wwwroot/forum/uploads/neitakk/image01.jpg, don't appear in the light forum, because the address now is wwwroot/light/uploads/image01.jpg.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2005 at 1:43am
You can get that to work is one of two ways;

1. You create a new dir [wwwroot/uploads/] and change the code in your two forums to go fetch from this dir, you may use ../ to back up the directory structure (needs parent paths enabled in the server) or use a absolute URL [domain.ext/uploads/] to get the images.

2. You don't do any of that, and simple use the uploads from one of your forums instance, say you use the [wwwroot/forum/uploads/] then you need to change the code in your [light] version to go fetch the other location, again you can back dir with ../ or use absolute URLs.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2005 at 2:18am
Did you set the upload path in the admin panel?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
neitakk View Drop Down
Newbie
Newbie


Joined: 10 October 2004
Location: Norway
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote neitakk Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2005 at 7:25am
Hi!
I figured it out before this thread was accepted by the admins. But thanks for the replies...
The solution was to change the upload path in admin menu from "uploads" to "../forum/uploads".
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.