TIP: Click on subject to list as thread! ANSI
echo: elebbs_support
to: All
from: Michael Preslar
date: 2006-06-21 19:49:20
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
 


-----Original Message-----
From: Coolmax [mailto:coolmax{at}ddomain.bbs.us] 
Sent: Wednesday, June 21, 2006 7:43 PM
To: EleBBS
Subject: EleBBS: Eleweb PAS Question


* EleBBS Support List

Hi All 

 

I'm after a little help here with a little Pascal in eleweb..

 

what i want to do is display 2 seperate htm files based on if the user
is
logged in or not.

 

e.g.  guest.htm (for guests)

         And  member.htm (for members)

 

If was wonder if I could use part of this code

------------------------------------------------------------------------
--

 

{-- Make sure this is not run on an anonymous logon
------------------------}

  if NOT web_IsLoggedOn then
    begin

      web_RunErrorScript(4, '');              { Show an "Access denied"
error }

      Halt;                                           { Terminate this
script }

    end; { if }

 

------------------------------------------------------------------------
---

 

With part of this code

 

{-- Show the list-user header
------------------------------------------}

     if NOT web_ShowHtmlFile('blocks/members/main_left.htm') then

       ShowError('Unable to find main_left.htm');

 

------------------------------------------------------------------------
---

 

 

or maybe someone has a better idea :)

Thanks

 

-- Coolmax

 

------------------------------------------------------

Running Fully Modded EleBBS System

------------------------------------------------------

    Telnet/HTTP/FTP/NNTP/KDX

                ddomain.bbs.us

 

 

 

 

 

 

 

 

 

_______________________________________________________________


--- 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™.