Customizing SMF > SMF Coding Discussion
Session Recognition
Egoista:
Hello, everyone, how is your day?
Well what I am trying to accomplish here is to display:
If the user is logged of:
Login | Register
If the user is logged in:
Hello, (Username). You have (x) New Messages. Not you? Log Out.
Where "Login" and "Register" will link to they're respective pages, "(Username)" will link to they're profile, "New Messages" will go to they're messages page and "Log Out" will log them out.
CapadY:
Take a look at the possibilityies of SSI.
An example can be find at www.yoursite.com/ssi_examples.php
Egoista:
Thank you very much, I've gotten that issue resolved, though I have another question:
Where are the variables defined?
I want to change some of them.
Arantor:
The variables are defined in the depths of SMF (and used in the main forum too), what do you want to modify exactly?
Egoista:
--- Code: ---<?php ssi_welcome(); ?>
--- End code ---
Results in:
Welcome, Guest. Please login or register.
I just want:
Login | Register
Navigation
[0] Message Index
[#] Next page
Go to full version