TinyPortal

Development => Support => Topic started by: 3nd3r on July 12, 2007, 10:45:58 AM

Title: Number of posts in front page and pages
Post by: 3nd3r on July 12, 2007, 10:45:58 AM
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
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 10:46:29 AM
No ideas about this?
Title: Re: Number of posts in front page and pages
Post by: G6Cad on July 14, 2007, 12:35:10 PM
There is some posts about this you can find from a search
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 05:06:16 PM
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
Title: Re: Number of posts in front page and pages
Post by: tick on July 14, 2007, 05:50:12 PM
Do a search from the board index of the forum.  It will bring up quite a few.  JUst tested.
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 06:23:07 PM
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
Title: Re: Number of posts in front page and pages
Post by: tick on July 14, 2007, 06:32:30 PM
I put in front page post and it brought up two pages of front page post related topics
Title: Re: Number of posts in front page and pages
Post by: knat on July 14, 2007, 07:00:51 PM
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
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 07:16:34 PM
@ 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...)
Title: Re: Number of posts in front page and pages
Post by: knat on July 14, 2007, 07:22:45 PM
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 ;)
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 07:30:18 PM
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...
Title: Re: Number of posts in front page and pages
Post by: knat on July 14, 2007, 07:45:44 PM
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:
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 07:49:44 PM
Edit: Sorry, I don't understand you...

It's ok. I hope anybody could find the way...
Title: Re: Number of posts in front page and pages
Post by: knat on July 14, 2007, 07:56:27 PM
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:"
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 08:04:33 PM
Well, in fact I've done this modification to show more than 5 boards:
http://www.tinyportal.net/index.php?topic=14085.0
Title: Re: Number of posts in front page and pages
Post by: knat on July 14, 2007, 08:06:31 PM
Ok then i have to give up..  :P hope you get it solved  ;)
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 14, 2007, 08:18:29 PM
 :'(

Could anyone help me on this?
Title: Re: Number of posts in front page and pages
Post by: 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  ;)
Title: Re: Number of posts in front page and pages
Post by: knat on July 15, 2007, 07:34:50 PM
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
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 16, 2007, 05:45:33 AM
Yes... me too.
I hope there's a great good reason for this annoying limit
Title: Re: Number of posts in front page and pages
Post by: bloc on July 16, 2007, 11:34:14 PM
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.
Title: Re: Number of posts in front page and pages
Post by: 3nd3r on July 17, 2007, 07:21:45 AM
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.