| View previous topic :: View next topic |
| Author |
Message |
Trance Lover Grandmaster Cheater Supreme
Reputation: 0
Joined: 14 Feb 2008 Posts: 1249 Location: Broa :)
|
Posted: Wed Sep 24, 2008 1:53 pm Post subject: Blank Pages. |
|
|
| In CEF why do we have blank pages? For instance If There is a topic which there is needed 2-3 more posts then the 2nd page will create, It always creates the page prematurely and it gets annoying because It says there is no posts in this topic, Then you have to go back and choose 1 less page. Isn't there a way to fix that?
|
|
| Back to top |
|
 |
Drkgodz Flash moderator
Reputation: 2
Joined: 17 Jul 2006 Posts: 2997 Location: Houston
|
Posted: Wed Sep 24, 2008 2:03 pm Post subject: |
|
|
The reason is when there are 2 pages, and a mod deletes posts, when there is only 1 page of posts left, it still thinks there are 2 pages.
The fix(I don't know about php) would be to:
| Code: |
pages = Math.floor(postCount/postsPerPage);
|
_________________
Last edited by Drkgodz on Wed Sep 24, 2008 2:03 pm; edited 1 time in total |
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Wed Sep 24, 2008 2:03 pm Post subject: |
|
|
This happens when invisible people post.
or maybe what drkgodz said? or both!
_________________
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Wed Sep 24, 2008 2:11 pm Post subject: |
|
|
| localhost wrote: | This happens when invisible people post.
or maybe what drkgodz said? or both! |
This is correct.
_________________
LAWLrrenzolicious |
|
| Back to top |
|
 |
Drkgodz Flash moderator
Reputation: 2
Joined: 17 Jul 2006 Posts: 2997 Location: Houston
|
Posted: Wed Sep 24, 2008 2:13 pm Post subject: |
|
|
| Code: | postCount = totalPosts-(!isModerator)?invisiblePosts:0
pages = Math.floor((postCount)/postsPerPage); |
_________________
|
|
| Back to top |
|
 |
Trance Lover Grandmaster Cheater Supreme
Reputation: 0
Joined: 14 Feb 2008 Posts: 1249 Location: Broa :)
|
Posted: Wed Sep 24, 2008 4:43 pm Post subject: |
|
|
| Ahh, Well DB should fix it, It gets annoying =X
|
|
| Back to top |
|
 |
Dark Blade Grandmaster Cheater
Reputation: 0
Joined: 25 Aug 2008 Posts: 767 Location: Florida,jacksonville
|
Posted: Wed Sep 24, 2008 5:45 pm Post subject: |
|
|
| cal17 wrote: | | Ahh, Well DB should fix it, It gets annoying =X |
xD no DB shouldnt take time to fix something so stupid just go back and press the page before that
_________________
| ~NJ wrote: | | I'm an asshole. |
 |
|
| Back to top |
|
 |
Weirder Al Grandmaster Cheater Supreme
Reputation: 3
Joined: 11 Apr 2008 Posts: 1046
|
Posted: Thu Sep 25, 2008 7:28 pm Post subject: |
|
|
| The real problem is when you click the link in your email and it sends you there.
|
|
| Back to top |
|
 |
|