using ssi.php to add login box

Started by sprange3, March 23, 2014, 11:52:18 PM

Previous topic - Next topic

sprange3

I am looking for the correct way to add a login box to an external php site.
after calling the ssi.php file, I added the following code:
<?php ssi_login(); ?>
<?php ssi_welcome(); ?>
<?php ssi_logout(); ?>
. The login works correctly, however I would like the logout link and welcome message to only appear once the user is logged in. On login, the user should be redirected to the forum (as it is currently), on logout, the user should remain on the current page. What is the correct way to code this? Thank you.

sprange3

Since I can't delete this post, I reposted it in the SMF customization/coding board. It actually belongs there. Sorry about that.

Advertisement: