Welcome, Guest. Please Login or Register.
April 26, 2025, 05:11:21 PM
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  |  Completed mods  |  [Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2! « previous next »
Pages: 1 2 [3] 4 5 ... 10 Reply Ignore Print
Author Topic: [Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2!  (Read 25681 times)
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #30 on: August 22, 2002, 05:37:41 PM »
Reply with quote

I've zipped my boardindex and post.php - don't get dizzy with the new global $view - I split up the categories table in order to offer many views of my forum to now over 27 partner pages ;)

You can get the ZIP from http://www.travar.de/Post.zip - hey, I own you a beer if you could solve this *g*

Nico
« Last Edit: August 22, 2002, 05:38:22 PM by Eloya » Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #31 on: August 22, 2002, 08:49:16 PM »
Reply with quote

Quote from: Compuart on August 22, 2002, 05:10:13 PMhmmm, 1.3.1, 1.4.0... :o
are there more people using these versions that want to use this mod?

Heavely modded 1.3.1  ;D
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #32 on: August 22, 2002, 09:09:12 PM »
Reply with quote

hmmm, your boardindex.php seems alright now. Can you check your messageindex (there's where the logs are being changed). It should contains something like this:
   $request = mysql_query("SELECT logTime FROM {$db_prefix}log_boards WHERE (memberName='$username' AND ID_BOARD=$currentboard) LIMIT 1");
   if (mysql_num_rows($request)==0)
      $request = mysql_query("INSERT INTO {$db_prefix}log_boards (logTime,memberName,ID_BOARD) VALUES (".time().",'$username',$currentboard)");
   else
      $request = mysql_query("UPDATE {$db_prefix}log_boards SET logTime=".time()." WHERE (memberName='$username' AND ID_BOARD=$currentboard)");

Quote from: Eloya on August 22, 2002, 05:37:41 PMI own you a beer if you could solve this *g*
I like it * * * C O L D * * * ;D
« Last Edit: August 22, 2002, 09:10:33 PM by Compuart » Logged

iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #33 on: August 23, 2002, 03:14:39 AM »
Reply with quote

I also have a heavily modded 1.31, that is why I haven't upgraded to 1.41.  I (and my members) would love to have this mod!
Logged

Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #34 on: August 23, 2002, 08:12:11 AM »
Reply with quote

Okay, cold beer  ;D Two if it works *g*

I have this code in my messageindex:

Quote// mark current board as seen
   $request = mysql_query("SELECT logTime FROM {$db_prefix}log_boards WHERE (memberName='$username' AND ID_BOARD=$currentboard) LIMIT 1");
   if (mysql_num_rows($request)==0)
      $request = mysql_query("INSERT INTO {$db_prefix}log_boards (logTime,memberName,ID_BOARD) VALUES (".time().",'$username',$currentboard)");
   else
      $request = mysql_query("UPDATE {$db_prefix}log_boards SET logTime=".time()." WHERE (memberName='$username' AND ID_BOARD=$currentboard)");

Seems to be alright....

I've zipped the file also and you can get it at http://www.travar.de/Message.zip
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
Eloya
Full Member
***
Posts: 127


Magistrat

nschunter@eloya.net WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #35 on: August 23, 2002, 09:42:46 AM »
Reply with quote

And one more.... Polls are not shown in the BoardIndex....

Nico
Logged

"Der Unterschied zwischen Magie und Alltag ist die Betrachtungsweise!"
http://www.travar.de
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #36 on: August 23, 2002, 05:32:34 PM »
Reply with quote

Quote from: iamdamnsam on August 23, 2002, 03:14:39 AMI also have a heavily modded 1.31, that is why I haven't upgraded to 1.41.  I (and my members) would love to have this mod!

same here. Still on 1.31 (mainly due to the mods my members really like not being available as yet for 1.41)... also.. am a bit chicken to upgrade  ;D

Would love to see this for 1.31 though.. am sure there are loads of people out there who would love you for it  ;D
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #37 on: August 24, 2002, 02:03:22 AM »
Reply with quote

Compuart I think the problem with it not updating could be in the part where it updates the log saying you've read the thread which woud be in Post.php, which has been changed to call updateLastMessage().
Also I installed this on a 1.4.1 board and have the same problem.
Logged
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #38 on: August 24, 2002, 09:08:27 PM »
Reply with quote

So far I haven't been able to find the bug anywhere, but it looks like the bug only appears in older versions of boardindex. Therefor I'll have a look at it again tomorrow and maybe (if I have time) write a 1.4.0 and 1.3.1 version
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #39 on: August 24, 2002, 11:52:10 PM »
Reply with quote

thx Compuart, great mod 8)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #40 on: August 25, 2002, 02:27:39 PM »
Reply with quote

yw :)

OK, I found the posted-a-message-board-is-still-new-bug. To fix:
replace (boardindex):
      $log1 = ($row_board['boardTime'] > $latestPostTime) ? 1 : 0;
      $log2 = ($row_board['markReadTime'] > $latestPostTime) ? 1 : 0;

by:
      $log1 = ($row_board['boardTime'] >= $latestPostTime) ? 1 : 0;
      $log2 = ($row_board['markReadTime'] >= $latestPostTime) ? 1 : 0;

A new version is available fixing this issue and including added support for 1.4.0(!)

I'll start writing a 1.3.1 version now
« Last Edit: August 25, 2002, 02:28:46 PM by Compuart » Logged

Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #41 on: August 25, 2002, 02:50:27 PM »
Reply with quote

woops, forgot to fix the poll issue  :o

replace (poll.php):
         }
         updateLastMessage($board);
      }

by:
         }
      }
      updateLastMessage($board);

...or download version 1.11
« Last Edit: August 25, 2002, 02:51:18 PM by Compuart » Logged

Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #42 on: August 25, 2002, 03:12:31 PM »
Reply with quote

1.4.0 BETA has been revised and changed (just make sure you're using 1.4.0 BETA revision 1)
Logged

Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[Done 1.4.1] Speedup your Boardindex by 50%
« Reply #43 on: August 25, 2002, 04:11:04 PM »
Reply with quote

OK, now 1.3.x is also out as a BETA  8) :D
Logged

PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Done 1.4.1] Speedup your Boardindex by 50% [BETA 1.4.0 & 1.3.x]
« Reply #44 on: August 25, 2002, 06:34:39 PM »
Reply with quote

Does anyone know if this mod works ok with the Allowed Users mod??
Logged
Pages: 1 2 [3] 4 5 ... 10 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.x & 1.3.x] Speedup your Boardindex NEW Version 2! « 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.015 seconds with 16 queries.