Category : BBS Programs+Doors
Archive   : TONSMOD.ZIP
Filename : NOTITLE.MOD
No Title Needed Mod v1.0
by Robert Miller 1 @ 7302
The following mod was suggested by a number of users on my system who
don't like thinking up titles to their posts. What this mod will do is
when a user enters a blank line for a title it will substitute 1 of 10
randomly chosen titles.
To install this mod do the following steps:
1. Load MSGBASE.C into your favorite editor.
2. Search for void inmsg(messagerec *m1, char *title, int *anony,
3. In the variable declarations add the following variable to the string
of integer variables already declared:
rnd_msg
4. Search for the following line in void inmsg:
helpl=6;
5. Insert the following code AFTER helpl=6;
if (okansi()) { /* add this */
prt(2,"Title: ");
mpl(60);
inputl(title,60);
} else {
pl(" (---=----=----=----=----=----=----=----=----=----=----=----)");
outstr("Title: ");
inputl(title,60);
}
if (title[0]==0) {
rnd_msg = (rand() % 10);
if (rnd_msg == 0) {
strcpy(title,"This message is brought to you by "); }
if (rnd_msg == 1) {
strcpy(title,"This space for rent by "); }
if (rnd_msg == 2) {
strcpy(title,"I really HATE thinking of titles "); }
if (rnd_msg == 3) {
strcpy(title,"..."); }
if (rnd_msg == 4) {
strcpy(title,"Here's a REALLY important message by "); }
if (rnd_msg == 5) {
strcpy(title,"Random message #5 has been generated for "); }
if (rnd_msg == 6) {
strcpy(title,"Ditto, ditto, ditto..."); }
if (rnd_msg == 7) {
strcpy(title,"For a good time call 703-754-0884..."); }
if (rnd_msg == 8) {
strcpy(title,"Generic Title for a Generic Message by Generic User "); }
if (rnd_msg == 9) {
strcpy(title,"Boy am I having FUN now....."); }
strcpy(s,thisuser.name);
strcat(title,s);
}
6. Immediately after the new code remove or comment out the following
lines:
/*
if ((title[0]==0) && (needtitle)) {
pl("Aborted.");
m.stored_as=0xffffffff;
*m1=m;
if (!fsed)
farfree((void *)lin);
return;
}
*/
7. Load TurboC hit F9 and you are done.
A small warning about this mod. If a user decides to send mail or
accidentally hits the P)ost command they can no longer abort the message
by simply leaving the title blank. They have to wait until the editor loads
and then abort from the editor. This is not really a major problem except
for the very, very new users and for new users who are registering since they
may not know how to abort the editor. Of course this does force new users
into the editor for a validation message and might encourage a few more
new users to send validation messages.
If you have any questions, suggestions or problems feel free to contact
me via the network.
Robert W. Miller
1@7302
Vint Hill Farms
Virginia
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/