Lets users see latest BBS news and BBS rules--my 1st mod Der Musikmann #490 @13495 7-=1Visiting Sysop7=-0 Mon Mar 22 13:43:02 1993 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name : MUSIK01.MOD Mod Author : Der Musikmann ³ ³ Difficulty : Block Read SOLARnet : 1@3476 ³ ³ Date : 3-20-93 WWIV Tested On : 4.22 ³ ³ Description : Let's user read BBS news: New news, old news, and your BBS ³ ³ rules, and/or more. Very flexible. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ I was thinking one day (yeah, that's what that burning smell is). I thought it would be neat for the users, who are interested, to be able to read a text file containing new BBS news, so I wrote this up. Here's how it works: Since /N is already taken, I used /L (for Late Night and Mid Day BBS). Anyway, they would type /L, then get a menu like this: 1Late Night and Mid Day BBS News 71: Read Latest BBS News 72: Read Older BBS News 73: Read BBS Rules 7Q: Quit 2Q123:0 To do this, make a text file called NEWS.NEW containing your new news. Make another called NEWS.OLD containing your old news. Make another called RULES.BBS containing your BBS rules. These should all go in your GFILES directory. It's that easy. If you want to do something else, just change some of the code. Say, for example, you want Fire Escape's list, you would do the following: ch=onek("Q123"); change it to ch=onek("Q1234"); add another prt line for it like: prt(7,"4: Read Fire Escape's BBS List"); lastly, make a seperate CASE statement. If you don't know how to do this, too bad. I'm not going to try to explain how to do that. Okay, here we go. This is my first mod, so go easy on me. DISCLAIMER: If your computer locks up on you, your hard drive crashes, your girlfriend leaves you, or your screen blows up in your face, IT ISN'T MY FAULT, so do step number 1! STEP 1: BACK UP YOUR SOURCE!!!!!! STEP 2: Load up BBS.C In it, do the following: Search for: if (strcmp(s,"/E")==0) that's saying what to do if the user enters /E. Under that, put this: if (strcmp(s,"/L")==0) news(); STEP 3: Load up MISCCMD.C Do the following: Search for: void print_quest(blah blah blah---- Insert this right BEFORE that void (block copy): void news(void) { int done; char ch; outchr(12); done=0; prt(1,"[YOUR BBS NAME] News"); nl(); nl(); prt(7,"1: Read Latest BBS News"); nl(); prt(7,"2: Read Older BBS News"); nl(); prt(7,"3: Read BBS Rules"); nl(); prt(7,"Q: Quit Back to BBS"); nl(); nl(); prt(2,"Q123:"); ch=onek("Q123"); switch(ch) { case 'Q': done=1; break; case '1': printfile("NEWS.NEW"); done=1; break; case '2': printfile("NEWS.OLD"); done=1; break; case '3': printfile("RULES.BBS"); done=1; break; } while ((!done) && (!hangup)); } STEP 4: Load up FCNS.H (sorry, but it's needed) and do the following: Search for void list_users(void) after it, put this: void news(void); STEP 5: Recompile it. Incase you didn't notice, FCNS.H was affected. Sorry. If you can, E-Mail me and tell me you used this. There are a lot of SOLARnet boards. Go to one and E-Mail me (1@3476). Thanks.