Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 A default image directory
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

puzo
Junior Member

Israel
417 Posts

Posted - 23 March 2003 :  15:23:55  Show Profile  Visit puzo's Homepage
Hi,
I don't know where does exactly this question belong to so i decided to ask it here, Snitz has a default image directory which every image on the forum recognizes, for example, my image directory is forum/images and i suddenly decided to change it to forum/imagesforforum, all i need to do is insert my image's dir in admin options, i want to do the same thing to my site's images, for example, i set the value of the variable imagedir to http://anotherhost.com/forumsimages instead of hosting it on my server or if i just want to change my images directory.
How can i create such a thing that will prevent me from inserting my image's directory infront of all image names, just the variable name and /image.gif, i don't know exactly how it is done, can somebody please tell me? (how to define the main variable which is the image's path and how to combine it with an image name)
Thanks,

Mike.


ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 24 March 2003 :  03:58:12  Show Profile
No, you can't change a global image variable.
What you can do is delete the existing /image directory and create a virtual path "image" and point this to a different directory on you server.
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 24 March 2003 :  12:39:33  Show Profile  Visit puzo's Homepage
is'nt there a way to make a variable stand for a remote directory?
vraible1=http://www.domain.com (something of that sort)


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 March 2003 :  16:58:33  Show Profile
Sure you can do it. Define your variable in a file that is included in all your files (like the config.asp is included in all the files). Then your img tag would look like this, using Response.Write:
Response.Write "<img src=""" & variable & "/image.gif"" alt=""my image"" width=""100"" height=""50"">"
Using html and asp:
<img src="<%= variable %>/image.gif" alt="my image" width="100" height="50">

Support Snitz Forums

Edited by - Davio on 24 March 2003 17:00:02
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 25 March 2003 :  03:13:05  Show Profile  Visit puzo's Homepage
thanks!
but im not exactly sure how to define it so it would point to a path online (or on my server)
i know all the includes and stuff but as i said, im not quite sure about the pointing a variable to a path.


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 March 2003 :  10:44:08  Show Profile
But you posted it in your last post:
vraible1=http://www.domain.com

Support Snitz Forums
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 26 March 2003 :  07:49:13  Show Profile  Visit puzo's Homepage
sometimes i surprise myself lol
Thank you very much,

Mike.


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07