Adverts for guests only.
|
flippingheck
![]()
Joined: 2009-06-08
Posts: 25 |
Posted: Mon, 2009-11-16 15:26
|
|
Is it possible to stop showing adverts for a user who has registered? Thanks. |
|


Posts: 16503
You can check if they are a registered user:
http://codex.gallery2.org/Gallery2:Themes:Reference:Variables
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 25
Thanks for your reply. It looks like it may be possible then but beyond my capabilities to work it out on my own. I have an advert in the sidebar. How would I show a different sidebar to a guest and a member please?
Posts: 16503
Post a URL to your site.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 25
Sorry I had to go out for the day yesterday.
It's an adult site. FBB
p.s. just made a modest donation to the cause.
Posts: 16503
In the same file you modified to display the ads, add the stuff in bold:
[EDIT] oh and that file would be /themes/ice/templates/local/theme.tpl [/EDIT]
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 25
Thanks nivekiam, it worked like a charm. I won't be implementing it for a day or two but it's sitting there already to go!
Very much appreciated.