Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

He is the MELBA-BEING ... the ANGEL CAKE ... XEROX him ... XEROX him --


dovenet / Synchronet Baja / Flow

SubjectAuthor
* FlowDesotoFireflite
`* FlowDigital Man
 `- FlowDesotoFireflite

1
Flow

<62A2561A.53.dove-syncbaja@valhalla.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=90&group=DOVE-Net.Synchronet_Baja#90

  copy link   Newsgroups: DOVE-Net.Synchronet_Baja
From: desotofireflite@VERT/VALHALLA (DesotoFireflite)
To: All
Subject: Flow
Message-ID: <62A2561A.53.dove-syncbaja@valhalla.synchro.net>
Date: Thu, 9 Jun 2022 09:20:42 -0400
X-Comment-To: All
Path: rocksolidbbs.com!not-for-mail
Organization: Valhalla Home Services
Newsgroups: DOVE-Net.Synchronet_Baja
X-FTN-PID: Synchronet 3.19c-Win32 master/ddd4d10b2 May 19 2022 MSC 1929
X-FTN-CHRS: CP437 2
WhenImported: 20220609132714-0700 c1e0
WhenExported: 20220619211848-0700 c1e0
ExportedFrom: VERT bajaprog 4440
WhenImported: 20220609162042-0400 c12c
WhenExported: 20220609162654-0400 c12c
ExportedFrom: VALHALLA dove-syncbaja 53
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: DesotoFireflite - Thu, 9 Jun 2022 13:20 UTC

OK, I'm modifing my default.src to show a defferent level menu for a level 10 user. What Im trying to do is if the user is expert, it goes to the next section of the default.src after the snippit. If they are not expert, it check to see if they are level 10, if so, show them the level 10 menu, if not level 10, take them to the other levels.

What it's doing is if expert mode, the bbs goes offline, if not in expert, all I see is the prompt, no menu. WHere have I gone wrong.

------------ Snippit -------------- ------ My Reasoning -------------
# Display TEXT\MENU\MAIN.* if not in expert mode
compare_user_misc UM_EXPERT 1. Compare for expert
if_false 2. If not expert, find user level
compare_ars level 10 3. comparing levels
if_equal 4. if level 10
cls 5. clear screen
menu main_10 6. show level 10 menu
else 7. If not level 10
cls 8. clear screen
menu main 9. show default menu
end_if 10. end of user level comparison.
if_true 11. if expert mode is true, goto
------------ End Of Snippit --------- next section of default.src

Thanks in advance

SysOp: C.G. Learn, AKA: DesotoFireflite
Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
A Gamers Paradise - Over 250 Registered Online Game Doors!

--- SENILE.COM found...Out of Memory...
■ Synchronet ■ Valhalla Home Services ■ USA ■ http://valhalla.synchro.net

Flow

<62A2642D.4441.bajaprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=91&group=DOVE-Net.Synchronet_Baja#91

  copy link   Newsgroups: DOVE-Net.Synchronet_Baja
From: digital.man@VERT (Digital Man)
To: DesotoFireflite
Subject: Flow
Message-ID: <62A2642D.4441.bajaprog@vert.synchro.net>
Date: Thu, 9 Jun 2022 07:20:45 -0700
X-Comment-To: DesotoFireflite
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Baja
In-Reply-To: <62A2561A.53.dove-syncbaja@valhalla.synchro.net>
References: <62A2561A.53.dove-syncbaja@valhalla.synchro.net>
X-FTN-PID: Synchronet 3.19c-Linux master/d3e4c4edb Jun 7 2022 GCC 8.3.0
X-FTN-CHRS: CP437 2
WhenImported: 20220609142045-0700 c1e0
WhenExported: 20220619211848-0700 c1e0
ExportedFrom: VERT bajaprog 4441
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Digital Man - Thu, 9 Jun 2022 14:20 UTC

Re: Flow
By: DesotoFireflite to All on Thu Jun 09 2022 04:20 pm

> OK, I'm modifing my default.src to show a defferent level menu for a level
> 10 user. What Im trying to do is if the user is expert, it goes to the next
> section of the default.src after the snippit. If they are not expert, it
> check to see if they are level 10, if so, show them the level 10 menu, if
> not level 10, take them to the other levels.
>
> What it's doing is if expert mode, the bbs goes offline, if not in expert,
> all I see is the prompt, no menu. WHere have I gone wrong.
>
> ------------ Snippit -------------- ------ My Reasoning -------------
> # Display TEXT\MENU\MAIN.* if not in expert mode
> compare_user_misc UM_EXPERT 1. Compare for expert
> if_false 2. If not expert, find user level
> compare_ars level 10 3. comparing levels
> if_equal 4. if level 10
> cls 5. clear screen
> menu main_10 6. show level 10 menu
> else 7. If not level 10
> cls 8. clear screen
> menu main 9. show default menu
> end_if 10. end of user level comparison.
> if_true 11. if expert mode is true, goto
> ------------ End Of Snippit --------- next section of default.src

You have 3 if's in that snippet, but only one end_if.

I think what you mean to write was:
compare_user_misc UM_EXPERT
if_false
compare_ars level 10
if_equal
cls
menu main_10
else
cls
menu main
end_if
else
....
end_if

Notice there is an end_if for ever if.
--
digital man (rob)

This Is Spinal Tap quote #45:
I don't really think the end can be assessed as of itself as being the end
Norco, CA WX: 89.0°F, 43.0% humidity, 15 mph S wind, 0.00 inches rain/24hrs
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net

Flow

<62A38F08.55.dove-syncbaja@valhalla.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=92&group=DOVE-Net.Synchronet_Baja#92

  copy link   Newsgroups: DOVE-Net.Synchronet_Baja
From: desotofireflite@VERT/VALHALLA (DesotoFireflite)
To: Digital Man
Subject: Flow
Message-ID: <62A38F08.55.dove-syncbaja@valhalla.synchro.net>
Date: Fri, 10 Jun 2022 07:35:52 -0400
X-Comment-To: Digital Man
Path: rocksolidbbs.com!not-for-mail
Organization: Valhalla Home Services
Newsgroups: DOVE-Net.Synchronet_Baja
In-Reply-To: <62A2642D.4441.bajaprog@vert.synchro.net>
References: <62A2642D.4441.bajaprog@vert.synchro.net>
X-FTN-PID: Synchronet 3.19c-Win32 master/ddd4d10b2 May 19 2022 MSC 1929
X-FTN-CHRS: CP437 2
WhenImported: 20220610122723-0700 c1e0
WhenExported: 20220619211848-0700 c1e0
ExportedFrom: VERT bajaprog 4442
WhenImported: 20220610143552-0400 c12c
WhenExported: 20220610152705-0400 c12c
ExportedFrom: VALHALLA dove-syncbaja 55
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: DesotoFireflite - Fri, 10 Jun 2022 11:35 UTC

Re: Flow
By: Digital Man to DesotoFireflite on Thu Jun 09 2022 02:20 pm

DM> Re: Flow
DM> By: DesotoFireflite to All on Thu Jun 09 2022 04:20 pm

>> OK, I'm modifing my default.src to show a defferent level menu for a
>> level 10 user. What Im trying to do is if the user is expert, it goes
>> to the next section of the default.src after the snippit. If they are
>> not expert, it check to see if they are level 10, if so, show them the
>> level 10 menu, if not level 10, take them to the other levels.

>> What it's doing is if expert mode, the bbs goes offline, if not in
>> expert, all I see is the prompt, no menu. WHere have I gone wrong.

>> ------------ Snippit -------------- ------ My Reasoning
>> ------------- # Display TEXT\MENU\MAIN.* if not in expert mode
>> compare_user_misc UM_EXPERT 1. Compare for expert
>> if_false 2. If not expert, find user
>> level compare_ars level 10 3. comparing levels
>> if_equal 4. if level 10
>> cls 5. clear screen
>> menu main_10 6. show level 10 menu
>> else 7. If not level 10
>> cls 8. clear screen
>> menu main 9. show default menu
>> end_if 10. end of user level
>> comparison. if_true 11. if expert
>> mode is true, goto ------------ End Of Snippit --------- next
>> section of default.src

DM> You have 3 if's in that snippet, but only one end_if.

DM> I think what you mean to write was:
DM> compare_user_misc UM_EXPERT
DM> if_false
DM> compare_ars level 10
DM> if_equal
DM> cls
DM> menu main_10
DM> else
DM> cls
DM> menu main
DM> end_if
DM> else
DM> ...
DM> end_if

DM> Notice there is an end_if for ever if.

Ah, I see, I was looking so hard at what I was tring to do, I forgot a simple rule. I changed one other thing to make it work the way I wanted it to.

I changed "compare_ars level 10" to "COMPARE_ARS LEVEL = 10"

Now everything works. The "compare_ars level 10" was giving me everything level 10 and above, so the menu didn't change, but by changing it to "level = 10", it only gaves me the level 10 menu for level 10 users, and the regular menu for everyone else.

Thank You so much for the assist.

SysOp: C.G. Learn, AKA: DesotoFireflite
Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
A Gamers Paradise - Over 250 Registered Online Game Doors!

--- Old farts never die! They just smell that way...
■ Synchronet ■ Valhalla Home Services ■ USA ■ http://valhalla.synchro.net

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor