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: General / Classic ASP versions(v3.4.XX)
 Displaying images not ending with jpg
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

thevork
Starting Member

13 Posts

Posted - 23 November 2004 :  10:38:14  Show Profile
Hello,

Is it possible to display php/cgi images using Snitz?
I cannot use images that are not ending with an extention.

For instance, i'd like to embed (show) this picture in a post of mine:

http://poll.dezeserver.nl/results.cgi?pid=27138&layout=1&sort=prc

But it is not displayed, as you can see below.


Can anyone help me please?

dayve
Forum Moderator

USA
5820 Posts

Posted - 23 November 2004 :  11:01:14  Show Profile  Visit dayve's Homepage
you will have to modify inc_func_common.asp to allow the ampersand character. I had to do the same thing to allow dynamic signatures on my forum. here is an example showing you that it can work:

http://www.burningsoulsforum.com/forum/topic.asp?TOPIC_ID=10874

comment out this line (there are 2 instances of this reference in inc_func_common.asp):
strArray2(0) = replace(strArray2(0), "&", " ", 1, -1, 1) ' ## filter out &





Edited by - dayve on 23 November 2004 11:02:32
Go to Top of Page

thevork
Starting Member

13 Posts

Posted - 23 November 2004 :  14:30:38  Show Profile
The apersand was already commented out, but it still doesn't work for me.

Thank you for setting up an example, however, also on your page the image is not displayed. I also hyperlinked to it like you, and then it does work, but not when you want it displayed within the forum. :)

Any ideas would be appreciated.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 23 November 2004 :  15:11:13  Show Profile
the lines of code that would need to be commented out are:
strUrlText = replace(strUrlText, "&", " ", 1, -1, 1) ' ## filter out &
and
strUrlText = replace(strUrlText, "=", " ", 1, -1, 1) ' ## filter out =
they are both in the ReplaceImageTags function in the inc_func_common.asp file.
Go to Top of Page

thevork
Starting Member

13 Posts

Posted - 23 November 2004 :  15:17:40  Show Profile
Thank you, that worked for me!

This topic may be sent off to disappear into the eternal archives :D
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 23 November 2004 :  16:41:11  Show Profile  Visit dayve's Homepage
wooops, forgot the equals symbol.

quote:
Originally posted by thevork

Thank you for setting up an example, however, also on your page the image is not displayed. I also hyperlinked to it like you, and then it does work, but not when you want it displayed within the forum.

It does work, look again. Maybe you didn't see the text portion of the image, but that is because black text will not show on a black background... but it seems you got yours working.


Edited by - dayve on 23 November 2004 16:43:07
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 1.01 seconds. Powered By: Snitz Forums 2000 Version 3.4.07