1 markfaulkner Nov 23, 2005 21:15
3 markfaulkner Nov 25, 2005 07:30
This worked well, how would 'is not logged in' look?
4 village_idiot Nov 25, 2005 07:45
markfaulkner wrote:
This worked well, how would 'is not logged in' look?
if youre impatient (for an answer), thats not really necessary. you can work from the premise that they are logged in, and go from there:
if( is_logged_in() ) {x=1} else {x!=1}
use the else :)
5 personman Nov 25, 2005 14:01
That would work. Or if you don't want to do anything for logged in users, you could do it like this:
if ( ! ( is_logged_in ) ) {
// stuff to do for non-members
}
This isn't exactly what you're asking for, but the code will work the same way:
http://forums.b2evolution.net/viewtopic.php?t=4896&highlight=greet+name
The key is right here: