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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Image Directory???
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 21 May 2002 :  16:29:12  Show Profile  Visit MaD2ko0l's Homepage
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  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
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

Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 21 May 2002 :  17:12:09  Show Profile
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.

Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 21 May 2002 :  17:48:46  Show Profile
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
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 21 May 2002 :  18:01:17  Show Profile  Visit MaD2ko0l's Homepage
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 ]=-
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 21 May 2002 :  18:20:27  Show Profile  Visit crash's Homepage
there is no other way.
"<% =strImageURL %>icon_whatever.gif"

is the only correct way...



Crash's Site | Crash is from
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 21 May 2002 :  18:20:41  Show Profile
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.

Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 21 May 2002 :  18:23:07  Show Profile
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...

Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 21 May 2002 :  18:40:55  Show Profile  Visit crash's Homepage
~ 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
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 21 May 2002 :  20:13:00  Show Profile
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
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 21 May 2002 :  20:24:36  Show Profile
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
Go to Top of Page

snaayk
Senior Member

USA
1061 Posts

Posted - 21 May 2002 :  20:39:29  Show Profile  Visit snaayk's Homepage  Send snaayk an AOL message  Send snaayk an ICQ Message  Send snaayk a Yahoo! Message
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
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 21 May 2002 :  20:48:36  Show Profile
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
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 21 May 2002 :  21:25:53  Show Profile
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
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 21 May 2002 :  21:49:57  Show Profile
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
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 22 May 2002 :  11:44:20  Show Profile  Visit MaD2ko0l's Homepage
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 ]=-
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07