1
pegasus00321
Hide Ads for People Who Donated

I want to be able to remove ads for certain users that have donated to the sites I own (they run XOOPS).

Is there a way to do that or a hack?

Thanks in advance

2
aclysma
Re: Hide Ads for People Who Donated
  • 2005/5/15 5:33

  • aclysma

  • Just popping in

  • Posts: 7

  • Since: 2005/5/10


I'm pretty new to xoops, but here is an approach.

Assign all your "subscribers" to be part of some group.

Then, in the either the php or the template (if the ad rotator is in a template) you check if they are in the group or not and if not, don't print the html to cause the ads.

Pretty simple idea, but provided you can get the specific code you'd need, it should work well.

There may be a simpler solution too. I wouldn't know though.

Philip

3
davidl2
Re: Hide Ads for People Who Donated
  • 2005/5/15 9:15

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


That would be the best way, and - if I'm right - Xdonate will move people into a different group when a payments made?

(I think it does anyway!)

4
pegasus00321
Re: Hide Ads for People Who Donated

How do I write a code to put in my Theme.html file so that if they are part of a group, dont do XOOPS Banner.

<{php}>
if (!(Group == 'donaters')) {
<{$xoops_banner}>
}
<{/php}>

So how would I check which group they are part of.

5
Arowana
Re: Hide Ads for People Who Donated
  • 2005/5/18 3:01

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


Instead of using the banner ads in XOOPS we created a new block. Then anyone that donated to the site we had xdonations enter them into a group called Donators. Finally we set permissions in the groups not to allow access to the new block (ads) that we created.

Hope this helps

6
Shine
Re: Hide Ads for People Who Donated
  • 2005/5/18 7:11

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


how to realise this without making use of the module xdonations, but some (smarty?)-code within the template of the theme.html ?
Is the code provided above working/correct?

Grtz., Shine

7
pod
Re: Hide Ads for People Who Donated
  • 2005/5/18 7:30

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


I don't believe xdonations does this - I just checked mine & found no such functionality.

However, I believe the following thread may be of some use to you:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=32938&forum=5&post_id=156988#forumpost156988

8
pegasus00321
Re: Hide Ads for People Who Donated

Thanks GUYS!
Rock On!

I modified the code a bit and it worked like a charm.

Login

Who's Online

108 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 108


more...

Donat-O-Meter

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

Latest GitHub Commits