1

Topic: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

I have some text showing on the homepage now but I want it to disappear when members are logged in...

Can someone enlighten me how to do this?

2

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Edit your homepage file like this

<!-- IF loggedin == "0" -->
  Display your text here
<!-- ENDIF -->

3

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Perfect! Thanks vlad you are genius smile

4

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

How about showing Popular members + New members only to those registered?

5

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Same as above, just insert those extensions inside that code block.

6

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Ok I tested it, just had to change the "0" to "1"

7

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Ok great how about helping us monetize our site by showing the UPGRADE link in the header bar IF:

a) Register AND b) Regular member

What would I put to creatae this?

8

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

<!-- IF loggedin AND session.group_id == "4" -->
 upgrade now
<!-- ENDIF -->

9

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Ok cool..

What is the link to upgrade which I need to put there?

10

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

I put:

<li>{anchor:url2="http://www.MYSITE.com/account/upgrade/payment/2/",name="Upgrade Now"}</li>

But it appears to be missing something....

11

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Don't use "anchor" extension if you're not sure how to do it. You may use regular html links

<a href="http://www.MYSITE.com/account/upgrade/payment/2/">Ugrade now</a>

12

Re: Text on HOMEPAGE.TPL only shown to NON-REGISTERED

Thanks man!!!! smile