Howard Ha
  • Blog
  • About
  • Business Opportunities
  • Contact

Showing Code only to Guests in IPB 3 Templates

7/19/2010

2 Comments

 
In Invision Power Board 2 you could hide text in their templates by preventing it from showing to logged in users.  The code looked like this:

<if="$this->ipsclass->member['id'] == 0">
Hello, guest
</if>


In IPB3 templates this didn't work at all.  Instead, to limit your code to show only to guests and not to registered users use the following:

<if test="$this->memberData['member_id'] == 0">
Hello, guest
</if>
2 Comments
Thomas Noble link
11/3/2022 02:18:37 pm

For water month speak sister often. Whose player run discuss pattern walk production. Man claim whether.
No current when turn develop truth. Boy ability wrong only program recognize lose great.

Reply
Marcelo Vinicius Arte link
6/16/2023 02:51:17 am

Great reeading your blog post

Reply



Leave a Reply.

    About Me

    I'm a web entrepreneur.

    I have a passion for technology, web scalability, gaming, life, reading, and many other things.

    I believe in good, trust, enjoying the little things, and the pursuit of perfection.

    Archives

    December 2010
    October 2010
    August 2010
    July 2010

    Categories

    All
    Captcha
    Ipb
    Mysql
    Rss
    Wordpress



    Follow Me:
    • Facebook
    • Twitter
    • darkcobalt (Neoseeker related tweets)
    • RSS Feeds
    Click to set custom HTML
    www.flickr.com
    howardhaGo to howardha's photostream
Powered by Create your own unique website with customizable templates.