Hi Teck
Great hack. It works fine, though I have an issue with my newly updated 2.3 VB. Can't post a new thread in my forum, after I altered the newthread.php. Here's the code I used (just the altered part, lines 280 or so):
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($ subject))."','".addslashes($postusername)."','$bbu serinfo[userid]','".time()."','$attachmentid','".addslashes($mess age)."','$allowsmilie','$signature','$ipaddress',' $iconid','1')");
$postid=$DB_site->insert_id();
if (in_array($foruminfo['forumid'], explode(',', $articleforum))) {
$DB_site->query("UPDATE thread SET articleid=$postid WHERE threadid=$threadid");
}
indexpost($postid,1);
// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1, lastpost='".time()."',lastposter='".addslashes($po stusername)."' WHERE forumid IN ($foruminfo[parentlist])");
Any idea where I've gone wrong??
And, what's the best way to show index.php on a front page, where the front page is framed? (If I add a frame, and have index.php show in it, when someone clicks on a link, it stays in that tiny frame).
My board is at
www.russbo.com/main.html
Thanks!
rich
doc@russbo.com