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 Bug Reports (Closed)
 Image tags in signatures
 Forum Locked  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 30 March 2004 :  15:57:04  Show Profile
They seem to be case-sensitive
[img] works
[IMG] doesn't

i've only noticed it on signatures, maybe the same for all images

The UK MkIVs Forum

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 March 2004 :  16:35:15  Show Profile  Visit HuwR's Homepage
it shouldn't the forum code does a UCase convert before the check, so shouldn't matter
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 March 2004 :  17:09:03  Show Profile  Visit HuwR's Homepage
You are correct, I will take a look to see why.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 30 March 2004 :  19:15:25  Show Profile  Visit Gremlin's Homepage
Earlier versions it was the other way round which was why the Ucase got put in there to begin with wasn't it Huw?

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 March 2004 :  20:48:28  Show Profile  Visit HuwR's Homepage
yes, but oddly enough, they both work on my forum ?
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 30 March 2004 :  22:31:25  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Same here, I've tried it and had no problems.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 31 March 2004 :  04:11:49  Show Profile
I found this is on 3.4.04, not 3.4.03

The UK MkIVs Forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 March 2004 :  04:35:28  Show Profile  Visit HuwR's Homepage
yes, but the img tag replacement code is the same, the code that uses the UCase is actually not for img tags, it is for the url tags that have embedded img tags in them, the replaceimagetag code is identical in both versions
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 31 March 2004 :  09:02:31  Show Profile
strange then, i've just moved to 3.4.04 from 3.4.03 (same database) whilst I sort the site out and several people noticed this

http://www.uk-mkivs.net/forum/topic.asp?TOPIC_ID=27658

The UK MkIVs Forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 March 2004 :  09:15:51  Show Profile  Visit HuwR's Homepage
I'm not disputing that it is a problem, just unsure why, since the replaceimagetag code is the same in both
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 March 2004 :  12:27:13  Show Profile
Both tags work for me. Both on my modified 3.4.03 forum and the unmodified 3.4.04 forum.
I checked it with dynamic signatures on and off.

Huwr, you tested it on a 3.4.04 version and it didn't work? Maybe I am missing a different setting?

Support Snitz Forums
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 March 2004 :  12:47:52  Show Profile  Visit HuwR's Homepage
I tested it here and it doesn't work look

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 March 2004 :  12:54:30  Show Profile
I'll test it again. But I downloaded the 3.4.04 version and set it up and test it and I'm not reproducing this bug.

It also seems that the IMG tag doesn't work in messages too, on here that is.

Support Snitz Forums
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 March 2004 :  13:21:10  Show Profile  Visit HuwR's Homepage
I would try mine, but have spent all afternoon inserting the oracle changes to test that so my 3.4.04 doesn't work at the moment.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 March 2004 :  14:50:36  Show Profile
Ok I seem to have found the problem.

In the ReplaceImageTag() function in inc_func_common.asp (around line 1208), add the code highlighted in red:
if (oTagPos > 0) and (cTagPos > oTagPos) then
 	strArray = Split(strTempString, oTag, -1, 1)
 	for counter2 = 0 to Ubound(strArray)
 		if (Instr(1, strArray(counter2), cTag, 1) > 0) then
 			strArray2 = split(strArray(counter2), cTag, -1, 1)
 			strUrlText = trim(strArray2(0))
This will allow the Split function to do a textual comparison when searching for the opening and closing tag in the string. By default it was doing a binary comparison, which treated the [img] and [IMG] tags as the same. So it errored out during the function and just returned the string unformated.

Support Snitz Forums
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 March 2004 :  16:09:23  Show Profile  Visit HuwR's Homepage
well spotted Davio.

Still confused as to why it works on my site, since the code is the same, very odd.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07