Numeric Sequence for posts?

Where you can have your say about anything to do with the site

Moderators: David Martin, dave robinson, Iain Purdon, George Geddes

Numeric Sequence for posts?

Postby BobGreg » Sun Sep 20, 2009 12:24 am

Bob

Was wondering if the software enables subsequent posts to be numbered so that if replying to an earlier comment the number could be benefit - instead of agreeing with "David's earlier post xxx" it would be ... post #5 etc.

Just a thought - would be useful in very long exchanges?
BobGreg
 

Re: Numeric Sequence for posts?

Postby BobGreg » Sun Sep 20, 2009 12:26 am

#2 ... continuing the theme for example
BobGreg
 

Re: Numeric Sequence for posts?

Postby David Martin » Sun Sep 20, 2009 8:37 am

Over to Bob Dore...
David M
User avatar
David Martin
Site Admin
 
Posts: 1865
Joined: Tue Sep 08, 2009 4:48 pm
Location: Lincoln
Full Real Name: David Martin

Re: Numeric Sequence for posts?

Postby Bob Dore » Sun Sep 20, 2009 9:00 am

I'll try and get something working today.

Bob.
Bob Dore
 

Re: Numeric Sequence for posts?

Postby Bob Dore » Sun Sep 20, 2009 11:20 am

Hmm, not as simple as I thought. I can get sequential post numbers but posts can be displayed in different orders and I need to account for that so that each post always has the same number. Then if a user deletes his post the remainder would get renumbered and references would make no sense.

There's always a way, but it will take a little longer than I'd hoped. Watch this space...

Bob.
Bob Dore
 

Re: Numeric Sequence for posts?

Postby Admin » Sun Sep 20, 2009 11:58 am

Ok, as you can see it works, BUT

It only displays the post number sequentially so if anyone views posts in anything other than the default (ascending by date) or if anyone deletes a post the post numbers won't be the same. I'll give it some thought as to how best to overcome this little problemette :?

I put the post number where it seems best placed. It can go literally anywhere. Anyone have a better idea, let me know.

Edit: Made a change to the mod

If the topic is sorted by date, either ascending or descending the post number will be correct. If sorted by author or subject all posts will be numbered 0. If a post is deleted the numbering will change. If a post or author is ignored post numbering should be ok.

Bob.
User avatar
Admin
Site Admin
 
Posts: 557
Joined: Tue Sep 08, 2009 1:02 pm
Full Real Name: Site Admin

Re: Numeric Sequence for posts?

Postby BobGreg » Sun Sep 20, 2009 4:06 pm

Thanks Bob, sorry for posting a googly for you!
BobGreg
 


Return to Members' Comments

Who is online

Users browsing this forum: No registered users and 12 guests

Ads by Google
These advertisements are selected and placed by Google to assist with the cost of site maintenance.
ShadowMusic is not responsible for the content of external advertisements.