is there a way to determine the total number of "unread" messages (by messag i mean message board messages) and display that to the user?
is there a way to determine the total number of "unread" messages (by me i mean message board messages) and display that to the user?
Not using Baja, no. Possibly using JS, and certainly using C.
is there a way to determine the total number of "unread" messages (by i mean message board messages) and display that to the user?
Not using Baja, no. Possibly using JS, and certainly using C.
so, i'm assuming i'd have to implement some functionality of SMBLib and run as a door to tell users how many unread message base message they have?
If you wanted to write in C or C++, yes. Actually you would utilize "some functionality" of the SMBLIB (not implement it). This kind of thing should doable with JS, if not now, then certainly in the future.
RE: message countby
BY: Digital Man to Hax0r on Wed May 08 2002 12:36 am
If you wanted to write in C or C++, yes. Actually you would utilize "some functionality" of the SMBLIB (not implement it). This kind of thing should doable with JS, if not now, then certainly in the future.
well, i started looking at the document on the SMB format -- heh, i havent done any c programming in quite some time, but the doc is fairly readable.
day i'm a vb programmer... since it seemed as if you had the formats pretty well defined, i've tinkered with the thought of creating classes to wrap the layout and maybe tap into the message base files --- tinkered with thethought
is the operative word here there's not really any code written yet.
anyways, i'd go the javascript approach, but i just don't even want to go there. i'm not a real big fan of javascript -- partly because i'm cold as dirt using it, and the only real thing i've ever done with java script is web client side validation of values. sure, i could learn the object model, but i'd much rather stick to something i'm more familiar with before i start exploring javascript and waste a whole lot of time writing this simple little program.
Actually, this wouldn't be a bad idea, isn't most of the smb functionality already in an api/dll that you could call in vb? Haven't really looked, because my own preference would be doing it in JS... also, you just want th messages unread for the current area, correct?
Javascript does have a lot more usefulness.. can be used for other mods in synchronet, and imho more flexable then baja... beyond this, you can do a l more on the browser with js... In ASP on the webserver, you can use JS for server-side scripting, as well as the fact that PHP, and Flash/Shockwave ha similar syntax, making these easier to learn.
Actually, this wouldn't be a bad idea, isn't most of the smb functionalit already in an api/dll that you could call in vb? Haven't really looked, because my own preference would be doing it in JS... also, you just want messages unread for the current area, correct?
yeah, just the message unread. there's no API that I'm aware which can be used to tap into. I was under the assumption that i'd have to write my own code to do it given the specs. Rob seems to have the format pretty well lai out, it would just be a decent amount of work.
Javascript does have a lot more usefulness.. can be used for other mods i synchronet, and imho more flexable then baja... beyond this, you can do a more on the browser with js... In ASP on the webserver, you can use JS fo server-side scripting, as well as the fact that PHP, and Flash/Shockwave similar syntax, making these easier to learn.
until javascript becomes more user friendly, i have no interest in it. i remember doing client side validation just how much of a pain in the ass it was to figure out the object model for shit. i had to dig through web page afer web page to find the reference for javascript on Netscapes web site.
I've lost the link since then, and really don't feel i should have to learn not only the javascript object model, but the synchronet one as well -- that just too much to ask. besides, as i said earlier -- javascript really holds no interest to me. i honestly hope that the damn thing just goes away and people use something a bit more sensible -- like vbscript ;)
There is an API, it's called SMBLIB. If you're going to write it in C/C++, the SMBLIB (src/sbbs3/smblib.c) to save yourself a ton of work.
You mean this one?
http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html
VBScript is proprietary. JavaScript is not going away.
VBScript is ALOT easier to program in, atleast I think so. I was being cynical when I said Javascript is going to go away -- I know its not, but honestly I wish it would... heh
There is an API, it's called SMBLIB. If you're going to write it in C/C++ the SMBLIB (src/sbbs3/smblib.c) to save yourself a ton of work.
well, it would be nice to compile it into a dll and be able to utilize it fr other languages.... one of these days i'll have to spend some time and take look at whats already there ;)
It already is: exec/sbbs.dll - all the smblib functions are exported.
It already is: exec/sbbs.dll - all the smblib functions are exported.
really? i never knew that! wow, that makes things really interesting. i'll definately have to look into things now. do you provide an API somewhere as to exactly whats publically accessible and what params it takes/returns?
really? i never knew that! wow, that makes things really interesting. definately have to look into things now. do you provide an API somewher to exactly whats publically accessible and what params it takes/returns?
Yes, src/sbbs3/smblib.h.
really? i never knew that! wow, that makes things really interesting. definately have to look into things now. do you provide an API somewh to exactly whats publically accessible and what params it takes/return
Yes, src/sbbs3/smblib.h.
dude.. thanks a lot. only question is, is there any place i can get just th header file and not have to download the entire sbbs source package?
RE: message count
BY: Digital Man to Hax0r on Tue May 14 2002 10:20 pm
really? i never knew that! wow, that makes things really interesting. definately have to look into things now. do you provide an API somewh to exactly whats publically accessible and what params it takes/return
Yes, src/sbbs3/smblib.h.
dude.. thanks a lot. only question is, is there any place i can get just th header file and not have to download the entire sbbs source package?
Yes, http://cvs.synchro.net/cgi-bin/cvsweb.cgi/~checkout~/src/sbbs3/scfglib.h?re 15&content-type=text/plain
Of course, if you plan to #include it in your source code, you'll need some other files as well (smbdefs.h, filewrap.h, etc.).
Yes, http://cvs.synchro.net/cgi-bin/cvsweb.cgi/~checkout~/src/sbbs3/scfglib.h? 15&content-type=text/plain
Of course, if you plan to #include it in your source code, you'll need so other files as well (smbdefs.h, filewrap.h, etc.).
can't i just add the dll as a reference and declare the functions in vb to call them? i've done this with several other dlls....
Yes, but the parameters are complex-types (defined smbdefs.h). I'm not sure you'll convert those to VB types.
Yes, but the parameters are complex-types (defined smbdefs.h). I'm not su you'll convert those to VB types.
so are the parameters a pointer to a struct -- or by Complex, do you actuall mean the numeric "complex" type.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 65:17:44 |
Calls: | 335 |
Messages: | 113,199 |