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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 NOT A BUG: Title Image Location is wrong
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 27 August 2002 :  08:53:14  Show Profile
When I change the location of the images.

I must change the "Title Image Location" to something without slashes. But not the "Page Background Image URL".

Delete if I'm wrong

Edited by - Davio on 28 August 2002 04:08:39

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 27 August 2002 :  13:36:29  Show Profile
You're wrong. I have my images in the images/ folder and I don't have any slashes in the "Title Image Location" box or the "Page Background URL" box. Just the name of the image.

Support Snitz Forums
Go to Top of Page

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 27 August 2002 :  14:05:10  Show Profile
quote:
Originally posted by Davio

You're wrong. I have my images in the images/ folder and I don't have any slashes in the "Title Image Location" box or the "Page Background URL" box. Just the name of the image.



That's exactly what I mean.
Before I changed the image location my logo field was "/Images/logo.gif"

After I changed the image location to "/Forum/Images/" all pages couldn't find the Logo anymore.

If this standard, then Ok. I thought it was strange at first sight and reported it.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 27 August 2002 :  15:29:32  Show Profile
None of the fields need to have a forward slash / at the start. If your forum is in the Forum folder, and your logo is in the Forum/Images folder, then your settings would be like this:

Title Image Location: logo.gif
Images Folder Field: Images/
Page Background URL: mybackground.gif

If you left the Images Folder Field blank then your settings would like this:

Title Image Location: Images/logo.gif
Images Folder Field: <empty>
Page Background Field: Images/mybackground.gif

Support Snitz Forums
Go to Top of Page

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 27 August 2002 :  17:51:11  Show Profile
Ok.
Go to Top of Page

kirgy
New Member

Germany
95 Posts

Posted - 30 August 2002 :  20:28:48  Show Profile  Visit kirgy's Homepage
But found another problem with image folders.
I was looking in my site stats and was wondering about 403-14 errors, already 1118 hits

For my images i use a folder named images/ but no background image.
If you have selected a folder for your images the Html output is the following

<body background="images/" bgColor="white" text="midnightblue" link="darkblue" aLink="red" vLink="blue">

When directory listing is denied on the server it generates this error.
Not a problem, you can view the page, but isn´t nice.

In inc_header.asp around line 240

I've done this:


if strPageBGImageURL = "" then
   strPageBGImageURL = ""
else
if Instr(strPageBGImageURL,"/") > 0 or Instr(strPageBGImageURL,"\") > 0 then
        strTmpPageBGImageURL = " background=""" & strPageBGImageURL & """"
else
        strTmpPageBGImageURL = " background=""" & strImageUrl & strPageBGImageURL & """"
end if
end if



and for the body tag around line 300:

"<body" & strTmpPageBGImageURL & " bgColor="""


seems to work for me now with clean body tag

Kirgy
-------------
http://www.kirgy-web.de
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 August 2002 :  23:06:40  Show Profile
implemented in v3.4.02

(I moved this section up to line #76 so it would apply to the body tag in the error that shows if no strDBType is selected)

if strPageBGImageURL = "" then
	strTmpPageBGImageURL = ""
elseif Instr(strPageBGImageURL,"/") > 0 or Instr(strPageBGImageURL,"\") > 0 then
	strTmpPageBGImageURL = " background=""" & strPageBGImageURL & """"
else
	strTmpPageBGImageURL = " background=""" & strImageUrl & strPageBGImageURL & """"
end if


changed both body tags to look like what kirgy posted above.
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.52 seconds. Powered By: Snitz Forums 2000 Version 3.4.07