1
Mamba
Deactivating a banner
  • 2004/6/1 14:34

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


It seems that the only way right now to deactivate a banner is to delete it.

Is there other way to deactivate a banner?

2
Stewdio
Re: Deactivating a banner
  • 2004/6/1 14:56

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


System Admin->Preferences->General Settings

Activate banner ads? Yes|No

3
Mamba
Re: Deactivating a banner
  • 2004/6/1 15:03

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:

Stewdio wrote:
System Admin->Preferences->General Settings

Activate banner ads? Yes|No


But this would activate/deactivate "all" banners. What I am looking for is to selectively activate/deactivate individual banners w/o deleting them. For example, let's say that you have a banner that you want to be active only in the first week of the month, so for the next three weeks you just deactivate it. Then next month you just activate it again. Currently you would have to add it and then delete it each time - too much work

4
Stewdio
Re: Deactivating a banner
  • 2004/6/1 15:11

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


The current banner system does not support selective advertising or rotation of your banners.

5
Mamba
Re: Deactivating a banner
  • 2004/6/1 15:16

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Any hacks to make it selectively active/inactive, or to add at least expiration date, so by changing the date it could be expired or not?

6
Stewdio
Re: Deactivating a banner
  • 2004/6/1 15:41

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Sorry, there are no current hacks that I am aware of. As it is right now, they are either on or off, or deleted from the database.

There may be some 3rd party scripts you want to try, but I'm not up to date on the latest ones. Naturally, these would run outside your XOOPS environment, but have code that you can use in your theme.html to show and rotate your banners.

Maybe others here on the forums may have more information, my knowledge in this area is quite limited. A good place to start might be www.hotscripts.com

7
Mamba
Re: Deactivating a banner
  • 2004/6/1 16:03

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Since I don't really know PHP, I am just thinking here loud:


Would it be possible to add a field "active" to the Banner database with default as "true", and then in function

xoops_getbanner()

(located in functions.php) pull only rows of "active" banners and randomly select a banner from there?

8
Dave_L
Re: Deactivating a banner
  • 2004/6/1 19:44

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Yes, that would be possible. You would also have to examine the other places in the code that deal with the banner* tables, since modifications might be needed there too. And if you wanted to be able to activate/deactivate a banner from the admin page, that would have to be implemented.

9
Mamba
Re: Deactivating a banner
  • 2004/6/1 19:49

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Anyone from the PHP gurus who sees value of doing it, and would be willing to implement hack like this? I think, it would be a great addition to the next release of XOOPS!!!

Login

Who's Online

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


Members: 0


Guests: 127


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