Search found 27 matches

by pb
Mon Jun 09, 2008 4:38 pm
Forum: Tips and Tricks
Topic: Speed version of function debug_buffer
Replies: 8
Views: 5053

Re: Speed version of function debug_buffer

From a dev a expected something more as   it isn't supposed to be it is no problem to write this - the result is the same: function debug_buffer($var, $title="") { global $gCms; if($gCms  && $gCms->config['debug']== true) $gCms->errors[] = debug_display($var, $title, false, true); ...
by pb
Mon Jun 09, 2008 4:13 pm
Forum: Tips and Tricks
Topic: Reindex Search.module CMSMS 1.3
Replies: 6
Views: 4145

Re: Reindex Search.module CMSMS 1.3

By the friendly words of Calguy1000 i decided  to do nothing more in this way.

I use CMSMS only for one customer who wanted this but it was to slow - so i must do this work.

So the site is ready and my work is done.
by pb
Mon Jun 09, 2008 4:06 pm
Forum: Tips and Tricks
Topic: Speeding up CMSMS
Replies: 38
Views: 44498

Re: Speeding up CMSMS

these posts will be lost in about a week or less, and we won't be able to find them I can find here very old postings and so this is no argument (this starting at 26 Jul 2007). If this is the case, we probably don't need your kind of help. I see that only help is wanted in a way that you like, but ...
by pb
Mon Jun 09, 2008 3:17 pm
Forum: Tips and Tricks
Topic: Speeding up CMSMS
Replies: 38
Views: 44498

Re: Speeding up CMSMS

The code is for the users and not a special for the devs. But if this is too complicated for the users i stop these postings now and stop it complete (that is what i do now). I have this all made for myself to speeding up cmsms . My speed with v 1.3 is now 40% better as the original ( there are some...
by pb
Mon Jun 09, 2008 1:21 pm
Forum: [locked] Installation, Setup and Upgrade
Topic: Fatal error: Call to a member function GetRow() on a non-object
Replies: 7
Views: 4364

Re: Fatal error: Call to a member function GetRow() on a non-object

354 is this:

$row = &$db->GetRow($query);

GetRow is a member of adodb, seems adodb is not loaded or no database connection.
by pb
Mon Jun 09, 2008 1:10 pm
Forum: Tips and Tricks
Topic: Speed version of function debug_buffer
Replies: 8
Views: 5053

Re: Speed version of function debug_buffer

Yes, and I've already told that author to fix those.
Ok more than 10 are in the core, greetings to ted.

There is nothing to fix  it works since some years.
by pb
Mon Jun 09, 2008 1:07 pm
Forum: Tips and Tricks
Topic: Spare memory with the modulemanager.
Replies: 2
Views: 2244

Re: Spare memory with the modulemanager.

Wow again.

Show memory_peak_usage  and that is it.
by pb
Mon Jun 09, 2008 1:04 pm
Forum: Tips and Tricks
Topic: Speed version of function debug_buffer
Replies: 8
Views: 5053

Re: Speed version of function debug_buffer

Wow  !  See your Filemanager

function GetActionIcon($action) {
global $config;

and 19 occurrences in several source files.
by pb
Mon Jun 09, 2008 12:46 pm
Forum: Tips and Tricks
Topic: Speeding up CMSMS
Replies: 38
Views: 44498

Re: Speeding up CMSMS

From class.contentoperations.inc.php you can delete the function

function SetDefaultContent

complete

NEVER IN USE  spare memory because a member of a class.
by pb
Mon Jun 09, 2008 11:44 am
Forum: Tips and Tricks
Topic: Spare memory with the modulemanager.
Replies: 2
Views: 2244

Spare memory with the modulemanager.

You can spare memory . Open ModuleManager.module.php and change  at line 1025 this:     #$data = base64_decode( $data );     $nbytes = @fwrite($fh,base64_decode( $data ));     unset($data); With originalversion $data = base64_decode( $data ) php makes a copy of $data (this need memory), in my versio...
by pb
Mon Jun 09, 2008 11:38 am
Forum: Tips and Tricks
Topic: Reindex Search.module CMSMS 1.3
Replies: 6
Views: 4145

Re: Reindex Search.module CMSMS 1.3

and would be integrated in further versions Everyone can use the tricks , developers too and so as soon as possible and at once or they can take it in further versions. But 1.3 seems to be the last version before 2.0. So, your work would not be "lost in space", Tricks from me are made for...
by pb
Mon Jun 09, 2008 11:14 am
Forum: General Discussion
Topic: module manager error?
Replies: 5
Views: 2593

Re: module manager error?

I have a memory limit of 128 M but with the same module

Fatal error: Maximum execution time of 150 seconds exceeded in classes\nusoap.php on line 2655
by pb
Mon Jun 09, 2008 10:26 am
Forum: Tips and Tricks
Topic: Speeding up CMSMS
Replies: 38
Views: 44498

Re: Speeding up CMSMS

Open content.functions.php and delete this part in function serach_plugins: // This hides the dummy function.summarize.php // (function.summarize.php was renamed to modifier.summarize.php in 1.0.3) // This code can be deleted once the dummy is removed from the distribution // TODO: DELETE if ( $file...
by pb
Mon Jun 09, 2008 9:50 am
Forum: Tips and Tricks
Topic: Speeding up CMSMS
Replies: 38
Views: 44498

Re: Speeding up CMSMS

Change in ModuleManager.module.php the function  uasort_cmp_details to this: function uasort_cmp_details( $e1, $e2 ) {   $r=strcasecmp($e1['name'],$e2['name']);   if ($r<>0)     return $r;   else     return version_compare( $e2['version'], $e1['version'] ); /*      if( strtolower($e1['name']) < strt...
by pb
Mon Jun 09, 2008 9:26 am
Forum: Tips and Tricks
Topic: Speeding up CMSMS
Replies: 38
Views: 44498

Change if (strtolower($modulename) == strtolower($key))

In module.functions.php, function.content.php and sopa.php change the line if (strtolower($modulename) == strtolower($key)) to if (strcasecmp($modulename,$key)==0 ) that is faster because no need to make strtolower twice. The same in module.functions.php with   if (strtolower($mactmodulename) == str...

Go to advanced search