MyBB Community Forums

Full Version: Topic starter no-count
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is a great idea, great work Da Dude, it annoyed me when threads got the 1 view. but one thing, if the creator views the topic at any point, it won't add a view, how can i make only not count the initial view?
Try this:

Open:
newthread.php

find:
	$db->query("INSERT INTO ".TABLE_PREFIX."threads (tid,fid,subject,icon,uid,username,dateline,lastpost,lastposter,views,replies,visible, prefix) VALUES	(NULL,'$fid','$subject','$icon','$author','$username','$now','$now','$username','0','0','$visible', '$prefix')");

Change to:
	$db->query("INSERT INTO ".TABLE_PREFIX."threads (tid,fid,subject,icon,uid,username,dateline,lastpost,lastposter,views,replies,visible, prefix) VALUES	(NULL,'$fid','$subject','$icon','$author','$username','$now','$now','$username','1','0','$visible', '$prefix')");

i haven't tested it, but i think it should work Smile