View Single Post
Old 05-01-2006, 12:35 PM   #5 (permalink)
arch13
Loves my girl in thongs
 
arch13's Avatar
 
Location: North of Mexico, South of Canada
Quote:
Originally Posted by trache
Quick and dirty? Take out the code that references the actual prev/next page numbers leaving the code that displays or appends the current page number to the line of HTML you output from that function.
Do you mean this area?
This seems to be what prints the adjoining numbers to the current page.


PHP Code:
            # See if we should any $spacer in connection to this link.
            
if ($i>AND $i<sizeof($pages)-1)
            {
                
$prev $pages[$i-1];
                
$next $pages[$i+1];

                
# See if we should any $spacer *before* this link.
                # (Don't add one if the last link is already a spacer.)
                
if ($prev $curr-AND $links[sizeof($links)-1] != $space)
                    
$links[] = $space;
            }

            
# Add the link itself!
            # If the link is not the active page, link it.
            
if ($curr != $active)
                
$links[] = '<a href="'.$pre_href.$curr.$post_href.'">'.$curr.'</a>';
            
# Else don't link it.
            
else
                
$links[] = '<strong class="active">'.$active.'</strong>';

            if (
$i>AND $i<sizeof($pages)-1)
            {
                
# See if we should any $spacer *after* this link.
                # (Don't add one if the last link is already a spacer.)
                
if ($next $curr+AND $links[sizeof($links)-1] != $space)
                    
$links[] = $space
__________________
Seen on an employer evaluation:

"The wheel is turning but the hamsters dead"
____________________________
Is arch13 really a porn diety ? find out after the film at 11.
-Nanofever
arch13 is offline  
 

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 51 52 53 54 55 56 57 58 59 60 61 62