TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,992
  • Total Topics: 21,323
  • Online today: 422
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 446
  • Total: 447
  • tino

Number of posts in front page and pages

Started by 3nd3r, July 12, 2007, 10:45:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

3nd3r

Hello.

I'm using SMF 1.1.3 + TP 0.9.8.3 + Simplicity TP
Website: http://www.pajareo.com

There's an issue about posts showed in front page:
I've put in TP Admin > Index > What to show in index > Only forum
and
in TP Admin > Index > Number of messages to show in index > 16.

The thing is:
If I put 16 in this box, my index page shows 4 pages of 16 messages each one = 64 messages
If I put 15 in this box, my index page shows 4 pages of 15 messages each one = 60 messages
If I put 10 in this box, my index page shows 5 pages of 10 messages each one = 50 messages
If I put 20 in this box, my index page shows 3 pages of 20 messages each one = 60 messages

What can I do for my index page shows ALL messages no matter how many pages?
I mean something like [1] 2 ... 12 ... 60 (for example)

Thanks in advance for your time

3nd3r


G6Cad

There is some posts about this you can find from a search

3nd3r

I wonder if you would be so kind to show me where could I find this info, because my searchs can't find any related to this...
I would really appreciete this...
Thank you in advance for your time

tick

Do a search from the board index of the forum.  It will bring up quite a few.  JUst tested.

3nd3r

Excuse me, but my searchs can't find the info I need.
I do several searchs with this terms: "messages index page", "number pages index" and different combinations, but without any solution...
Could you tell me what search did you make? Maybe I'm trying with wrong terms...

Thanks again

tick

I put in front page post and it brought up two pages of front page post related topics

knat

#7
it shows all your messages.. so the less messages you have per page the more pages it will generate..

Example.. lets say you have 100 posts

you set per page 10.. it will generate 10 pages with 10 messages on each..

set the number to 1 it will generate 100 pages with 1 message on each page..

set the number 20 and you get 5 pages with 20 messages..

I hope you get the picture ;)


Edit: I just found out that i read your post wrong.. what you want is the SMF mod that makes ... clickable  ;)

here it is: http://custom.simplemachines.org/mods/index.php?mod=497

Sorry for not understanding you post the first time i read it  ;D

3nd3r

#8
@ Tank
Do you think I need a mod?
Just look to the bottom of this board (http://www.tinyportal.net/index.php?board=25.0)

You will see Pages: [1] 2 3 ... 109

That's what I want for my index page...
If you still think I need it, please tell me and forget this reply.

Actually your 'striketrough' text doesn't work... I have more than 1200 posts and If I put 10 in that box, my index page shows ONLY 5 pages of 10 messages each one = 50 messages...

That's my problem...

@Tick
No solutions on that search (3 result pages...)

knat

Quote from: 3nd3r on July 14, 2007, 07:16:34 PM
Do you think I need a mod?
Just look to the bottom of this board (http://www.tinyportal.net/index.php?board=25.0)

You will see Pages: [1] 2 3 ... 109

That's what I want for my index page...
If you still think I need it, please tell me and forget this reply.

Actually your 'striketrough' text doesn't work... I have more than 1200 posts and If I put 10 in that box, my index page shows ONLY 5 pages of 10 messages each one = 50 messages...

That's my problem...

Yes i know.. the mod is cool.. i use it on my own site.. but anyway you need to go to admin > features and options > Layout and Options

the you can change it ;)

3nd3r

Well, thanks for your answer Tank, but I think that this would be a small bug or code mismatch I have on my web code.
I mean, I think I don't need a mod to do a thing that it supposes to do it without a modification.
Anyway, if there isn't another way to do it, I will try... But it's a little weird...

knat

#11
i just told u howw to do it without the mod ?  :o

Edit: Ohh i see, my way would not affect the "ending" number.. just how many numbers are shown.. im lost..  :buck2:

3nd3r

#12
Edit: Sorry, I don't understand you...

It's ok. I hope anybody could find the way...

knat

i figured it out.. maybe :D

in TP admin > settings > frontpage

What boards have you selected in the 5 colums ?? Only post form these boards will be shown on the frontpage ?

look where it says "Show forum-posts on front page from:"

3nd3r


knat

Ok then i have to give up..  :P hope you get it solved  ;)

3nd3r


3nd3r

Wow... I've burn my eyes, but at last I've got it...

Just found on .../Sources/TPortal.php :
// count boardnews to show pages for forum posts
function TP_boardNewsCount($board, $limit = '50')


Change '50' to whatever number of total messages you want (I've put '9999')

And it's done  ;)

knat

Quote from: 3nd3r on July 14, 2007, 11:37:54 PM
Wow... I've burn my eyes, but at last I've got it...

Just found on .../Sources/TPortal.php :
// count boardnews to show pages for forum posts
function TP_boardNewsCount($board, $limit = '50')


Change '50' to whatever number of total messages you want (I've put '9999')

And it's done  ;)

I wonder what the reason is for puttin a limit there ?!? :D

3nd3r

Yes... me too.
I hope there's a great good reason for this annoying limit

bloc

Its a simple one..the higher limit the more data is fetched => higher strain on the server. Its actually meant to be a setting this one, but haven't been implemented yet.

Take care though.. as putting too high a number can grind the script to a halt.

3nd3r

Quote from: Bloc on July 16, 2007, 11:34:14 PMIts actually meant to be a setting this one, but haven't been implemented yet.
That would be a great great idea.

Thanks for clarifying about this.

This website is proudly hosted on Crocweb Cloud Website Hosting.