Welcome, Guest. Please Login or Register.
May 05, 2025, 06:17:17 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Mark read button takes you back to the board index « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Mark read button takes you back to the board index  (Read 509 times)
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Mark read button takes you back to the board index
« on: July 28, 2002, 09:56:38 PM »
Reply with quote

Mark read button takes you back to the board index after marking that board read.  Would this be a simple edit or something a little more?

Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:Mark read button takes you back to the board index
« Reply #1 on: July 29, 2002, 04:52:44 AM »
Reply with quote

I guess i need to edit this section.

Quotefunction MarkRead() {
   # Mark all threads in this board as read.
   global $currentboard,$username,$db_prefix;
   $request = mysql_query("SELECT logTime FROM {$db_prefix}log_mark_read WHERE (ID_BOARD=$currentboard && memberName='$username')");
   if (mysql_num_rows($request) == 0)
      $request = mysql_query("INSERT INTO {$db_prefix}log_mark_read (logTime,ID_BOARD,memberName) VALUES (".time().",$currentboard,'$username')");
   else
      $request = mysql_query("UPDATE {$db_prefix}log_mark_read SET logTime=".time()." WHERE (ID_BOARD=$currentboard && memberName='$username')");

   MessageIndex();
   obExit();
}
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:Mark read button takes you back to the board index
« Reply #2 on: July 29, 2002, 09:28:47 PM »
Reply with quote

I have tried swapping
MessageIndex();for
include_once "$sourcedir/BoardIndex.php"; BoardIndex();
but just get this error
2: Failed opening '/BoardIndex.php' for inclusion (include_path='.:/usr/local/lib/php')
(/files/local/home/earthdome/forum/Sources/MessageIndex.php ln 420)
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
sylvester
YaBB God
*****
Posts: 525


Re:Mark read button takes you back to the board index
« Reply #3 on: July 29, 2002, 09:36:03 PM »
Reply with quote

Quote from: Stud Muffin on July 29, 2002, 09:28:47 PMI have tried swapping
MessageIndex();for
include_once "$sourcedir/BoardIndex.php"; BoardIndex();
but just get this error
2: Failed opening '/BoardIndex.php' for inclusion (include_path='.:/usr/local/lib/php')
(/files/local/home/earthdome/forum/Sources/MessageIndex.php ln 420)

Doh ;)
$sourcedir isn't a super-global ;)
put the following line below function MarkRead():
global $sourcedir;
Logged

I'm back
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:Mark read button takes you back to the board index
« Reply #4 on: July 29, 2002, 09:58:13 PM »
Reply with quote

Woot, thanks i would give you a karma point if they had it enabled  :-*

I know very little about PHP and just checked out the searchnew mod and saw this
   include_once "$sourcedir/BoardIndex.php"; BoardIndex();
   obExit();

so I knew it was possible,  Thanks for your help
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
sylvester
YaBB God
*****
Posts: 525


Re:Mark read button takes you back to the board index
« Reply #5 on: July 29, 2002, 11:10:01 PM »
Reply with quote

Quote from: Stud Muffin on July 29, 2002, 09:58:13 PMWoot, thanks i would give you a karma point if they had it enabled  :-*

I know very little about PHP and just checked out the searchnew mod and saw this
   include_once "$sourcedir/BoardIndex.php"; BoardIndex();
   obExit();

so I knew it was possible,  Thanks for your help
thnx ;D

no thnx ;D
Logged

I'm back
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Mark read button takes you back to the board index « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.260 seconds with 21 queries.