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 (Open)
 Forum Code Bug....
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aspwiz
Junior Member

250 Posts

Posted - 15 October 2004 :  06:22:41  Show Profile  Visit aspwiz's Homepage  Reply with Quote
There is a bug with Forum code URL handling somewhere, but I cannot put my finger on whats wrong....

I have a post on my forum, which I have duplicated here:-
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=55120#300533

As you can see, the first few lines have been made a link.... for no apparent reason.

Anyway ideas?<

Edited by - aspwiz on 15 October 2004 06:23:43

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 October 2004 :  07:05:16  Show Profile
It's because of the "] that you had here:

_SERVER["PHP_SELF"]

I changed it to:

_SERVER["PHP_SELF'']

and it looks fine now.<
Go to Top of Page

aspwiz
Junior Member

250 Posts

Posted - 15 October 2004 :  14:51:25  Show Profile  Visit aspwiz's Homepage
isnt this a bug?

Also, how do i get that char you typed?<
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 15 October 2004 :  17:50:27  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
thats 2 single quotes.... ' ' together= ''<

-Stim
Go to Top of Page

XanderStudios
Starting Member

USA
1 Posts

Posted - 22 October 2004 :  18:54:35  Show Profile  Visit XanderStudios's Homepage
There is a bug in the url handling code. If you have mixed [ url = " someurl " ] and plain [ url ] someurl [ / url ], the code messes up the entire html. The If statement in the code incorrectly checks to see if "[ url ]" is not in the html even if there is a close tag (" [ / url ] ") before the next opening url code. I have fixed it and here is the code snippet:

Function ReplaceURLs(ByVal strToFormat)
'... All Dim tags in original file here
Dim iCloseTagPos, iCloseUrlTagPos
'... Go down 45 lines to offending if statement

'if the closing url tag is found in the string and
'[URL] is not found in the string Or [URL] is found after the closing tag then...

iCloseTagPos = InStr(1, strArray2(1), c2Tag, 1)
iCloseUrlTagPos = InStr(1, UCase(strArray2(1)), "[URL]", 1)

If iCloseTagPos > 0 And _
(iCloseUrlTagPos = 0 Or iCloseUrlTagPos > iCloseTagPos) Then

---------<-<<@
Cheers!

Brent<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 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