24, July 2008

"Show all unread topics." has no page 2 - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  WebDigity Community  >  HumanWorks network news & feedback
Topic: "Show all unread topics." has no page 2
« previous next »
Pages: [1] Print

Author Topic: "Show all unread topics." has no page 2  (Read 1515 times)
Pinoy Webmaster
.com pimp
*****
Gender: Male
Posts: 1126
6048 credits
Members referred : 0


Philippine Beaches


« on: May 23, 2006, 02:47:36 AM »

is it just me? i cant seem to go to the second page of this section. whenever i click page 2, it takes me to the very last page.


Last blog : Marigondon Beach, Cebu, Philippines
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #1 on: May 23, 2006, 11:52:14 AM »

Yeah I saw that too.

The site has some bugs that I have to fix.

I will check those today. Thanks for letting me know Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: May 27, 2006, 12:46:52 PM »

it looks like the limit is bad coded for the query:

LIMIT $showlatestcount"

only one number?

(but I'm not so good with SMF) Wink


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #3 on: May 27, 2006, 12:53:11 PM »

The problem is that the query gets all the unread topics, but shows only the topics that haven't done from the bots.

It is a little hard to make it work from the query, but I will find it Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 27, 2006, 12:57:29 PM »

The problem is that the query gets all the unread topics, but shows only the topics that haven't done from the bots.

It is a little hard to make it work from the query, but I will find it Smiley
this wil say that the current list is complete? (I don't want to see the postings of bots)


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #5 on: May 27, 2006, 01:04:01 PM »

I know. The problem is that (let's talk programming Smiley )

1. SELECT all unread (including bot's posts)

2. Calculate the pages from the above query

3. Display only the listings that haven't made from bots.

Now I will have to substract the bot posts from the COUNT. I will work it out right now, so don't be scared if you see anything strange in that page for a while Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: May 27, 2006, 01:08:33 PM »

I see, the standard SQL doesn't know about the bots... it was better to handle if SMF is an OOP based forum Smiley


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #7 on: May 27, 2006, 01:13:38 PM »

Yeah it would be better, but propably it would be slower also.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: May 27, 2006, 01:18:59 PM »

Yeah it would be better, but propably it would be slower also.

do you think a real OOP board will be slower? I think the reason that most of the boards are not OOP is a lack of knowledge...


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #9 on: May 27, 2006, 01:27:14 PM »

Right now it would be propably better, but before php 5 it wouldn't be.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #10 on: May 27, 2006, 01:45:53 PM »

Ok, I've fixed that. Let me know if you see any other problem.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: May 27, 2006, 04:43:15 PM »

Right now it would be propably better, but before php 5 it wouldn't be.
Yes, since php5 its finally possible to write oop applications


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #12 on: May 28, 2006, 06:01:16 PM »

Yeah, and I guess this is an opportunity for the forum software community.

I wish I had enough spare time to start a project like this.....

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: May 28, 2006, 09:56:06 PM »

Yeah, and I guess this is an opportunity for the forum software community.

I wish I had enough spare time to start a project like this.....
me too, I'm happy if my next (paid) project is written for php5 Smiley


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7974
40801 credits
Members referred : 3



« Reply #14 on: May 28, 2006, 11:37:06 PM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2585
Tags : php forums simple machines forum programming oop Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  WebDigity Community  >  HumanWorks network news & feedback
Topic: "Show all unread topics." has no page 2
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 11:05:56 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.712
Total Topics: 7.376
Total Members: 3.706
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: FortuneBeach

23 Guests, 5 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.