Advertisement:

Author Topic: Smart Pagination  (Read 17880 times)

Offline go-

  • Semi-Newbie
  • *
  • Posts: 15
  • Gender: Male
  • Student
Re: Smart Pagination
« Reply #20 on: November 12, 2011, 12:39:55 PM »
thank you. errors gone.  ;)

Offline impreza

  • Sophist Member
  • *****
  • Posts: 1,054
    • ToTemat
Re: Smart Pagination
« Reply #21 on: February 21, 2012, 09:28:30 AM »
Great and useful

I have a suggestion - to be a scroll button to start and end pages

Rewind That every one of one position and two of all the items to the last page

How do I turn off limit the number of pages - there are two buttons next to each side of the page - this is an oversight
Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

Offline impreza

  • Sophist Member
  • *****
  • Posts: 1,054
    • ToTemat
Re: Smart Pagination
« Reply #22 on: April 03, 2012, 11:31:10 AM »
badly it works with Simple Portal - the home page
Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

Offline impreza

  • Sophist Member
  • *****
  • Posts: 1,054
    • ToTemat
Re: Smart Pagination
« Reply #23 on: May 10, 2012, 03:42:59 AM »
It's obviously not a problem with SimplePortal. You need to add this line as the second line in the pagination.css file:

Code: [Select]
.sp_page_index strong,
Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

Offline tMicky

  • Jr. Member
  • **
  • Posts: 146
  • Gender: Female
Re: Smart Pagination
« Reply #24 on: May 12, 2013, 02:42:12 PM »
It's obviously not a problem with SimplePortal. You need to add this line as the second line in the pagination.css file:

Code: [Select]
.sp_page_index strong,
where does one find pagination.css?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #25 on: May 12, 2013, 04:03:46 PM »
/Themes/default/css dir.

Offline tMicky

  • Jr. Member
  • **
  • Posts: 146
  • Gender: Female
Re: Smart Pagination
« Reply #26 on: May 12, 2013, 05:56:39 PM »
/Themes/default/css dir.
thank you  :)

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Smart Pagination
« Reply #27 on: August 22, 2013, 09:58:31 PM »
Good mod.

I removed the margin-right: 3px; (I thought it was a bit unnecessary)

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,662
  • Master of BBC Abuse
Re: Smart Pagination
« Reply #28 on: January 15, 2015, 03:31:44 PM »
Bugo, nice mod, but it doesn't generate consistent presentation on action=unread and action=unreadreplies. Any chance of updating it so it'll handle those pages too? AFAICT it's just a couple of additions to hooks.php and Subs-Pagination.php.

Offline Bannockburn

  • Newbie
  • *
  • Posts: 1
Re: Smart Pagination
« Reply #29 on: February 28, 2016, 05:59:42 AM »
Any tips on making this work for 2.0.11? Right now it makes it invisible and spitting out only "<!-- Smart Pagination -->" in the code.

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,977
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: Smart Pagination
« Reply #30 on: May 12, 2018, 06:07:35 AM »
I get this error (php 7.1)

Code: [Select]
2: Parameter 1 to smart_pagination_buffer() expected to be a reference, value given
Posted here more info: https://www.simplemachines.org/community/index.php?topic=560303.0

Offline d3vcho

  • Sempiterno
  • On Hiatus
  • SMF Hero
  • *
  • Posts: 4,784
  • Gender: Male
    • frandominguez03 on GitHub
Re: Smart Pagination
« Reply #31 on: May 12, 2018, 06:10:16 AM »
Try to change this:

Code: [Select]
function smart_pagination_buffer(&$buffer)
{
global $context, $txt;

if (isset($_REQUEST['xml']) || empty($context['page_index'])) return $buffer;

To:

Code: [Select]
function smart_pagination_buffer($buffer)
{
global $context, $txt;

if (isset($_REQUEST['xml']) || empty($context['page_index'])) return $buffer;
"Greeting Death as an old friend, they departed this life as equals"

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,977
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: Smart Pagination
« Reply #32 on: May 12, 2018, 06:19:30 AM »
That edit fixed the error, but disabled the mod functionality.
Hmmm, or maybe not, maybe something like nginx or Memcache affecting this mod as sometimes it displays the css changes and others not.

Offline wylekk

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
    • WYLEK.RU
Re: Smart Pagination
« Reply #33 on: February 28, 2020, 07:53:49 AM »
Поставил новую версию и посыпались ошибки, на smart_pagination_1.0.smf21 ошибок нет, только не везде стрелки есть.

Code: [Select]
Тип ошибки: Общие
2: array_merge(): Argument #1 is not an array
 https://site.ru/index.php?action=profile;u=14326;area=alerts_popup;counter=3
 /home/admin/web/site.ru/public_html/Sources/Class-SmartPagination.php (Строка 47)


Code: [Select]
Тип ошибки: Неопределенные
8: Undefined index: page_index
 https://site.ru/index.php?action=profile;u=14326;area=alerts_popup;counter=3
 /home/admin/web/site.ru/public_html/Sources/Class-SmartPagination.php (Строка 41)

Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,253
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: Smart Pagination
« Reply #34 on: September 17, 2020, 03:37:56 PM »
I have installed on 2.1 beta 1 but cannot see update.
Do I have some settings to enable.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,253
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: Smart Pagination
« Reply #35 on: September 17, 2020, 05:24:37 PM »
Type of error: General
The callable SmartPagination::hooks could not be called.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Offline Portugal

  • Jr. Member
  • **
  • Posts: 256
Re: Smart Pagination
« Reply #36 on: October 13, 2020, 11:56:16 AM »
Hi Bugo,

You go to update this good mod to works well on 2.0.1.7 version? It gives error if instaled.

Thanks in advance