Date: 03/16/01
- Next message: Jess Perez: "[phplib] OK What am I doing wrong."
- Previous message: Kristian Köhntopp: "[phplib] What is happening now?"
- Next in thread: Jess Perez: "[phplib] OK What am I doing wrong."
- Reply: Jess Perez: "[phplib] OK What am I doing wrong."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> >Hi Lars,
> >
> >> But I think Phorum uses two files like header and footer. Maybe
> >it's
> >> possilbe to use the header file to open a session and just
> >rewrite the
> >> links?
> >> I don't know how much work it is... ;-)
> >Not so much - I have done this for a project. It is yust adding
> >the
> >phplib-header to the "header" file. I cannot find my updated
> >version of
> >phorum at the moment, but If someone is interested, I can search
> >more
> >extensivly.
> >
> >Regards,
> >Joern
>
> I'd be interested if it's not too much trouble.
>
> --Jesse
I've actually managed to get it working now.
I add page_open() to each of the phorum pages.
Remember to use auth and perm as well as sess.
then in form.php encase the full file in an if to check for a users perms
ie.
if($perm->have_perm("user")):
/// form code here
else:
?>
<br><br>
<div align="center">
<h4>You would be able to <?= (basename($SCRIPT_NAME) == "post.php") ? "post
a new message" : "reply to this message"; ?> if you were logged in.</h4>
</div>
<?php
endif;
?>
This will then display the message that they could post/ reply if they were
logged in.
M@
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Jess Perez: "[phplib] OK What am I doing wrong."
- Previous message: Kristian Köhntopp: "[phplib] What is happening now?"
- Next in thread: Jess Perez: "[phplib] OK What am I doing wrong."
- Reply: Jess Perez: "[phplib] OK What am I doing wrong."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

