IMPORTANT MOD CODE INFORMATIONWe decided to make the thread control file (CTB) consistent in format to all other hash based files.
Actually if you are running a current 2.x version the new format change will be painless as the new code will convert the old ctb on the fly once a thread is opened.
To force a complete conversion all you need to do is a Rebuild Message Index.
The new format looks like :
Quote:### ThreadID: 1128620481, LastModified: Fri, 22 Sep 2006 23:48:07 +0100 ###
'board',"chatter"
'replies',"13"
'views',"465"
'lastposter',"admin"
'lastpostdate',"1129916623"
'threadstatus',"0s"
'repliers',""
The good thing is that through better code reused the MessageTotals Subroutine became about 60 lines shorter
This new format also gives mod writers a solid and comfortable place to add their thread related variables, by adding them to the hash @tag) in MessageTotals (); in Load.pl, thus avoiding separate new files per thread to emerge.
Reading and setting the vars should be ${$threadid...}{'tag'}, where $threadid could be any thread id variable in the code