41
skalpa
Re: XOOPS Config in File and Not MySQL DB
  • 2005/8/20 11:27

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
In my quest to save DB Queries, I was thinking maybe the XOOPS Config stuff like site name, description, etc should be stored in a php file rather than in the DB. This is needed for every page and calling it from a DB is kind of a waste.

Less DB queries = less page time gen.


Well you're right about the config: this precise point can be enhanced. It's not updated often, and the way it is retrieved made it one of the most messy part of the core: to reduce the number of queries settings have been organized by frequency (several unrelated setttings are in the same group just because they are needed in all pages, so they can be retrieved using one single query).

Now, the less DB queries assumption is not entirely accurate: RDBMS have been designed with scalability in mind. So, less DB queries may mean faster page generation on your own computer, but this may not work like this on a loaded server which has to process many simultaneous requests.

But anyway, you're looking in the good direction. However, this problem has already been thought of, and is one that inspired one of the most exciting new features I'll contribute to the new cores: in the future, settings will be programatically applied to core classes and scripts, generating pre-configured code that will be used during page generation (it's a bit like offlining the entire config process, so it is not needed anymore in the runtime layer used by regular pages).

So don't waste your time here... whatever, if you want to remove useless queries there are other parts you can check (like the inefficient Smarty implementation generating one query for each included template...) .

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



42
skalpa
Re: rplace mail() to email()
  • 2005/8/19 0:20

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


lol
A free user...
Here are the things to change I could find.
Haven't tested (just checked the source files), so no garantee given.
Maybe you can find more info about this on the french support site forums, I'm sure you're not the first XOOPS user using this hosting service.
http://www.frxoops.org/

In /class/mail/phpmailer/phpmailer.php
Look for the function mail_send, and replace both calls:

if ($this->Sender != "" && PHP_VERSION >= "4.0.5")
        {
            
// The fifth parameter to mail is only available in PHP >= 4.0.5
            
$params sprintf("-oi -f %s"$this->Sender);
            
$rt = @[b]mail[/b]($to$this->encode_header($this->Subject), $body$header$params);
        }
        else
        {
            
$rt = @[b]mail[/b]($to$this->encode_header($this->Subject), $body$header);
        }


Then configure XOOPS to use mail(). Also, don't forget you'll have to re-apply this change if you ever install a new version that updates this file .

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



43
skalpa
Re: Problems with 2.2.2 default theme in IE
  • 2005/8/15 23:53

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Took care of it
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



44
skalpa
Re: Xoops 2.2.2 Released??
  • 2005/8/15 22:30

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
And kudos for finally setting file rights to 644 instead 755 I've been seeing. Actually it seems that the *tar.gz php files are still 755... Assuming the packages are built from the same source why are some packages coming with all files set to 755?


Mmmhh... I've made a new script to automate the release making process, and it does set all to 755 (except the files and folders that need to be writeable)
Actually, the x bit is required on php files (needed for some confs), but I forgot there were other types of files there... My bad, will be corrected for the next one.

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



45
skalpa
Re: Xoops 2.2.2 Released??
  • 2005/8/15 22:03

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
What I would LIKE (not DEMAND) to see is, that the official support sites would be informed beforehand so that the local supporters have time to react quickly if there are important updates


It almost happened this time . It will be fixed for the next releases, as we're setting up a special mailing-list to announce things to local support sites.

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



46
skalpa
Re: Xoops 2.2.2 Released??
  • 2005/8/15 18:23

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
... and wonder why a 2.0.13.1 Release!!


Because it contains security fixes (not big issues, but anyway all used branches are updated when updates are security related).

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



47
skalpa
Re: Problems with 2.2.2 default theme in IE
  • 2005/8/15 18:12

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
Can you post the download link for XOOPS 2.2.2


That's a typo... It's not available yet (unless he managed to get access to my puter, ).
In a few hours normally.

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



48
skalpa
Re: Xoops 2.2.2 Released??
  • 2005/8/15 18:08

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


It was planned for yesterday night but I messed a few things up, and decided to delay it and have some sleep before .

The packages should be finished within hours, so it's coming (actually, both 2.2.2 and 2.0.13.1 are coming).

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



49
skalpa
Re: changed server now wont work...
  • 2005/8/14 23:12

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Well, I'm not sure... but: you should not transfer the content of the cache/ and templates_c/ folders to the new server...
So if you did, try deleting these folders content (except the index.html file that should be in each of them), and see if that fixes something.

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)



50
skalpa
Re: 2.2.1, production websites and modules
  • 2005/8/14 19:36

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


Quote:
Please Herko, Skalpa, Mith help us, and the other XOOPS developers, i cant see the light in the way.


We're going to focus on these compatibility problems during the next weeks, with the welcome arrival or return of several people.
You don't have to upgrapde to 2.2.x right now, and most problems are expected to be solved (so you will be able to upgrade in a near future). So light is coming, and as it is written on some wise book: don't panic !

As for you help: you are helping in fact, listing incompatible modules like this, and further works in this direction will be welcome. Please give me some news about this... In the future we will also ensure local communities bring this kind of help before final versions are released, as it would be more helpful for everybody.

Quote:
I'm a bit disapointed.

We'll start to work with the new team in a matter of days, and I think I have added you to the dev ML, so we'll be able to look at this together soon

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)




TopTop
« 1 2 3 4 (5) 6 7 8 ... 19 »



Login

Who's Online

232 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits