Add page nav number to top of page

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2007, 11:26 AM
Casual Pligger
 
Join Date: Feb 2007
Posts: 70
Hello Guys
I am trying to add the [previous]1,2,3,....[next] page nav to the top of the page in line with 'Published'.

I found the file index_center.tpl in my template folder. Firstly I could only put a page nav under 'Published' and not with it. Secondly, this is the code I used and somehow the page nav works at the bottom but at the top its empty.

Any obvious mistake I am making?

Thank you.
PHP Code:
    {php}
        Global 
$page_size$rows;
        
do_pages($rows$page_sizegetmyurl("root")); // show the "page" buttons at the bottom 
        // this will eventually be a smarty include
    
{/php}     


       {
php}
         Global 
$db$main_smarty$page_size$from_where$rows$order_by$offset$linksum_sql$linksum_count;
        include(
'./libs/link_summary.php'); // this is the code that show the links / stories
    
{/php}

    {
php}
        Global 
$page_size$rows;
        
do_pages($rows$page_sizegetmyurl("root")); // show the "page" buttons at the bottom 
        // this will eventually be a smarty include
    
{/php

Last edited by kanedaguy; 02-03-2007 at 11:31 AM.
Reply With Quote
  #2 (permalink)  
Old 02-03-2007, 11:31 AM
Casual Pligger
 
Join Date: Feb 2007
Posts: 70
And same effect with this code

PHP Code:
     {php}
         Global 
$db$main_smarty$page_size$from_where$rows$order_by$offset$linksum_sql$linksum_count;
        
do_pages($rows$page_sizegetmyurl("root")); // show the "page" buttons at the bottom 
                           
include('./libs/link_summary.php'); // this is the code that show the links / stories
    
{/php}

    {
php}
        Global 
$page_size$rows;
        
do_pages($rows$page_sizegetmyurl("root")); // show the "page" buttons at the bottom 
        // this will eventually be a smarty include
    
{/php
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 1 08-13-2008 03:59 AM
How do I change the number of items on each page? JaneDoe Questions and Comments 1 01-31-2008 06:04 PM
Live page : replace ip number with "anonymous" Juju66 Questions and Comments 0 03-06-2007 01:26 PM
number of stories on the front page bomonguny Questions and Comments 1 02-23-2007 07:33 PM
Number of Stories on the front page thefirelane Questions and Comments 1 03-08-2006 08:58 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development