Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

show sign up banner only if visitor is guest


2 replies to this topic

#1 sydjeii

  • Community Member
  • 91 posts
  • Real Name:cj losaria
  • Gender:Female

Posted 19 January 2012, 18:06

hello.. i have a sign up banner that links to create_account.php.. I want to make it appear only if the visitor is not logged on.. Can somebody please help me how to do it?. I prefer not to use contri.. maybe a simple if else statement..or any other way.. thanks :)
-=PINOY AKO=-

#2 bktrain

  • Community Member
  • 2,093 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 19 January 2012, 19:39

Something like
  if (!tep_session_is_registered('customer_id')) {
    'your code here';
  }

Remember to backup database, files and pictures.

I reject your reality and substitute my own.
My mind not only wanders, it sometimes leaves completely.
The problem with the gene pool is that there is no lifeguard.
Everyone’s entitled to my opinion.


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#3 sydjeii

  • Community Member
  • 91 posts
  • Real Name:cj losaria
  • Gender:Female

Posted 20 January 2012, 02:51

Thank you sir.. it worked.. :)
-=PINOY AKO=-