1
seesoe
logged in static register button
  • 2007/6/22 16:34

  • seesoe

  • Just popping in

  • Posts: 33

  • Since: 2007/1/3 4


i have been working on a theme for my site for quite some time now i finally got to wrapping the theme structure. i have 2 ie bugs to fix and the whole site will be ie and ff compatible.

im using a static line that i wrote, Register Now! and i need to have to go away after you login. so i was wondering how will i make it detect of logged in hid and if not show?

2
JMorris
Re: logged in static register button
  • 2007/6/22 16:38

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


This should do the trick for you.

<{if $xoops_isuser == false}><!-- your static line --><{/if}>


HTH.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
seesoe
Re: logged in static register button
  • 2007/6/22 16:52

  • seesoe

  • Just popping in

  • Posts: 33

  • Since: 2007/1/3 4


thanks for the fast reply

and thanks for the help:)
it worked

if i wanted to do a logout button, i just make it true right?

4
JMorris
Re: logged in static register button
  • 2007/6/22 16:57

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


This would take care of that for you...

<{if $xoops_isuser == false}><!-- your static line --><{else}><a href="<{$xoops_url}>/user.php?op=logout"><!-- code for your image --></a><{/if}>


HTH.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
seesoe
Re: logged in static register button
  • 2007/6/22 17:26

  • seesoe

  • Just popping in

  • Posts: 33

  • Since: 2007/1/3 4


ok thanks

Login

Who's Online

243 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits