Akopia Akopia Services

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

[mv] [rotate] and MV4! Dirty solution!



******    message to minivend-users from jojo@buchonline.net     ******

Hi list,

i have a dirty trick to get the same as [rotate] in MV3.x with MV4.

This is my trick:

---------snipp products.txt------------
code    code1	         category   image                     title
rot1    rotate/rotwerb1  Rotation   rotate/rainer.gif         Midlas Pixelfabrik	
rot2    rotate/rotwerb2  Rotation   rotate/pmsb.gif           Personal Management Service
rot3    rotate/rotwerb3  Rotation   rotate/banner_kcr.gif     Konkret Consult Ruhr GmbH
rot4    rotate/rotwerb4  Rotation   rotate/zwi_banner.gif     Zwingmann Medienunternehmensberatung
rot5    rotate/rotwerb5  Rotation   rotate/bebanner_swz.jpg   Konkret Consult Ruhr GmbH
etc.
---------snipp products.txt------------

---------snipp banner.txt------------
code	category	weight	rotate	banner
rot1	Rotation	0	1	rot1
rot2	Rotation	0	1	rot2
rot3	Rotation	0	1	rot3
rot4	Rotation	0	1	rot4
rot5	Rotation	0	1	rot5
etc.
default		0	1	rot1{or}rot2{or}rot3{or}rot4{or}rot5
---------snipp banner.txt------------

---------snipp cat.txt---------
code	area	selector	name	banner_text	subs	sort	url
Rotation	Rotation	Rotation	Rotation	Rotierende Banner
---------snipp cat.txt---------

and i use this codes in my html files...

----------snipp------------
[set name="dummy" interpolate=1][banner category=Rotation][/set]
[set name="dumcode1" interpolate=1][data table=products col=code1 key="[scratch dummy]"][/set]
[set name="dumimage" interpolate=1][data table=products col=image key="[scratch dummy]"][/set]
[set name="dumtitle" interpolate=1][data table=products col=title key="[scratch dummy]"][/set]
<A HREF="http://__SERVER_NAME____CGI_URL__/[scratch dumcode1]">
<IMG SRC="[scratch dumimage]"]" WIDTH=200 ALT="[scratch dumtitle]" BORDER=0></A>
----------snipp------------

Formaly in MV3.x i have had


########### Rotate
##
## Default: blank
#
# Rotating messages 0 to 15, specified with a Vend-style filename, i.e. no
# .html suffix, (even though the file will have one), relative to the MiniVend
# page directory. Called by the [rotate] tag.  IF YOU CHANGE THEM, THEY WON'T
# TAKE EFFECT UNTIL A RESTART.
#
Rotate  rotate/rot1 rotate/rot2 rotate/rot3 rotate/rot4 rotate/rot5

rotate is a directory and all the files rot<number> was placed in
..../pages/rotate.

-------snipp rot1.html----------
[page rotate/rotwerb1]<IMG  HEIGHT=78 WIDTH=249 SRC="rotate/rainer.gif" BORDER=0 ALT="Midlas Pixelfabrik">[/page]
-------snipp rot1.html----------

and if a visitor click the link above, he get a minivend page
"rotwerb1.html".


Any comments? Are there any better methods?

Regards,

	Joachim


-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449

-
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


Search for: Match: Format: Sort by: