Page 1 of 2 12>
Topic Options
#84972 - 2002-01-28 04:12 PM BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
to the ones that have no idea what we are talking, BBCodeParser parses BBpage from any html and gives you the codes.
this is handy when working with large codesizes. and pages with multiple codes.
Changes in 2.0.1:
-improved installation, which didn't work in NT4 wksta's
-corrected handling of dll-installation

New features in version 2.0:
-selfinstallation.
in installation package included all needed dll's and exe's (wkix32)
-removed dependencies
it has NO - yes, not any - external dependencies... well. it needs windows.
-prints and/or saves single script at your wish
-index'es the scripts in list where they are easy to select.

package is downloadable from:
http://www.gwspikval.com/jooel/scripts/BBCodeParser - BBCodeParser.exe (293kB)

and the final source is at:
http://www.gwspikval.com/jooel/scripts/BBCodeParser/Version2_source_code

btw: this topic is newist in the chain.
last one is foundable at http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=13&t=000009

btw: Shawn, did I hack your kixforms properly?

[ 31 January 2002: Message edited by: Lonkero ]

_________________________
!

download KiXnet

Top
#84973 - 2002-01-28 05:31 PM Re: BBCodeParser 2.0.1 - final
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
lonkero,

wow ! nice implementation of kixforms. your the first person i've seen that got multi-forms happening. well done.

i tried to download some code but im getting a syntax error ... suspect that some object isn't getting created properly (on my machine) ... i'll keep looking ...

as well, as you may know, im busy writing kixforms build 6 with execute event handling ... this script will be perfect to retro-test against ... if you don't mind, i'll port this to build 6 and post when done.

-Shawn

Top
#84974 - 2002-01-28 05:41 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn,
could you give me the topic with gives you the error.
I (sorry...) made some mixup in some last builds and I'm not sure if this the right one...
the problem sounds just like the previous build, so I want to test it too against that topic, just to be sure...

about porting... don't mind at all


cheers,

_________________________
!

download KiXnet

Top
#84975 - 2002-01-28 05:47 PM Re: BBCodeParser 2.0.1 - final
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
lonkero

the bbcodeparser.exe install package didn't run too clean for me. im using a intl france winnt sp6 machine right now. i couldn't decipher the error messages so let me try it on another machine ... this is the thread i was trying to get at:
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=12&t=000034

-Shawn

Top
#84976 - 2002-01-28 05:59 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sh*t, I knew this...
well, the page opens like a charm on my test machine. maybe should test on other one too.

I made the installation package the easy way.
it uses %programfiles% as the base of the installation.
and if I remember correctly nt does not have it...
have to fix.
will do some more testing (means, I'll install nt4 to that machine and work out these things)
a quickie might be adding the variable to your system before running the exe...

but off for this day, new geek tomorrow...

cheers,

_________________________
!

download KiXnet

Top
#84977 - 2002-01-28 07:18 PM Re: BBCodeParser 2.0.1 - final
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Lonkero,
I tried to run the code that Shawn is having trouble with and everything looks good up until the end.
I looked and the script is supposed to bring up a notepad session with the info but nothing appears.
I am running it on a Win2k box with SP2 and Office XP SP1.

[ 28 January 2002: Message edited by: Will Hetrick ]

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#84978 - 2002-01-29 01:43 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
will,
actually there is no notepad involved.
unless you want to print one of the codes it's passed to notepad and printed with it.
when you say that it goes well... what does it say to you when it does not? I mean if the execution stops unexpected, what is the error.
'cause the script is using wkix, it will not be so hard to get...

thank you for your help,

_________________________
!

download KiXnet

Top
#84979 - 2002-01-29 05:25 PM Re: BBCodeParser 2.0.1 - final
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
jooel

you calculate the size of your main form ($form) relative to the size of ones screen, example:

$form.width = $form.screenwidth - 100
$form.height = $form.screenheight - 200

how big in absoute terms would this form be ? what do you have your screen resolution set to ? 1024x768 ?

normally this is a very cool way to build forms, but im porting over your code parser bit-by-bit and need to get an absolute number for now. if you run your code and dump out the value of $form.width and $form.height, what is it ?

-Shawn

Top
#84980 - 2002-01-29 05:42 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
have to check that...
I also realized that with 1024x768 it looks nice but with 800x600 layout suffers a bit...
with my laptops resolution (1024x768) i got:
width 924
height 468
_________________________
!

download KiXnet

Top
#84981 - 2002-01-30 01:18 PM Re: BBCodeParser 2.0.1 - final
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Lonkero,
The last thing I see in the forms box is Parsing data then done.

That disappears and a Window flashes on and off in less than a second.

After that ????

Again that is on the current url or Test URL

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#84982 - 2002-01-30 04:21 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
will, I'll check it.
I'll try it on win98 and I think I'll create to this version same error checks as in the version 1 when it did not work for shawn.

SHAWN, does it matter in this case that I have build 5... actually I think that it is the build that is in the package, not sure...
version string is 1.0.0.6?????

file dependencies by winhttp are:

quote:

ADVAPI32.DLL
GDI32.DLL
KERNEL32.DLL
MSVCRT.DLL
NTDLL.DLL
RPCRT4.DLL
SHLWAPI.DLL
USER32.DLL

uttleast my windows says so.
will, I'll be back to this and contact you soon as possible.

_________________________
!

download KiXnet

Top
#84983 - 2002-01-30 04:42 PM Re: BBCodeParser 2.0.1 - final
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
build 5 of what ? kixforms or winhttp ?

im in the middle of porting over your bbcodeparser to build 6 of kixforms ... haven't actually got the http download thingy happening yet. i was planning on basically keep all your html parsing intact. - just change the gui peice.

the way its looking right now is that there is one main form ... with a url address bar (kinda like internet explorer) and your "Get It!" button right beside it. The code section listbox (index) and code pane (code) windows are on the form as well. A second dialog will be used to monitor the download status when the "Get It!" button is pressed.

I like how you dynamically created code listviews based on the number code sections found. Nice use of the execute() function. Jochen would be very proud.

I don't have any estimated completion date for build 6 right now ... im adding features to kixforms along with the bbcodeparser port ... but i will mail build 6 and your parser back to you before i release.

-Shawn

Top
#84984 - 2002-01-30 04:47 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
will, one thing you could check is to view your %temp%-folder.
there should be code*.bbcp
as it is created, if winhttp does function at all by line:
code:

$ = open(1,"%temp%\code "+($i+1)+".bbcp",5) $ = writeline(1,"$page"+$crlf+$crlf)


if this is there, please send it me, to my profile or to this topic, I want to see where it fails.
if there is more than one of those files, take out the one that has largest number in it's name.
_________________________
!

download KiXnet

Top
#84985 - 2002-01-30 04:58 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, version of kixforms. I have version which I got some time ago from jpols.
in his mail he said it's build 5.
it's last change date is 2. november 2001, 08:25

and it's size is 72,0kB...

and yes, you've red my code right...
like also I have to say that execute is a nice thingie for cracking more possibilities to the language...
still would like to have optional argument to it, to run the execute like shelling to dos with run. this way messagebox will not stop the execution of script...
but, same results can be achieved with kixforms...

_________________________
!

download KiXnet

Top
#84986 - 2002-01-30 09:11 PM Re: BBCodeParser 2.0.1 - final
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Lonkero,
I ran the Parser and watched the directory. 6 or 7 files of code*.* appeared and disappeared. I tried to snag one of them but it would not let me. I was not fast enough.

So that means the files are gone and it is past that step.

I also put a sleep right before the exit and I seen the code parse table but it was blank.
What next?

[ 30 January 2002: Message edited by: Will Hetrick ]

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#84987 - 2002-01-31 10:00 AM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
will,
I'm just installing a clean nt system to test my program on it.
just to be sure, did you have kixforms in your system before you installed bbcodeparser?
if yes, what if you try to unload the dll and move it to safe place.
then install the bbcodeparser again.
it checks for kixforms.dll on system32-folder.
if such is present it deletes the one inbuilt in it and uses the one in system.
I thouhgt this might be a version problem.

I keep installing the NT-system and leave you check these.
I'm waiting for your reply.

[ 31 January 2002: Message edited by: Lonkero ]

_________________________
!

download KiXnet

Top
#84988 - 2002-02-01 12:00 AM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
will, I found the problem.

shawn, it does not work with kixforms build 4!
with build five it works fine.
I was just thinking, that there might be a problem, 'cause five has version number 1.0.0.6
which means, it's like six, or uttleast preliminary build.
so the version numbering should be changed, or my bbcodeparser needs to be taken from the market.
up to you...

_________________________
!

download KiXnet

Top
#84989 - 2002-01-31 01:01 PM Re: BBCodeParser 2.0.1 - final
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Lonkero,
Yes I did have kixforms installed already.

Let me test by wacking the kixform and reinstalling the BBcode.

Bingo, That was it. It works now. I have build 1.0.0.4 of kixforms originally.

[ 31 January 2002: Message edited by: Will Hetrick ]

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#84990 - 2002-01-31 02:26 PM Re: BBCodeParser 2.0.1 - final
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Lonkero,
For Dll entering here, abandon all hope

Maybe a little too dramatic
for your installer, you should check for kixform version first.
If the current installed one is an older version than the one you provide in your installer, ask to replace it.
If equal or newer, do nothing

My €2 (i'm feeling generous today)

_________________________
? getobject(Kixtart.org.Signature)

Top
#84991 - 2002-01-31 03:09 PM Re: BBCodeParser 2.0.1 - final
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
alex, I've done that by now.
now I'm strugling with shortcut.

will make it work and publish new package today...

_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 671 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.1 seconds in which 0.053 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org