Comments on this site

Moderators: WEBMASTER
Number of threads: 342
Number of posts: 1040

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
puts http:// before a string even if i don't Posted by gautam on 18 Nov 2001 at 12:43 AM
I posted a message in linux board and it puts a http:// before httpd even if I don't. Thats not good IMO.

Lets see if it does here to..
httpd

Report
Re: puts http:// before a string even if i don't Posted by Eric Tetz on 18 Nov 2001 at 1:17 AM
: I posted a message in linux board and it puts a http:// before httpd even if I don't. Thats not good IMO.
:
: Lets see if it does here to..
: httpd

Yeah, this board has a few gotchas like that. An easy workaround for this problem is to use a style-code on one of the letters.

httpd

See? Hit "Post a reply to this message" to see how I did it.

WEBMASTER: if you are reading this, here's a interesting bug in the style-code system: if you put style-code around text containing the 'at' symbol (@), that board converts it into a 'mailto' link. Some examples

@
@
foo@
@bar
foo@bar
@something

It appears that any string in the form of text@text gets converted into a mailto:. Having a 'mailto' style-code would be useful. Having the board automatically convert anything with an @ in it into a 'mailto' is a Bad Thing, especially on a site that discusses source code.

For instance, if I use style-codes in Java source which contains JavaDoc style comments, the JavaDoc directives all get screwed (because they start with an @). The board turns them all into 'mailto' links. Example:

class test {
  /** The entry point function.
   * @param args The command line arguments
   * @return nothing
   */
  static public void main( String[] args ) {
    System.out.println("Hello, World!");
  }
}


Cheers,
Eric



Report
Re: puts http:// before a string even if i don't Posted by gautam on 20 Nov 2001 at 3:13 AM
Hey,
Yep, got it, thanks.

I thought it best to bring it to light cos these trivial things can make a lot of differences in certain places, while in most it doesn't matter.

Just trying to help by making this board a better place.



Report
Re: puts http:// before a string even if i don't Posted by WEBMASTER on 20 Nov 2001 at 8:48 AM
I made some tweaking of the rendering code and now these problems should be fixed.

I now check if there's a "." in the URL/Mail before I render it, otherwise I don't.

So


http://
httpd

@
@
foo@
@bar
foo@bar
@something

No don't render at all.

Let me know if if dones't wo the work.



/WEBMASTER


Report
Re: puts http:// before a string even if i don't Posted by gautam on 20 Nov 2001 at 6:47 PM
http://
httpd

@
foobar@

hmm Thanks....


: I made some tweaking of the rendering code and now these problems should be fixed.
:
: I now check if there's a "." in the URL/Mail before I render it, otherwise I don't.
:
: So
:
:
: http://
: httpd
:
: @
: @
: foo@
: @bar
: foo@bar
: @something
:
: No don't render at all.
:
: Let me know if if dones't wo the work.
:
:
:
: /WEBMASTER
:
:





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.