28, May 2012

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

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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


Philippine Beaches


« on: May 23, 2006, 01: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 : Bingag Beach, Bohol, Philippines
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: May 23, 2006, 10: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: May 27, 2006, 11:46:52 am »

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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



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

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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 27, 2006, 11:57:29 am »

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)

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: May 27, 2006, 12: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: May 27, 2006, 12: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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #7 on: May 27, 2006, 12: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: May 27, 2006, 12: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...

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #9 on: May 27, 2006, 12: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 or twitter

Last blog : Butterfly Marketing 2.0
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #10 on: May 27, 2006, 12: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: May 27, 2006, 03: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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #12 on: May 28, 2006, 05: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: May 28, 2006, 08: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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #14 on: May 28, 2006, 10:37:06 pm »


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
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?
May 28, 2012, 10:14:23 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!






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