MiniVend Akopia Services

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

Re: Problem with [more-list][more][/more-list]



******    message to minivend-users from Frank Miedreich <miedreich@acm.org>     ******

>******    message to minivend-users from "Gideon van Gelder"
><gideon@swingmaster.nl>     ******
>
>Hi there,
>
>When the #matches from a search exceeds the mv_matchlimit, Minivend shows
>"previous1 2 3 4 5 next", after having clicked next. A space is missing
>between previous and 1.
>
>How can I solve this ?
>
>Thanks in advance,
>
>Gideon
>

To do this you will have to edit the file "lib/Vend/Interpolate.pm" in your
minivend home directory (usually either minivend or mvend).

The subroutine you need is sub tag_more_list (line 2811 in 3.11)

find the following code in this subroutine:

----- code excerpt -----
	if($first) {
		$first = 0 if $first < 0;
		unless (defined $prev_anchor) {
			$prev_anchor = 'Previous';
		}
		elsif ($prev_anchor ne 'none') {
			$prev_anchor = qq%<IMG SRC="$prev_anchor"$border>%;
		}
		unless ($prev_anchor eq 'none') {
			$arg = $session;
			$arg .= ':';
			$arg .= $first - $chunk;
			$arg .= ':';
			$arg .= $first - 1;
			$arg .= ":$chunk:$mod";
			$list .= '<A HREF="';
#			$list .= vendUrl('search', $arg);
			$list .= vendUrl("scan/MM=$arg");
			$list .= '">';
			$list .= $prev_anchor;
			$list .= '</A>';
		}
	}
----- code excerpt -----

and change the line that says: $list .= '</A>'; to $list .= '</A> ';
i.e. include a space after the closing bracket of the </A> tag.

You will need to restart minivend for the change to take effect.

Caveats:

Be careful to use an editor that knows about Unix line breaks.

Backup Interpolate.pm first.

Good luck, Frank



--
Note: this message was encrypted by using dual rounds of ROT-13
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


Search for: Match: Format: Sort by: