[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: banner ads
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>Hello, Is anyone putting banner ads into their minivend website? I
>want to put banner ads on a site built with minivend, and track
>impressions and click thrus. How can I add additional
>functionality to minivend? I can write a perl function to put the
>banner ads in, and i'd like to be able to access it with a minivend
>tag, but so far, any modifications i've made to the .pm files in the
>mvend/lib/Vend directory do not get implemented. Any ideas? Russ
Hi,
I do not count click-throughs yet, but I do use counters for several
purposes. For this purpose I created a usertag in minivend.cfg:
UserTag counter hasEndTag 0
UserTag counter Interpolate 1
UserTag counter Order name inc
UserTag counter Routine <<EOF
sub {
my ($name, $inc) = @_;
$File::CounterFile::DEFAULT_DIR = $Vend::Cfg->{'VendRoot'};
my $c = new File::CounterFile "etc/$name".'.counter', "000000";
my $number = $inc?$c->inc:$c->value;
undef $c;
return $number;
}
EOF
This can be used as a page counter by including the following line in
minivend served pages:
<!-- Content Page Counter: [counter name="page" inc="1"] -->
To simply show the current count woithout incrementing:
Content pages served: [counter name="page"]
For Banners I use rotate and/or random, the individual files served by
these tags all look like this:
<!-- [counter name="acme" inc=1] -->
<A HREF="http://www.acme.de"><IMG SRC="banner/acme.gif" ALT="www.acme.de"
BORDER=0 ></A><BR>
See the docs for rotate how to define banner sets.
To count click-throughs you could use a cgi that counts and redirects
instead of the link.
Personal request for Russ and other users of OE: Could we agree not to
format email with HTML? It makes messages hard to read with many mail
clients. You may also be unable to see parts of this message with HTML
interpretation turned on.
Thank you.
Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list