MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: [mv] help with multiple defined [random] banners?



At 03:47 PM 10/14/1999 , you wrote:
>******    message to minivend-users from Victor Nolton <ven@pragakhan.com>
    ******
>
>>How would each file of the random list do this? Would it call its own
>>[random] tag? If so, how would it be diferent from the others? I thought
>>random couldn't be restricted to specified banners from a list either.

[if [item-category] eq "business"]
	<IMG SRC="businessbanner.gif">
[/if]
[if [item-category] eq "lordsofacid"]
	<IMG SRC="loa2.gif">
[/if]
[if [item-category] eq "pragakhan"]
	<IMG SRC="pragakhan.gif">
[/if]

You could put those in each of the (limit) 15 files...  theoretically you'd
end up with 45 different randoms (15 for each category).  This is
definitely slower/easier than writing a PERL banner rotator - but that
wouldn't be a bad idea either.

>I was saying have each random file be something. Like random2 be for 
>business banners. The perl code in that would be coded in such a way 
>as to only deal with banners in the business category.

	Sure, you could write some PERL, use File::Find to look in a
'images/banners/[item-category]/' directory, fill an array, pick a random
one, and dump the contents of the corresponding file.  You could create a
directory for each category in your catalog.
	I don't know how you would handle minivend interpolation (if you needed
it) - but I imagine this would make a great globalsub to share with
everyone when you finished it.  :-)

>For instance banners for business might be code 1-20. the random code 
>(in perl) would pick a dandom number between 1 and 20.
>
>i really dunno, I am babbling, i haven't worked on a solution :(
>
>Ven's News: http://www.pragakhan.com/news.html
>
>                    HEAVEN IS AN ORGASM is Rereleased
>              http://lordsofacid.pragakhan.com/heavenisanorgasm
>
>Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
>AOL: WebmstrVen     Praga Khan's Official Website        ICQ: 8321393
>                       http://www.pragakhan.com
>                     Lords of Acid Official Website
>                       http://www.lordsofacid.com
>-
>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
> 

Ryan Hertz                                              tel  800-645-BAIT
Webmaster                                               fax  520-645-2588
Advertising Director                            http://www.insideline.net
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com


Search for: Match: Format: Sort by: