Wolf42
03-03-2002, 10:00 PM
This is one I requestet for myself. But it was almost easier than i though. The idea was to search for new postings, but not the own ones. Very simple. ;)
How to do:
In seach.php
Find
// ###################### Start get new #######################
if ($action=="getnew") {
// generate query
// do it!
if ($bbuserinfo[userid]!=0 or $bbuserinfo[lastvisit]!=0) {
$forumsql=getallforumsql();
after this insert
$usersql=" AND thread.lastposter<>'".addslashes($bbuserinfo[username])."'";
then find about 11 lines down
// get date:
$datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit];
$wheresql="1=1".$forumsql.$datesql;
$wheresql.=" AND thread.open<>10";
and insert this
$wheresql.=$usersql;
Save and upload the file. Thats all.
Have Phun! :D
How to do:
In seach.php
Find
// ###################### Start get new #######################
if ($action=="getnew") {
// generate query
// do it!
if ($bbuserinfo[userid]!=0 or $bbuserinfo[lastvisit]!=0) {
$forumsql=getallforumsql();
after this insert
$usersql=" AND thread.lastposter<>'".addslashes($bbuserinfo[username])."'";
then find about 11 lines down
// get date:
$datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit];
$wheresql="1=1".$forumsql.$datesql;
$wheresql.=" AND thread.open<>10";
and insert this
$wheresql.=$usersql;
Save and upload the file. Thats all.
Have Phun! :D