| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | RE: EleBBS: Eleweb PAS Question |
* EleBBS Support List
Hi Michael
I tried those examples you gave me and I was constantly getting errors
With compiling.
Here is the code I have now
*** Top Of Script ***
---------------------------
Const
HTML_main_leftm_tpl = 'blocks/members/main_left.htm';
HTML_main_leftg_tpl = 'blocks/guests/main_left.htm';
*** Half Way Down ***
------------------------------
If web_IsLoggedOn then
Begin
ShowHtmlFile(HTML_main_leftm_tpl);
End
Else
Begin
ShowHtmlFile(HTML_main_leftg_tpl);
End;
This is part of the error log
342 if web_IsLoggedOn then
344 begin
344 ShowHtmlFile(HTML_main_leftm_tpl);
**** ^ 0-------------------
344 end
344 else
344 Begin
345 ShowHtmlFile(HTML_main_leftg_tpl);
**** ^ 0-------------------
*** Errors encountered during compile:
I'm wondering if the rest of the script has something to do with this error.
--- Coolmax
-------Original Message-------
From: Michael Preslar
Date: 06/22/06 10:18:35
To: elebbs{at}thebbs.org
Subject: RE: EleBBS: Eleweb PAS Question
* EleBBS Support List
Never done any elebbs hacking but going from the code you pasted the
Following should be similar to what you want
If web_IsLoggedOn then
Begin
Web_ShowHtmlFile('blocks/members/memberspage.htm');
End
Else
Begin
Web_ShowHtmlFile('blocks/guests/guestspage.htm');
End;
OR .. If you don't like begin/end pairs (I do, but that's just me) you
Can do
If web_IsLoggedOn then
Web_ShowHtmlFile('blocks/members/memberspage.htm')
Else
Web_ShowHtmlFile('blocks/guests/guestspage.htm');
Note that without the begin/end pairs, the first web_Show* does not have
A trailing ; while the last one does.
I don't know if those paths are correct, but if you can recompile
Eleweb, and based on your rep for modding eleweb, then I figure you can
Change the paths to what they need to be.
--
Michael Preslar
Landline: (402) 614-3551
Cell: (402) 990-8001
_______________________________________________________________
--- Internet Rex 2.29
* Origin: The gateway at The Snake (2:280/4312.101)SEEN-BY: 633/267 270 @PATH: 280/4312 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.