The Daily Click ::. Forums ::. Daily Click ::. Lightbulbs / whatever your skin uses
 

Post Reply  Post Oekaki 
 

Posted By Message

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
22nd March, 2007 at 07:57:13 -

Not a bad way of doing it, though if I were Clubby I'd see about Radix' way.. after trying a similar idea using the cookies.

Edit: you could do a hint of both - but only test the first 15 topics? So retrieve the ID from the first 15, and in the cookie (ok, or text file) have the post ID and a logical indicator along with it. 1 being read and 0 unread. That could work pretty well..

Image Edited by the Author.

 
http://www.SilverNova.co.uk


Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
22nd March, 2007 at 08:06:04 -

Better yet, use the current system and then my suggestion only if there's no cookie (or if the last login was from another machine).

 
n/a

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
22nd March, 2007 at 08:39:50 -

Tim - the difference in cookies and the text file i suggested is that cookies are stored on clients, so it would be different on each computer you login from. The text file would be stored on the create-games.com server and thus things would be the same no matter where you logged in.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd March, 2007 at 13:40:23 -

Not sure if text files are such a good idea, after all databases were created for things like this.

If it's too much of a strain on the database, the date thing is an acceptable but not really failsafe method to use.

 
Old member (~2004-2007).

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
23rd March, 2007 at 14:31:49 -

Ah yeah, sorry eviscerator/bodoron I wasn't thinking so laterally there I spose :\

We could use a combination of things above.. though its quite a tough thing to sort without having to add more fields to the database for each user and forum topic :| Though the text file thing would be fairly effective, it seems a bit flimsy to me really... but maybe its just that I don't like using text files to store db info, but doesn't seem too secure or ultimately beneficial to any mighty effect.

Some way to limit and read from the first 15 or so topics would be best.. I guess the cookie from a machine could store info in a users' field... like perhaps a number from 1-15 or 0-F or something, and that indicates that the first however many are unread. Though then the sorting of topics would have to alter and depend on ID's etc :\

ARGH, I dunno

 
http://www.SilverNova.co.uk


Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  254

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
23rd March, 2007 at 15:04:39 -

Problem with text files is that for each user you'd need a file, and NTFS is limited to how many files can be in the same.. doubt i'd hit that (its in the 25,000 range), but I dont like limitations none the less.. I'll code it in to using the database at some point

 
.: ImageApocalyptic Coders - www.acoders.com :.

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
23rd March, 2007 at 15:42:00 -

WOOOOOOOOOOOOOO <3 Clubby

 
http://www.SilverNova.co.uk


axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
24th March, 2007 at 19:51:57 -

"NTFS is limited to how many files can be in the same.. doubt i'd hit that (its in the 25,000 range), but I dont like limitations none the less"

TDC's got far more than 26,000 users last time I checked

 
n/a

Yai7

Peace & Love

Registered
  28/01/2002
Points
  3197

25th March, 2007 at 12:51:36 -

25,000 and only very few guys posting on boards!
By the way axel! I really glad that you like my skin! =
This is not Bubble Girl anyway! =

 
(=

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
26th March, 2007 at 00:04:10 -

Wheh? Didn't you say you were asylumated some time ago? YER BACK!

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
26th March, 2007 at 05:35:36 -

No, he is. Asylum internet.

 
Old member (~2004-2007).

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
27th March, 2007 at 02:33:37 -

another option is to have 1 field for each user that stores all forum info separated by commas. Then you could just read this text, parse it and put each entry into its own spot in an array, and then loop through the array.

 
n/a

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
27th March, 2007 at 03:00:11 -

ALL forum info?! wow.. and then there's every new user to contend with :S Let's keep it to the first 15

 
http://www.SilverNova.co.uk


Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
27th March, 2007 at 03:41:00 -

I'm just throwing out ideas for whoever's going to implement this you don't necessarily need to take things literally..

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
27th March, 2007 at 06:06:36 -

Let's do things how they're done in other forums, as long as there's enough bandwidth/room for it.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click