2010-11-21, 04:35 AM
Hi guys I was hoping somesone could give me some tips on how to go about displaying guest ID numbers in postbit based on session (or possibly based on IP) for my public forum. I suppose preferably based on cookie session so that the same user simply would inherit a new guest ID number should they ever initiate a new session (by clearing their cookie cache)
If someone could explain to me how I would make this work I would really appreciate it.
The only advice I have so far concerning this is as follows:
The user id is nothing more than a simple hitcounter that counts unique IPs. Every time a post is made it checks if that IP has been used before, if not it adds one. The returning value i put in an extra field in the posts table. This is all done when a new post is inserted in the database. In showthread that value is called (like the rest of the posts table info) and evaled into the postbit.
If someone could explain to me how I would make this work I would really appreciate it.
The only advice I have so far concerning this is as follows:
The user id is nothing more than a simple hitcounter that counts unique IPs. Every time a post is made it checks if that IP has been used before, if not it adds one. The returning value i put in an extra field in the posts table. This is all done when a new post is inserted in the database. In showthread that value is called (like the rest of the posts table info) and evaled into the postbit.