Author |
Topic  |
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 21 May 2002 : 16:29:12
|
Hi all, i wanted to add all of my images to a directory but i dont know how to do it.
would i have to go in every file and edit all lines with a .gif in it to somthing like <%= strImageURL %>icon_folder.gif or sothing like that???
and if so how do i get the strImageURL into the databse????
can somoen help me plz???
Thankx
MaD2ko0l
© 1999-2002 MaD2ko0l -=[ Life Is So Easy When You Are Evil ]=- |
|
sy
Average Member
  
United Kingdom
638 Posts |
Posted - 21 May 2002 : 16:57:20
|
quote:
Hi all, i wanted to add all of my images to a directory but i dont know how to do it.
would i have to go in every file and edit all lines with a .gif in it to somthing like <%= strImageURL %>icon_folder.gif or sothing like that???
and if so how do i get the strImageURL into the databse????
can somoen help me plz???
Thankx
MaD2ko0l
© 1999-2002 MaD2ko0l -=[ Life Is So Easy When You Are Evil ]=-
It would be labourious to do this by hand, try a google search for a program called 'HTML SEARCH AND REPLACE' it does whole directories and is pretty neat.
HTH,
Syph
|
 |
|
blackinwhite
Average Member
  
Turkey
657 Posts |
Posted - 21 May 2002 : 17:12:09
|
just an idea.
in config.asp, to the very end of the file, add
strImageURL = "image_directory comes here"
didn't try it, but thought it may work.
|
 |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 21 May 2002 : 17:48:46
|
Mad2koOl,
You will need to do this:
Create a dbs_whatever.asp file and save it in to your forum directory with the follow;
Insert Image Dir in to DB [INSERT] CONFIG_NEW (C_VARIABLE,C_VALUE)#('strImageURL','images/') [END]
and run the Mod Setup from the Admin area either after or before you have changed all your code as you suggest.
quote:
Hi all, i wanted to add all of my images to a directory but i dont know how to do it.
would i have to go in every file and edit all lines with a .gif in it to somthing like <%= strImageURL %>icon_folder.gif or sothing like that???
and if so how do i get the strImageURL into the databse????
can somoen help me plz???
Thankx
MaD2ko0l
© 1999-2002 MaD2ko0l -=[ Life Is So Easy When You Are Evil ]=-
Regards,
Webmaster @ Classic Motorycling Australia Classic Motorcycling Australia |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 21 May 2002 : 18:01:17
|
thankx for the help everyone...so do i have to add <%= strImageURL %> that to add of the images in all the files????
so it will look like <%= strImageURL %>icon_folder.gif that or is ther another way????
© 1999-2002 MaD2ko0l -=[ Life Is So Easy When You Are Evil ]=- |
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 21 May 2002 : 18:20:27
|
there is no other way.
"<% =strImageURL %>icon_whatever.gif" is the only correct way...
 Crash's Site | Crash is from 
|
 |
|
blackinwhite
Average Member
  
Turkey
657 Posts |
Posted - 21 May 2002 : 18:20:41
|
quote:
thankx for the help everyone...so do i have to add <%= strImageURL %> that to add of the images in all the files????
so it will look like <%= strImageURL %>icon_folder.gif that or is ther another way????
© 1999-2002 MaD2ko0l -=[ Life Is So Easy When You Are Evil ]=-
yes.
strimageURL will write the directory of your images.
|
 |
|
blackinwhite
Average Member
  
Turkey
657 Posts |
Posted - 21 May 2002 : 18:23:07
|
quote:
there is no other way.
"<% =strImageURL %>icon_whatever.gif" is the only correct way...
 Crash's Site | Crash is from 
you beat me crash. faster, faster, f... 
|
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 21 May 2002 : 18:40:55
|
~ there can be only one ~ just by 14 seconds...
 Crash's Site | Crash is from 
Edited by - crash on 21 May 2002 18:42:22 |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 21 May 2002 : 20:13:00
|
I always wanted to do this but was to lasy to edit all the files. I tried the software sy mentioned and it did 279 files in about 1 minute. I double checked a bunch and it actually worked 
Now, I created the db file, ran it in Mod Setup (admin options), checked the forum variables and it made the changes images/ but no images show up. The url the images still point to is the forum directory.
I rechecked my files and they now show <img src="<%= strImageURL %>icon_bar.gif" or <img src=""" & strImageURL & "icon_folder_archived.gif"" for response.writes
Did I miss something? I ran setup, I ran Forum Variables Information, I closed my browser, cleared the cache and history, even logged in from my Laptop and my wifes puter, still no images show. Oh yea, I did create a dir named images and placed all my images in it.
I am lost for ideas?
Intrepidone
Edited by - Intrepidone on 21 May 2002 20:15:00 |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 21 May 2002 : 20:24:36
|
Ok, I found the problem,
I had to add dim strImageURL and strImageURL = Application(strCookieURL & "STRIMAGEURL") to my config.asp file 
Hey sy, thanks for mentioning about HTML SEARCH AND REPLACE, .... 1 minute to do 279 files 
Intrepidone |
 |
|
snaayk
Senior Member
   
USA
1061 Posts |
Posted - 21 May 2002 : 20:39:29
|
or you could wait for 3.4 which will have it already in the base code....nevermind

Edited by - snaayk on 21 May 2002 20:39:54 |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 21 May 2002 : 20:48:36
|
actually I am waiting for 3.4 before I do my new forum but thought I would play around with 3.3.03, see what I can break 
Intrepidone |
 |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 21 May 2002 : 21:25:53
|
I knew I forgot something when I posted earlier... *LOL*
quote:
Ok, I found the problem,
I had to add dim strImageURL and strImageURL = Application(strCookieURL & "STRIMAGEURL") to my config.asp file 
Hey sy, thanks for mentioning about HTML SEARCH AND REPLACE, .... 1 minute to do 279 files 
Intrepidone
Regards,
Webmaster @ Classic Motorycling Australia Classic Motorcycling Australia |
 |
|
Intrepidone
Average Member
  
Canada
515 Posts |
Posted - 21 May 2002 : 21:49:57
|
quote:
I knew I forgot something when I posted earlier... *LOL*
Thats OK Classic,
Next time I see a Kangaroo hopping down the roads here in Canada I'll think of you 
It didn't take me long to remember they should have went in config.asp
Actually, my wife was thinking of going to the Toronto Zoo this weekend so I may see a Kangaroo after all 
Intrepidone |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 22 May 2002 : 11:44:20
|
ok so i add the strlImageURL inforunt of all the images and then i have to add dim strImageURL and strImageURL = Application(strCookieURL & "STRIMAGEURL") to my config.asp????where do i put htem in my config.asp????
any help??
thankx
MaD2ko0l
© 1999-2002 MaD2ko0l -=[ Life Is So Easy When You Are Evil ]=- |
 |
|
Topic  |
|