| View previous topic :: View next topic |
| Author |
Message |
PhiLho
Joined: 27 Dec 2005 Posts: 6723 Location: France (near Paris)
|
Posted: Sun Dec 31, 2006 10:22 am Post subject: Re: Convert BBCode to HTML |
|
|
| dori wrote: | I understood most of your code but i wonder if you have something ready that i can use on a ASP page.
I am looking for a function that i can send her a bbcode text (the post from the forum) and get HTML back | So you need some VB code instead.
Real BBCode to HTML is slightly more complex than what is shown above.
I compiled a list of rules to make a more thorough converter (to be done), I can put them here, you will then have to write the corresponding code in VB, which shouldn't be so hard.
Does the VB used in ASP (not ASP.NET, I suppose) have access to regular expressions? _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Dori Guest
|
|
| Back to top |
|
 |
dori Guest
|
Posted: Sun Dec 31, 2006 6:00 pm Post subject: CreatePreview |
|
|
| AGU wrote: | | Quote: | | I am looking for a function that i can send her a bbcode text (the post from the forum) and get HTML back | Don't know if it's of help, but maybe you can take my CreatePreview subroutine from my BBCodeWriter Script and make a function out of it.
________________________
Cheers
AGU |
Hi Agu
thanks a lot.
Is this C++ ???
i am not sure i can run this whitin an ASP page |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Mon Jan 01, 2007 1:33 am Post subject: |
|
|
| Quote: | Is this C++ ???
i am not sure i can run this whitin an ASP page |
Sorry it's no C++, it's AHK syntax. As you were asking within this forum I assumed you were looking for an AHK solution.
After reading your first posting I'm asking myself why you were posting your request in this place instead of an ASP or VB forum. Don't you think this might yield better solutions than asking here in AHK forum?
_______________________
Cheers
AGU |
|
| Back to top |
|
 |
WickedSmile Guest
|
Posted: Sat Jan 10, 2009 6:15 am Post subject: |
|
|
I've been trying to convert this video gam embedding code to BBcode and I just can't get it right. Help?
<div align="center"><a href="http://www.freehobo.com/games/super-mario-bros-flash">Play Super Mario Bros. Flash</a><br /><a href="http://www.freehobo.com/games/super-mario-bros-flash"><img src="http://www.freehobo.com/m_games/thumbs/super-mario-remake.gif" border="1" width="100" height="100"></a><br />More <a href="http://www.freehobo.com" style="font-weight:bold">free games</a> at freehobo.com</div> |
|
| Back to top |
|
 |
Slanter
Joined: 28 May 2008 Posts: 739 Location: Minnesota, USA
|
Posted: Sat Jan 10, 2009 7:36 am Post subject: |
|
|
Well, the <div align="center"></div> can't be converted, and neither can the border/width/height of the image, but the rest should simply be this...
| Code: | [url=http://www.freehobo.com/games/super-mario-bros-flash]Play Super Mario Bros. Flash[/url]
[url=http://www.freehobo.com/games/super-mario-bros-flash][img]http://www.freehobo.com/m_games/thumbs/super-mario-remake.gif[/img][/url]
More [url=http://www.freehobo.com][b]free games[/b][/url] at freehobo.com |
_________________ Unless otherwise stated, all code is untested
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination. |
|
| Back to top |
|
 |
|