Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-05-09 09:35:31
- -P-
- Member
- From: Finland
- Registered: 2005-09-10
- Posts: 211
Banner rotator/ ad scripts and solutions?
Hi!
Thought I´d ask here since this community has been always very supportive and helpfull. I am totally stuck with one site and it´s banner (ad) rotator. I have tested now more that ten different options and scripts and just don´t seem to find a suitable one.
What I need to do is in the header I have div id into which I´m calling a random banner.
*Has to support both .swf and .gif
*Need to be linked
*Need to be random
*Rather not javascript
Should not be that difficult in theory but in practice I´m stuck. Can it be that with some scripts there is a problem that on a page I call the header from a form? <code><txp:output_form form=“header” /></code>
Off course in the worst case I could achieve image rotation with <code><txp:if_section name=“section”></code> but that is not random. Checked also TXP random image plugins but they don´t support linking? Some database based solution like PHP Ads is just too fancy and complicated system to use in this scenario since there are less than ten different banners and they mostly promote campains within the site than any outside affiliates.
Offline
#2 2006-05-09 10:31:02
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Banner rotator/ ad scripts and solutions?
I’m doing the same on some site. I’ve made a section called ad, because i’m using image+text adds. Then I use
< txp:article_custom limit=“1” section=“ad” listform=“ad” sortby=“rand()” / >
So I guess you could do the same, and make little articles with no more than an article image and erm.. the link as the body (plain text then) or as a custom tag? Then assemble all of that adequately in your form.
Last edited by guiguibonbon (2006-05-09 10:31:26)
Offline
#3 2006-05-09 10:35:55
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Banner rotator/ ad scripts and solutions?
Oh, just figured txp might not accept .swf as image. Well, then you could also simply write the whole tags one by one in your article’s body.
Offline