Previous Page | Next Page

by Mouser X at 10:31 PM EDT on August 15, 2005
You seem to have broken something... The "forums.php" isn't working, though I don't know if posting in "forums2.php" will get noticed (or mess up something else). Mouser X over and out.
by Mouser X at 10:32 PM EDT on August 15, 2005
It seems to be working now. As such, I'll post the message I was attempting to post when it was "borked."

What the? Geez, that was sure weird... I refreshed the page, read a new post, went back to the forums, refreshed again (about 5 minutes difference between refreshes) and Wa-La! Pages! I was like "What the crud? Is this some kind of joke? Did I refresh the right tab? I tried again, and even checked a few links back to make sure I was in the right place. Obviously, I was. Woah... It's kind of weird, but more unexpected, I guess.

Well, now that we have pages, perhaps we can hope for page numbers soon? That would be nice, though it probably won't happen soon... Anyway, nice job, even if I was used to the old "one huge page for everything" method. I'm sure I'll get used to this, though, right now, it does seem a little strange... The forum is actually taking shape... Wow. Thanks again! Mouser X over and out.
by hcs at 10:36 PM EDT on August 15, 2005
As Mouser X has noticed there is now pagination. I was getting annoyed waiting for some of the longer threads to load.
I also moved the database passwords into a different file so I don't have to edit the source before I put it up each time.

What do you want page numbers for?

forums2.php is an experiment but it uses the same database, I was going to add some new user info and that was the starting point. Haven't worked on it in a while.
by Mouser X at 10:52 PM EDT on August 15, 2005
Well, page numbers aren't all that important, but they're nice to have for a few reasons. For one, you can know how many pages a thread is. Also, if someone has a question that has already been addressed, you can simply link them to page "N," rather than retype the whole thing. That could come in handy for some people. Also, it makes navigation easier for those who are looking for something, and have an idea of where it should be. That way, they dont' have to keep clicking "next page" to get to the one they want.

Basically, I think page numbers (with links) would provide more ease of use to the forums. However, I suppose they're not a big deal. Though helpful they could be.

As for forum2.php, I found that on accident by mistyping the address for the forums. I knew it was in /mboard/ but I didn't realize it was in its own file in that directory. When I ended up there, I was like "What the..." I just figured I found a backup, or something. I've avoided it, for fear of breaking something. However, since, at the time, it was broken anyway, I figured it wouldn't do anymore damage for me to post there, and I figured that way at least the message would get across, in case you (HCS) hadn't noticed the breakage (which, really isn't likely, since I probably just happened to access it as you were updating, or something. Nonetheless, I figured I'd err on the safe side, and bring it to your attention, just in case).

Anyway, there's my 2 cents worth. Mouser X over and out.
by hcs at 2:59 PM EDT on August 17, 2005
There was a bug in when the "Next Page" link would show up, it now uses floor() same as the lastpage logic.
I'm too used to variables being typed as integers.

edited 11:13 PM EDT August 17, 2005
Editing by hcs at 7:12 PM EDT on August 17, 2005
Editing is now in place. Your ability to edit a post expires 1 day after you post it. Currently the links are visible to everyone, but rest assured that only you can edit your own post. When I get persistant login implemented it'll only give you the option to edit your own posts.
And before someone tries it, yes, I check when you submit the edit if it has expired, I don't just hide the link.

[edit]

I've also just now moved the tags descriptions over to the right of the entry forms. I think this looks a lot better. The only problem is that when tabbing from User Name you hit the link in the tags descriptions first.

[edit]

Also, I've manually placed the "[edit]" thing up above in my own posts, it isn't automated.

edited 11:24 PM EDT August 17, 2005
by hcs at 8:12 PM EDT on August 17, 2005
As has been requested the name of the thread is now in the title, on any non-thread page however I still have a random phrase.
Login by hcs at 11:34 PM EDT on August 17, 2005
Ok, I've put together a cookie-based login system. When you log in a token is randomly generated and stored as a cookie, along with your user name. That token is removed if you logout or replaced if you log in from a different browser (if you log in and the cookies already exist the date will just be updated). This gives a little more security than just storing the password in a cookie.
The database keeps track of the last time you logged in or out in order to report on new threads and posts. Posts and threads are marked with an asterisk (*) next to the subject. The "last" time is updated when you log out as well as when you log in so that things that happen during your current login don't show up again new. Thus it is recommended that you log out when you're done, both for security and so you only get the actually new things reported as new.
On a thread page, if there are any new posts in the thread, the first post will be marked new. This is due to a limitation of the post age recording system, the first post holds the last updated time for the whole thread. This may be rectified shortly.
The edit feature is now only shown on your own posts, at least while logged in (otherwise all < 1 day old posts have that option).
The manual log-in-every-time-you-post system still works.

Use the bug reports thread (or here if you feel like it) to let me know what doesn't work.

[edit]
The "new posts" system will only work the second time you log in.
Also, when you make or edit a post, it will be marked new. Live with it.

edited 3:35 AM EDT August 18, 2005

edited 7:07 AM EDT August 18, 2005
by unknownfile at 3:39 AM EDT on August 18, 2005
Teh yay
by hcs at 4:45 AM EDT on August 18, 2005
"On a thread page, if there are any new posts in the thread, the first post will be marked new. This is due to a limitation of the post age recording system, the first post holds the last updated time for the whole thread. This may be rectified shortly."

Short of changing the database structure or doing a lot of extra work at runtime I can't think of an easy way to fix this. I've tested a new structure, where first posts point to themselves rather than to the mythical "Post 0", but I've still got some sorting problems with that. I'd rather not change the fuindamental structure anyway, as I'm sure some weird problems would creep in that I didn't think of.
Given that this is the only visible problem I think everything is pretty good.

Previous Page | Next Page
Go to Page 0 1 2 3 4

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source