Current time: 10-27-2012, 09:44 PM    Register | Lost Password?

Contest #1- First member to have 5 referals will get VIP status. You can find your referal link in your UserCP


Post Reply 
Pagination First Last (one more version)
Author Message
c0rrupt Offline
Administrator


Posts: 262
Joined: Mar 2010
Post: #1
Pagination First Last (one more version)
by jomasaco on Sun Jun 13, 2010



<?php
    /*BEGIN_INFO
    Show the First,Previews,Next,Last on Pagination

    Stugas-ddl.org
    END_INFO*/
    if(!defined("WCDDL_GUTS"))
        exit;
        $modEnabled = true; //Change to false if don't use
        if($modEnabled) {    
        $add = array('site' => 'index.php?page=[PAGE]&site=[SITE]',);
        $core->pageURLs = array_merge($core->pageURLs, $add);    
        
        function firstlast($html) {
        global $core;
        
           $start = ''; $prev =''; $next =''; $end = '';
            if ($core->page > 11) {
           $start = '<a href="index.php?page=1';
           if(isset($core->type) && $type != "All"){ $start .= '&type='.$core->type; }
           if(isset($core->q)){ $start .= '&search='.urlencode(strip_tags($core->q)); }
           if(isset($core->site)){ $start .= '&site='.$core->site; }
           $start .= '">«First</a>';
           }
        
        
            if ($core->page > "1") {
           $prev = '<a href="index.php?page='.($core->page-1).'';
           if(isset($core->type) && $type != "All"){ $prev .= "&type=".$core->type; }
           if(isset($core->q)){ $prev .= "&search=".urlencode(strip_tags($core->q)); }
           if(isset($core->site)){ $prev .= "&site=".$core->site; }
           $prev .= '">‹Previous</a>';
           }
          
           if ($core->page < $core->maxPages) {
           $next = '<a href="index.php?page='.($core->page+1).'';      
           if(isset($core->type) && $type != "All"){ $next .= "&type=".$core->type; }
           if(isset($core->q)){ $next .= "&search=".urlencode(strip_tags($core->q)); }
           if(isset($core->site)){ $next .= "&site=".$core->site; }
           $next .= '"> Next›</a>';
           }

           if ($core->page < ($core->maxPages-10)) {
           $end = '<a href="index.php?page='.$core->maxPages;      
           if(isset($core->type) && $type != "All"){ $end .= "&type=".$core->type; }
           if(isset($core->q)){ $end .= "&search=".urlencode(strip_tags($core->q)); }
           if(isset($core->site)){ $end .= "&site=".$core->site; }
           $end .= '"> Last»</a>';
           }

           if(!empty($core->numRows)){
        $html = $start.$prev.$html.$next.$end;
        if($core->maxPages > 1) {
      $html.='
Page['.$core->page.'] of ['.$core->maxPages.']'; }}
        return $html;
        }
      }
        $core->attachDataHook("pageHTMLData","firstlast")
    ?>
11-07-2010 06:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Pagination First Last (seo version) c0rrupt 0 128 11-07-2010 06:35 AM
Last Post: c0rrupt



User(s) browsing this thread: 1 Guest(s)

Affiliates
PhazeDDL WarezUNION WarezOrder Free Full Downloads Free Full Downloads SuppaDDL Free Full Downloads CafeDDL-Serves Premium Downloads! Free Full Rapidshare Fileserve Netload RapidGator Extabit Warez Downloads
This forum uses Lukasz Tkacz MyBB addons.