Akopia Akopia Services

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

RE: [mv] Search Results [next 10] [previous 10] MV 3.14-3



******    message to minivend-users from "Humberto T Reyes" <htreyes@earthlink.net>     ******

Thank you to all...Very helpful.

Humberto
htreyes@earthlink.net


-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of
jojo@buchonline.net
Sent: Wednesday, April 12, 2000 2:45 AM
To: minivend-users@minivend.com
Subject: Re: [mv] Search Results [next 10] [previous 10] MV 3.14-3


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

On 10 Apr, To: minivend-users@minivend.com wrote:

>Hi!
>
>But since you are using minivend 3.14.x (and not 4.0 jojo...),
>go to interpolate.pm under the lib/vend of minivend
>search for "$next_anchor = qq%<IMG SRC="$next_anchor"$border>%;"
>read some lines above and bottom... that the source (plus/minus)...
>
>C ya,
>Eran.

> On 10 Apr, Humberto T Reyes wrote:
>> ******    message to minivend-users from "Humberto T Reyes"
<htreyes@evine.net>     ******
>>
>> Greetings,
>>
>> Several people asked a while back about the way the search results are
>> listed on the top like this:
>>
>> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Next
>>
>> I would like to know two things:
>>
>> 1. Has anyone changed this code so that it is more like this:
>>
>> [next 10] [previous 10]
>>
>> or something like that--would you mind sharing?
>>
>> 2. Could someone point me to where the original code is located?
>>
>> Thanks in advance to all.
[DEL]


Hi Eran,

i have read the email to fast and i´ve not seen the "MV 3.14-3" from
the subject. After looking into the Interpolate.pm, maybe this codes
(see  below) can helps Humberto a little bit. But i´ve not try to get
an output like

[previous 10] 10 11 etc . [next 10]

But this codes

-------snipp---------
sub tag_more_list {
	my($r,$q,$next_anchor, $prev_anchor,
		$page_anchor, $border, $border_selected) = @_;
	my($arg,$inc,$last,$m);
	my($adder,$current,$pages);
	my $next_tag = '';
...
...
...
#jojo
        my $start1 = 1;
	while ($current >= ($start1 + 10)){$start1 = $start1 + 10;}
        my $end1 = $start1 + 9;
        if($start1 <= 0){$start1 = 1;}
#jojo

	foreach $inc ($start1..$end1) {
		last if $page_anchor eq 'none';
		$pa = $page_anchor;
		$pa =~ s/__PAGE__/$inc/g;
		$next = ($inc-1) * $chunk;
		$last = $next + $chunk - 1;
		$last = ($last+1) < $total ? $last : ($total - 1);
		if($inc == $current) {
-------snipp---------

make this output (for example):

[1] 2 3 4 5 6 7 8 9 10 next   (the current page is 1)

and

previous [11] 12 13 14 15 16 17 18 19 20  next (the current page is 11)

and

previous 41 42 43 44 45 46 47 48 49 [50] (the current and the last page
is 50)

instead of

1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

Regards,

	Joachim


--
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671449
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

-
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: