Hey there! I've been using Latest Threads since last fall and loving it immensely. I just did a server switch and upgraded UBB to the latest version while I was at it. For some reason I can't get the latest threads to update any more.
You can see my main page here -
http://66.221.45.227/code/ubb/cgi-bin/ultimatebb.cgi I redownloaded the instructions just to make sure I was doing it right. The area it says to watch for in ubb_lib_posting.cgi is no longer exactly like described, so I put the code snippet at the bottom of append_index. I'm attaching below what the whole block looks like. But even tho I refresh the cache, it never updates the threads any more.
Any thoughts? My users LOVED that feature and are clamboring to have it working again ...
Lisa
BellaOnline.com
------------------------------------------------
sub append_index {
# sr parameters
# $_[0] : forum number
# $_[1] : topic number
# $_[2] : forum permissions (check to see if private)
# $_[3] : post number
# $_[4] : message
# $_[5] : subject
my $message = $_[4];
my $subject = $_[5];
# only index if search is ON
unless ($vars_search{AllowSearch} eq 'FALSE') {
my $index_file;
# index file to update will depend on index method...
if ($vars_search{IndexMethod} eq 'ONEFILE') {
$index_file = "$vars_config{CachePath}/search_index/forumindex.cgi";
} else {
$index_file = "$vars_config{CachePath}/search_index/forumindex$_[0].cgi";
}
# clean fields
my $shrunk = &indexify($message);
$subject =~ s/|/|/sg;
# assemble index line
my $index_line = join("|", $_[0], $_[1], $_[3], $GotTime{HyphenDate}, $subject, $shrunk);
# append index file
mkdir("$vars_config{CachePath}/search_index", SEVENSEVENSEVEN); #jic
&AppendFileAsString($index_file, "$index_linen");
} # if search is activated
#LISA ADDED CODE FOR THREADS
&RequireCode("$vars_config{CGIPath}/ubb_latest_threads.cgi");
&Latest_Threads;
#END LISA CODE
} # end append_index