1
AZMATT
Banners?
  • 2004/12/3 1:07

  • AZMATT

  • Not too shy to talk

  • Posts: 124

  • Since: 2004/11/12


Is there a way to make certain banners only viewable by registered members?

2
brash
Re: Banners?
  • 2004/12/3 1:28

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Not when using the banner manager that comes with XOOPS you won't. You'll need to use a dedicated banner ad management system such as PHPAdsNew.

3
AZMATT
Re: Banners?
  • 2004/12/3 1:33

  • AZMATT

  • Not too shy to talk

  • Posts: 124

  • Since: 2004/11/12


Will that put the ads in the same spot as the original ads place? Cause I still want them in that area.

Also, do i use AdsNew or AdsNew 13.08?

4
DonXoop
Re: Banners?

This isn't something I've thought about but a quick idea could be to if/then the banner call.

<{if $xoops_isuser}>
<{$xoops_banner}>
<{/if}>

5
AZMATT
Re: Banners?
  • 2004/12/3 1:38

  • AZMATT

  • Not too shy to talk

  • Posts: 124

  • Since: 2004/11/12


sorry i'm php illiterate =D

6
coopersita
Re: Banners?

you'd put that code on theme.html (theme folder), where you have $xoops_banner

7
DonXoop
Re: Banners?


Look at your theme.html file under your theme. Hold on.... In your case look at: /themes/imago06c/theme.html

In that file you should see a line with <{$xoops_banner}>.

If you changed it to:
<{if $xoops_isuser}><{$xoops_banner}><{/if}>

The ads will then only be seen by registered and logged in users. You have to set the admin option to notice that change but you likely know that one if you've worked on the theme already.

To further complicate matters you could also:

<{if $xoops_isuser}>
<{$xoops_banner}>
<{else}>
some other html/image code for anon users
<{/if}>

8
AZMATT
Re: Banners?
  • 2004/12/3 1:44

  • AZMATT

  • Not too shy to talk

  • Posts: 124

  • Since: 2004/11/12


Would it do it for only certain of my banners? I basically want to block our discounted banners from non-members.

9
brash
Re: Banners?
  • 2004/12/3 1:52

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


You have two selection criteria here. The user, and the banner. Using DonXoop's code will allow you to select who gets to see the banner, but you still will not be able to select what banner is displayed using the XOOPS banner system.

10
DonXoop
Re: Banners?

Using my simple trick no, it is all or nothing unless the banner engine could do the permission rights check which the builtin doesn't. I haven't used an ads module but perhaps one of them has that capability.

A workaround could be to use two sets of ad delivery systems and give rights to anon for one and registered to the other. You will have duplication but it could work.

If you could treat the banners like a normal block vs being in the header this trick would be easier. However, a stand alone ad system can be used in the header like you have. I just haven't done it.

Login

Who's Online

478 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 478


more...

Donat-O-Meter

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

Latest GitHub Commits