Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7014465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:31:28+00:00 2026-05-27T22:31:28+00:00

I installed joomla 1.7(window/xampp/php 5.3) and my current template is beez_20. I have to

  • 0

I installed joomla 1.7(window/xampp/php 5.3) and my current template is beez_20. I have to override the pagination.php and to do so I copied the pagination.php from

\libraries\joomla\html

to

\templates\beez_20\html. When I reload the home page, I am getting a broken template as in the following picture.

enter image description here

I get the normal page when I remove the pagination.php from the html folder. I believe this is the correct method to override the pagination.php

what is missing ? need to change any configuration ? please post your comments

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:31:29+00:00Added an answer on May 27, 2026 at 10:31 pm

    I do belive this is the correct way to do it…

    Here is a pagnation.php for you to try with (works for me):

    <?php
    // no direct access
    defined('_JEXEC') or die('Restricted access');
    
    /**
     * This is a file to add template specific chrome to pagination rendering.
     *
     * pagination_list_footer
     *   Input variable $list is an array with offsets:
     *       $list[limit]       : int
     *       $list[limitstart]  : int
     *       $list[total]       : int
     *       $list[limitfield]  : string
     *       $list[pagescounter]    : string
     *       $list[pageslinks]  : string
     *
     * pagination_list_render
     *   Input variable $list is an array with offsets:
     *       $list[all]
     *           [data]     : string
     *           [active]   : boolean
     *       $list[start]
     *           [data]     : string
     *           [active]   : boolean
     *       $list[previous]
     *           [data]     : string
     *           [active]   : boolean
     *       $list[next]
     *           [data]     : string
     *           [active]   : boolean
     *       $list[end]
     *           [data]     : string
     *           [active]   : boolean
     *       $list[pages]
     *           [{PAGE}][data]     : string
     *           [{PAGE}][active]   : boolean
     *
     * pagination_item_active
     *   Input variable $item is an object with fields:
     *       $item->base    : integer
     *       $item->link    : string
     *       $item->text    : string
     *
     * pagination_item_inactive
     *   Input variable $item is an object with fields:
     *       $item->base    : integer
     *       $item->link    : string
     *       $item->text    : string
     *
     * This gives template designers ultimate control over how pagination is rendered.
     *
     * NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST             override them both
     */
    
    function pagination_list_footer($list)
    {
    // Initialize variables
    $lang =& JFactory::getLanguage();
    $html = "<div class=\"list-footer\">\n";
    
    if ($lang->isRTL())
    {
        $html .= "\n<div class=\"counter\">".$list['pagescounter']."</div>";
        $html .= $list['pageslinks'];
        $html .= "\n<div class=\"limit\">".JText::_('Display     Num').$list['limitfield']."</div>";
    }
    else
    {
        $html .= "\n<div class=\"limit\">".JText::_('Display     Num').$list['limitfield']."</div>";
        $html .= $list['pageslinks'];
        $html .= "\n<div class=\"counter\">".$list['pagescounter']."</div>";
    }
    
    $html .= "\n<input type=\"hidden\" name=\"limitstart\" value=\"".$list['limitstart']."\" />";
    $html .= "\n</div>";
    
    return $html;
    }
    
    function pagination_list_render($list)
    {
    // Initialize variables
    $lang =& JFactory::getLanguage();
    $html = "<div class=\"pagination\"><ul>";
    // Reverse output rendering for right-to-left display
    if($lang->isRTL())
    {
        $html .= "<li class=\"pagination-start\">".$list['start']['data']."</li>";
        $html .= "<li class=\"pagination-prev\">".$list['previous']['data']."</li>";
    
        $list['pages'] = array_reverse( $list['pages'] );
    
        foreach( $list['pages'] as $page ) {
            if($page['data']['active']) {
                //  $html .= '<strong>';
            }
    
            $html .= "<li>".$page['data']."</li>";
    
            if($page['data']['active']) {
                // $html .= '</strong>';
            }
        }
    
        $html .= "<li class=\"pagination-next\">".$list['next']['data']."</li>";
        $html .= "<li class=\"pagination-end\">".$list['end']['data']."</li>";
        // $html .= '&#171;';
    }
    else
    {
    
        foreach( $list['pages'] as $page )
        {
            if($page['data']['active']) {
                // $html .= '<strong>';
            }
    
            $html .= "<li>".$page['data']."</li>";
    
            if($page['data']['active']) {
                //  $html .= '</strong>';
            }
        }
    
    
    }
    $html .= "</ul></div>";
    return $html;
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Joomla 1.5.4 and the Hybrid template from RocketTheme. It was successful,
For learning purposes I have installed Joomla on my local host using XAMPP for
I have installed xampp package. I am trying to run Joomla application over xampp.
I am a beginner to Joomla, I have installed Joomla 1.5 in my server
I have a joomla installation which I have installed aceshop onto. I have also
I have a joomla setup in my /home/joomla directory. I installed both Apache and
I have joomla installed on my brothers server using softaculous in cpanel. But my
I recently installed Community Builder for Joomla!. I can't seem to have a capcha
I currently have a Joomla 1.5 site with VirtueMart installed. The hierarchy of product
I am running XAMPP locally with Joomla 1.5.22 installed. I wanted to enable front

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.