Page 1 of 2
Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 8:02 pm
by Bboy
One of the things that I really miss from the old board is the 'view today's posts' function - sometimes I read a post and want to go back and find it, but on this new board it gets marked as not new so I have to try to remember what forum it is in and go find it.
I have coded a 'Today's Posts' function that I would like you all to try out and comment on here in this thread. Any comment is fair game, and I am especially interested in format and usability.
So have at 'er:
http://www.eunuch.org/vbulletin/todaysthreads.php
Re: Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 9:20 pm
by Charlieje (imported)
Nice feature!
I guess I didn't notice this feature in the "old" board, but then I was just getting used to it when it crashed. But I for one like it!
Thanks for the effort!
Re: Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 10:12 pm
by luvpain (imported)
Great Feature,
I never used the feature in the old board, so I can't comment if it better or not.
The formatting seems to be OK, I had no problems figuring it out.
The only comment I have is, that the links to the post do not actually take you to the post but just to the start of the thread.
What I would do is place a link to the thread at the beginning of the group of posts, then have each link for the post open the thread and goto the post.
I did notice that the Message board program put "A NAME" tags in the html source so you can jump to a specfic post. The problem I see is coding the script to handle threads with more than 1 page.
Other than that I think everything is great.
I hope that what I am saying make sense.
Re: Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 10:18 pm
by Bboy
Am I crazy or is the only bookmark to the last post? Is each post bookmarked?
Not that I could see.
If not, then I will have to try to code that intot he message board software itself, a daunting task to say the least
But one I will undertake ... probably in the morning.
Re: Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 10:37 pm
by Bboy
I was just being blind ...
The feature has now been updated so it takes you to the exact post you are looking at, not the top of the thread.
Thanks for the suggestion luvpain; keep them coming everyone!
Re: Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 11:11 pm
by luvpain (imported)
BBoy,
There is flaw in the changes you made.
Everything looks fine until there are more then 15 posts for a given thread. When that happens that happens thread gets split up onto multiple pages.
Take for example the thread "Donations Needed To Help Cover The Cost of This Software" which currently has 17 posts.
Your Script shows the last 2 post by Farrell_Squire & IEunuch. The script shows the link for IEunuch post as being "
http://www.eunuch.org/vbulletin/showthr ... =7#post188"
when it should be "
http://www.eunuch.org/vbulletin/showthr ... =2#post188"
Depending on how the program stores the post as a record this could be easy to solve.
If the program stores what post number it is for the thread than all you need to do is create a routine to check to see if the number is > 15, than devide by 15, strip everhing after the decimal place and then add 1 to give you the page number.
I hope this helps.
Re: Need Help Testing This New Page ...
Posted: Sun Dec 02, 2001 11:39 pm
by luvpain (imported)
While editing my profile I noticed that I could choose how many posts displays on a page for each thread. The above logic would cause probelms for people that chose less he the default 15 posts on a page.
To solve the problem query the user's setting for number of posts per page and use that instead of 15.
Re: Need Help Testing This New Page ...
Posted: Mon Dec 03, 2001 2:07 am
by Bboy
It now works for the message board default of 15 posts per page. I have coded it in such a way that if I add a link from within the message board itself and am able to pass the userid to it it will pull use the number that the user has set for posts-per-page.
If the paged is called without a userid being passed it assumes the message board default of 15.
I recommend NOT changing your post-per-page

Re: Need Help Testing This New Page ...
Posted: Mon Dec 03, 2001 2:18 am
by haltlos (imported)
Hell, I'm not sure if I understand what exactly is going on, but:
I didn't use the "today's post" feature on the old board because I just didn't figure out what kind of "today" could be meant; I mean I'm about 6 or seven hours away from you and well:
Instead I used to "search" for any post older that 1/2/3.. days or so.
That was quite handy but doesn't work here 'cause I've got to enter a search string longer than 4 letters and ..., well in short:
"Todays post" = very good idea!
But next thought is:
"New posts from: 1 day, 2 days, 3, a week, etc"
What do you think?
gustl
PS: I see you added a "logout button" to all pages.
Great! You're truely a wizard!
Re: Need Help Testing This New Page ...
Posted: Mon Dec 03, 2001 6:44 am
by Bboy
earlier to than the time on the server to current time on the server.
Let me look into having a variable time element
