Page Index Toggle Pages: [1] 2 3 4 Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] Speed Boost Mod (Read 17155 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
[DONE] Speed Boost Mod
Apr 13th, 2002 at 6:57pm
Print Post  
Description:
This mod will speed up your board and lower CPU usage seriously. However it will also disable the Clicklog feature. It is up to you what is more important...

Version:
1.0

Download:
http://boardmod.yabbforum.com/yabb/attachments/speed_boost.mod
  

The Administrator.
Back to top
WWW  
IP Logged
 
Yngwiedis
Full Member
***
Offline


Yngwie Rules !!!!!!

Posts: 202
Location: Athens
Joined: Feb 13th, 2002
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #1 - Apr 13th, 2002 at 7:29pm
Print Post  
The mod is wrong.
No lines define on search
  

I Learn Fast Smiley
Back to top
WWW  
IP Logged
 
DanX vs SoNiC
God Member
*****
Offline


TOTTENHAM HOTSPURS FOREVER!!!

Posts: 1675
Location: Scarborough
Joined: Sep 4th, 2001
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #2 - Apr 13th, 2002 at 7:32pm
Print Post  
Yngwiedis wrote on Apr 13th, 2002 at 7:29pm:
The mod is wrong.
No lines define on search


Explain please ???
  

Email "The User Formally Known As Sonic : mail@danscotson.co.uk
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #3 - Apr 13th, 2002 at 7:39pm
Print Post  
my fault, should be fixed within the next minutes...

ok plz redownload
  

The Administrator.
Back to top
WWW  
IP Logged
 
Yngwiedis
Full Member
***
Offline


Yngwie Rules !!!!!!

Posts: 202
Location: Athens
Joined: Feb 13th, 2002
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #4 - Apr 13th, 2002 at 7:53pm
Print Post  
I see very big difference Smiley
This mod is great.
Good work Michael Smiley
  

I Learn Fast Smiley
Back to top
WWW  
IP Logged
 
Black_Eagle
Junior Member
**
Offline



Posts: 51
Joined: Apr 13th, 2002
Re: [DONE] Speed Boost Mod
Reply #5 - Apr 13th, 2002 at 7:55pm
Print Post  
love the mod i can really notice the speed increase the only problem i had installing it was the first step it couldnt find
Code
Select All
&WriteLog;	  # Write to the log
 

the problem was there is 2 few spaces inbetween the ; and the #

but other than tht great mod i can really notice a difference
  

Black_Eagle
Back to top
 
IP Logged
 
Yngwiedis
Full Member
***
Offline


Yngwie Rules !!!!!!

Posts: 202
Location: Athens
Joined: Feb 13th, 2002
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #6 - Apr 13th, 2002 at 8:01pm
Print Post  
Just one question Michael.
What features exactly in clicklog is turning off ?
I see that my board is still keeping informations about how many times register users made a click
  

I Learn Fast Smiley
Back to top
WWW  
IP Logged
 
joke
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Apr 1st, 2002
Re: [DONE] Speed Boost Mod
Reply #7 - Apr 13th, 2002 at 8:25pm
Print Post  
Humm i have whoson, is there a way around that?

Code
Select All
 sub WriteLog {
	my($curentry, $name);
	my $field = $username;
	if($field eq "Guest") { $field = "$user_ip"; }

	## WHOSON MOD START ##
	fopen(LOG, "$vardir/log.txt");
	my @online = <LOG>;
	fclose(LOG);
	fopen(LOG, ">$vardir/log.txt");
	print LOG rname'}\|$INFO{'num'}|$user_ip\n";
	foreach $curentry (@online) {
		$curentry =~ s/\n//g;
		  ($name, $value, $name1, $name2, $name3, $name4, $name5, $name6, $ipinfo) = split(/\|/, $curentry);
		$date1 = "$value";
		$date2 = "$logdate";
		&calctime;
		if($name ne $field && $result <= $OnlineLogTime && $result >= 0) { print LOG "$curentry\n"; }
		if(-e "$memberdir/$name.dat" && $result > $OnlineLogTime) {&WriteLastOnline($name, $date, "x", "x");}
	}
	fclose(LOG);
	## WHOSON MOD END ##

 



And so on, do i have to skip that to!! I did a install, but then i coulden see who whas online!! Thanx..
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #8 - Apr 13th, 2002 at 8:55pm
Print Post  
Black_Eagle wrote on Apr 13th, 2002 at 7:55pm:
love the mod i can really notice the speed increase the only problem i had installing it was the first step it couldnt find
Code
Select All
&WriteLog;	  # Write to the log
 

the problem was there is 2 few spaces inbetween the ; and the #

but other than tht great mod i can really notice a difference
Just uploaded another one which should fix this issue Wink

Quote:
Just one question Michael.
What features exactly in clicklog is turning off ?
I see that my board is still keeping informations about how many times register users made a click
Well you can still see the clicklog but it won't be updated anymore.

@joke can you post your complete Writelog here?
  

The Administrator.
Back to top
WWW  
IP Logged
 
Homey
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 291
Joined: Jan 11th, 2002
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #9 - Apr 13th, 2002 at 9:00pm
Print Post  
hmmm i am using many many many mods in my Board - are there any Mods that will not work after this patch ?

*edit*

complte sub with who is online mod

Quote:
sub WriteLog {
     fopen(FILE, "$memberdir/$username.hm");
     @hideme = <FILE>;
     fclose(FILE);
     my($curentry, $name);
     my $field = $username;
     if($field eq "Guest") { $field = "$user_ip"; }

     ## WHOSON MOD START ##
     fopen(LOG, "$vardir/log.txt");
     my @online = <LOG>;
     fclose(LOG);
     fopen(LOG, ">$vardir/log.txt");
     if ($hideme[0] == 1){
     print LOG rname'}\|$INFO{'num'}|$user_ip|1\n";
}
else{
     print LOG rname'}\|$INFO{'num'}|$user_ip\n";
     }
     foreach $curentry (@online) {
           $curentry =~ s/\n//g;
             ($name, $value, $name1, $name2, $name3, $name4, $name5, $name6, $ipinfo) = split(/\|/, $curentry);
           $date1 = "$value";
           $date2 = "$logdate";
           &calctime;
           if($name ne $field && $result <= $OnlineLogTime && $result >= 0) { print LOG "$curentry\n"; }
           if(-e "$memberdir/$name.dat" && $result > $OnlineLogTime) {&WriteLastOnline($name, $date, "x", "x");}
     }
     fclose(LOG);
     ## WHOSON MOD END ##

     fopen(LOG, "+<$vardir/clicklog.txt",1);
     my @entries = <LOG>;
     seek LOG, 0, 0;
     truncate LOG, 0;
     print LOG ";
     foreach $curentry (@entries) {
           $curentry =~ s/\n//g;
           chomp $curentry;
           ($name, $date1, $dummy) = split(/\|/, $curentry);
           $date2 = $date;
           chomp $date1;
           chomp $date2;
           &calctime;
           if($result <= $ClickLogTime && $result >= 0) { print LOG "$curentry\n"; }
     }
     fclose(LOG);
}
  

Greetz to all coders and Mod Writers !
Back to top
WWW  
IP Logged
 
Homey
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 291
Joined: Jan 11th, 2002
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #10 - Apr 13th, 2002 at 9:05pm
Print Post  
ah I forgot - can you do an admin option to disable/enable this ? would be nice   Kiss
  

Greetz to all coders and Mod Writers !
Back to top
WWW  
IP Logged
 
joke
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Apr 1st, 2002
Re: [DONE] Speed Boost Mod
Reply #11 - Apr 13th, 2002 at 9:28pm
Print Post  
Here is my log!

Code
Select All
sub WriteLog {
	my($curentry, $name);
	my $field = $username;
	if($field eq "Guest") { $field = "$user_ip"; }

	## WHOSON MOD START ##
	fopen(LOG, "$vardir/log.txt");
	my @online = <LOG>;
	fclose(LOG);
	fopen(LOG, ">$vardir/log.txt");
	print LOG rname'}\|$INFO{'num'}|$user_ip\n";
	foreach $curentry (@online) {
		$curentry =~ s/\n//g;
		  ($name, $value, $name1, $name2, $name3, $name4, $name5, $name6, $ipinfo) = split(/\|/, $curentry);
		$date1 = "$value";
		$date2 = "$logdate";
		&calctime;
		if($name ne $field && $result <= $OnlineLogTime && $result >= 0) { print LOG "$curentry\n"; }
		if(-e "$memberdir/$name.dat" && $result > $OnlineLogTime) {&WriteLastOnline($name, $date, "x", "x");}
	}
	fclose(LOG);
	## WHOSON MOD END ##

	fopen(LOG, "+<$vardir/clicklog.txt",1);
	my @entries = <LOG>;
	seek LOG, 0, 0;
	truncate LOG, 0;
	print LOG ";
	foreach $curentry (@entries) {
		$curentry =~ s/\n//g;
		chomp $curentry;
		($name, $date1, $dummy) = split(/\|/, $curentry);
		$date2 = $date;
		&calctime;
		if($result <= $ClickLogTime && $results >= 0) { print LOG "$curentry\n"; }
	}
	fclose(LOG);
} 



Smiley
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #12 - Apr 13th, 2002 at 9:41pm
Print Post  
except for mods who change something in Writelog sub shouldn't have any problems since this mod is really small.

Quote:
ah I forgot - can you do an admin option to disable/enable this ? would be nice

well just uninstall the mod if you don't like it anymore Wink
no serious I don't have the time right now, sorry

just remove this part from your WriteLog:

Code
Select All
  fopen(LOG, "+<$vardir/clicklog.txt",1);
 my @entries = <LOG>;
 seek LOG, 0, 0;
 truncate LOG, 0;
 print LOG ";
 foreach $curentry (@entries) {
  $curentry =~ s/\n//g;
  chomp $curentry;
  ($name, $date1, $dummy) = split(/\|/, $curentry);
  $date2 = $date;
  chomp $date1;
  chomp $date2;
  &calctime;
  if($result <= $ClickLogTime && $result >= 0) { print LOG "$curentry\n"; }
 }
 fclose(LOG); 

  

The Administrator.
Back to top
WWW  
IP Logged
 
Homey
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 291
Joined: Jan 11th, 2002
Gender: Male
Re: [DONE] Speed Boost Mod
Reply #13 - Apr 13th, 2002 at 10:08pm
Print Post  
ok will try it now and test if problems with any mods.

No Problem with Admin Center option. only idea but not neccassary.

my board needs beetween 49 and 95 !!! percent cpu usage. it bring the cpu to melt  Grin
  

Greetz to all coders and Mod Writers !
Back to top
WWW  
IP Logged
 
sorenbjerg
Full Member
***
Offline


I love YaBB 1 Gold!

Posts: 151
Joined: Jan 5th, 2002
Re: [DONE] Speed Boost Mod
Reply #14 - Apr 13th, 2002 at 10:14pm
Print Post  
Wow... I'm really glad I installed this mod... I can definitely see a difference in page loading times... it's so darn fast now (compared to before) Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 4
Send TopicPrint