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)
 (v3.4.03) BUG+FIX: ReplaceImageTags function #1
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

favorini
Starting Member

USA
27 Posts

Posted - 18 April 2003 :  15:40:32  Show Profile
/forum/icon_smile_8ball.gif[/img][img]
On inc_func_common.asp, line 1225 in ReplaceImageTags function

for counter2 = 0 to Ubound(strArray)
should be

for counter2 = 1 to Ubound(strArray)
otherwise you are searching for the closing tag in the text before the opening tag.

For instance, the following actually shows the image on a 3.4.03 forum if it's at the top of the message (as seen above):
/forum/icon_smile_8ball.gif[/img][img]

-Francis

forfunforum
New Member

55 Posts

Posted - 21 April 2003 :  09:07:06  Show Profile
After I apply this, the image will move to the left when it is supposed to be in the center by using [.center][./center]tag.
Any comments?
Go to Top of Page

favorini
Starting Member

USA
27 Posts

Posted - 21 April 2003 :  15:56:52  Show Profile
Yep, you are right. I meant to pose a question rather than a solution, so ignore my original "fix." I think the fix for this is the following.

On line 1225 of inc_func_common.asp in ReplaceImageTags function
for counter2 = 0 to Ubound(strArray)
    if (Instr(1, strArray(counter2), cTag) > 0) then
should be (add the part in red)
for counter2 = 0 to Ubound(strArray)
    if (counter2 > 0 And Instr(1, strArray(counter2), cTag) > 0) then
-Francis
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 June 2003 :  00:18:00  Show Profile
instead of doing the above, here is what I changed:

on line #1235 of inc_func_common.asp find the following:
 		if (oTagPos > 0) and (cTagPos > 0) then
and replace it with this:
 		if (oTagPos > 0) and (cTagPos > oTagPos) then
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 June 2003 :  00:20:09  Show Profile
fixed in v3.4.04
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07