Advertisement:

Author Topic: Smart Pagination  (Read 17896 times)

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Smart Pagination
« on: October 25, 2011, 11:33:06 AM »
Link to Mod

Changing of standard pagination's view with CSS and default button class.

This work is licensed under the BSD 3-Clause

Offline agent47

  • Jr. Member
  • **
  • Posts: 394
  • Gender: Male
  • Death can strike at anyone, for the right price.
    • Superhero Alliance
Re: Smart Pagination
« Reply #1 on: October 26, 2011, 07:16:43 AM »
Just installed it! Looks sexy.... Goes really well with the site...
Thanks a lot Bugo.....

PortaMx is probably the best SMF portal!

Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,327
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Smart Pagination
« Reply #2 on: October 26, 2011, 09:11:01 AM »
Nice style!
Thanks for sharing! :)
¡¡NEW MOD: Sparkles User Names!!!

Offline Chair

  • Jr. Member
  • **
  • Posts: 187
Re: Smart Pagination
« Reply #3 on: October 26, 2011, 05:40:44 PM »
I did this on one of my Inferno theme modifications over at DzinerStudio - I'm very happy to see this has become a modification. :)

Offline TheCodfather

  • Semi-Newbie
  • *
  • Posts: 82
Re: Smart Pagination
« Reply #4 on: October 26, 2011, 06:21:13 PM »
very nice thanks

Offline Robert.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,080
  • Gender: Male
    • nedroden on GitHub
Re: Smart Pagination
« Reply #5 on: October 31, 2011, 02:49:02 PM »
Great mod :)

Offline MrMike

  • Full Member
  • ***
  • Posts: 649
    • BotScout.com - Bust Those Bots!
Re: Smart Pagination
« Reply #6 on: November 02, 2011, 09:27:34 AM »
Great mod, looks very nice. I'll be using this on most or all of my sites from now on.  :)

Offline androgyn3

  • Semi-Newbie
  • *
  • Posts: 29
Re: Smart Pagination
« Reply #7 on: November 09, 2011, 02:44:14 AM »
Hi, very cool mod.

Work well, but when i use "not read" link for see the not read message, this is the old pagination (original smf), the modification is not apply in /forum/index.php?action=unread

Can you fix this ?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #8 on: November 09, 2011, 04:03:12 AM »
Thanks for the report, I'll see.

Do u mean these links? (see attachment)
« Last Edit: November 09, 2011, 04:44:23 AM by Bugo »

Offline androgyn3

  • Semi-Newbie
  • *
  • Posts: 29
Re: Smart Pagination
« Reply #9 on: November 09, 2011, 05:32:52 AM »
Hi bugo,

Yes, all is normal as your screen but not in /forum/index.php?action=unread

See attachement
« Last Edit: November 09, 2011, 05:36:01 AM by androgyn3 »

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #10 on: November 09, 2011, 07:01:00 AM »
Try this updated css file.

Offline teos55

  • Jr. Member
  • **
  • Posts: 373
  • Gender: Male
    • Culturel heritage photography blog
Re: Smart Pagination
« Reply #11 on: November 09, 2011, 10:19:59 AM »
Great mod, thanks ...

SMF 2.0.1  dfeault theme Simple Portal 2.3.3

  Noticed that if the topic is only one page, then "go top"  ( or whatever the english is ) is not shown . Only back and forwrd are shown.  There is no problem if the topic has more then one page .

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #12 on: November 09, 2011, 11:42:03 AM »
Don't forget - it's a "smart" pagination ;) It's a feature, not a bug.

Offline teos55

  • Jr. Member
  • **
  • Posts: 373
  • Gender: Male
    • Culturel heritage photography blog
Re: Smart Pagination
« Reply #13 on: November 09, 2011, 11:48:27 AM »
Bugo,
  Before the mod , "go top" button was a standart future for all topics whether they've got one page or more.
So "smart pagination" should go on top of it. Am I wrong ?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #14 on: November 09, 2011, 12:01:07 PM »
Well, if you want to see "go top" button, just remove this block from Subs.php:
Code: [Select]
if (!strpos($pageindex, "...") && !strpos($pageindex, "2"))
$context['html_headers'] .= '
<style type="text/css">
.pagelinks, div.mypages, .pagesection span { display: none; }
.nextlinks { position: absolute; margin-top: 10px; }
.nextlinks_bottom { position: absolute; }
</style>';

Offline teos55

  • Jr. Member
  • **
  • Posts: 373
  • Gender: Male
    • Culturel heritage photography blog
Re: Smart Pagination
« Reply #15 on: November 09, 2011, 12:30:52 PM »
 Great ! ,
 Bugo, thanks alot.

Offline androgyn3

  • Semi-Newbie
  • *
  • Posts: 29
Re: Smart Pagination
« Reply #16 on: November 10, 2011, 04:59:08 AM »
Hi Bugo,

Quote
Try this updated css file.

Yes, seem fixed with this, thank  :).

I have a question not for this mod, how i can see immediatly the css change ? SMF seem have a long cache, when I do a change in a CSS, i empty the smf cache, my firefox cache but it's always the old css, the change is very long to appear.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #17 on: November 10, 2011, 06:29:32 AM »
Usually enough to clear cache on Admin area -> Maintenance -> Forum Maintenance -> Routine -> Empty the file cache

Offline go-

  • Semi-Newbie
  • *
  • Posts: 15
  • Gender: Male
  • Student
Re: Smart Pagination
« Reply #18 on: November 12, 2011, 11:04:34 AM »
Code: [Select]
http://xxx/index.php?action=printpage;topic=37.0
8: Undefined index: page_index
File: /home/www/xxx/html/Sources/Subs-Pagination.php
Line: 25

Any idea with this?
The crawlers are probably the only ones that try printing topics...
Nevertheless it's annoying to get these errors a couple of times a day.
Thank you.

Edit: Not only happening on printing pages.

same error appears in log when posting reply:
Code: [Select]
http://xxx/index.php?action=post;topic=7.190;last_msg=2021
and

Code: [Select]
http://xxx/index.php?/topic,7.msg2021/topicseen.html
and

Code: [Select]
http://xxx/index.php?/topic,7.msg2021.html
« Last Edit: November 12, 2011, 12:07:07 PM by go- »

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,668
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Smart Pagination
« Reply #19 on: November 12, 2011, 12:33:36 PM »
Just install a new version => 0.8