Results 1 to 2 of 2
  1. #1
    New Pligger Koshin's Avatar
    Joined
    Jan 2008
    Posts
    27

    Pligg pagination HELP plz

    Hi guys,

    I wanted to use the pagination used on coolwater template on non-pligg website but the other theme is completely PHP based, not tpl, so how do i get the pagination used on coolwater to work on php fusion themes?

    currently im using...

    PHP Code:
    // Universal page pagination function by CrappoMan
    function makepagenav($start,$count,$total,$range=0,$link=""){
       global 
    $locale;
       if (
    $link == ""$link FUSION_SELF."?";
       
    $res="";
       
    $pg_cnt=ceil($total $count);
       if (
    $pg_cnt 1) {
          
    $idx_back $start $count;
          
    $idx_next $start $count;
          
    $cur_page=ceil(($start 1) / $count);
          
    $res.="<div class='pagination'>";
          if (
    $idx_back >= 0) {
             
    $res.="<a class='pagination' href='$link"."rowstart=$idx_back'>Previous</a>\n";
             if (
    $cur_page > ($range 1)) $res.="<a class='pagination' href='$link"."rowstart=0'>1</a>...\n";
          }
          
    $idx_fst=max($cur_page $range1);
          
    $idx_lst=min($cur_page $range$pg_cnt);
          if (
    $range==0) {
             
    $idx_fst 1;
             
    $idx_lst=$pg_cnt;
          }
          for(
    $i=$idx_fst;$i<=$idx_lst;$i++) {
             
    $offset_page=($i 1) * $count;
             if (
    $i==$cur_page) {
                
    $res.="<span class='current'><b>$i</b></span>\n";
             } else {
                
    $res.="<a class='pagination' href='$link"."rowstart=$offset_page'>$i</a>\n";
             }
          }
          if (
    $idx_next $total) {
             if (
    $cur_page < ($pg_cnt $range)) $res.="... <a class='pagination' href='$link"."rowstart=".($pg_cnt-1)*$count."'>".$pg_cnt."</a>\n";
             
    $res.="<a class='pagination' href='$link"."rowstart=$idx_next'>Next</a>\n";
          }
          
    $res.="</div>";

       }
       return 
    $res;

    how do i replace that with coolwater style pagination?

  2. #2
    New Pligger Koshin's Avatar
    Joined
    Jan 2008
    Posts
    27
    I have managed to add most of it, im missing PREVOUS, to show it at all time but to be deactive when they are on the first page just like pligg.

Similar Threads

  1. Problem with Coolwater template
    By maiti in forum Questions & Comments
    Replies: 4
    Last Post: 04-25-2008, 07:40 PM
  2. need to make the Coolwater template wider
    By digduality in forum Questions & Comments
    Replies: 2
    Last Post: 04-16-2008, 08:23 PM
  3. Problem with coolwater
    By logisblog in forum Questions & Comments
    Replies: 1
    Last Post: 03-13-2008, 09:26 AM
  4. coolwater and embed videos bug
    By dadaas in forum Questions & Comments
    Replies: 11
    Last Post: 02-16-2008, 04:50 AM
  5. pagination
    By argh2xxx in forum Questions & Comments
    Replies: 1
    Last Post: 03-19-2007, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting