Ranking Scoreboard

What I would like to have:
-Users submit their score
-A page lists the scores from highest to lowest

I was thinking that using a users profile entry to record the score would make things easy.
Is there a way to have a page dynamically list that profile field for all the users in order of highest to lowest?

Recommended server configuration and setting for drupal?

My company has just done a migration to Drupal. Everything works fine. However, when multiple users use the search engine, MySQL database crashes causing the site down. It is a bit unstable. I'm seeking anyone here who can give some advices regarding the server setting or configuration. Below are some of the current spec:

Drupal 4.7.7 (30000+ nodes)
PHP 5.1.2
MySQL 5.0.24
IIS 6.0

Drupal is running in a dedicated server which is Intel Xeon 3.0GHz with 4GB of RAM.

Number of online people goes up.

I have a following issue. When I turn my site on the number of people online constantly grows. I can see this from the "users online" block. It grows and grows to like 200 and then my Apache freezes.

Also the sessions table keeps on growing. I empty the session table once a week manually with phpmyadmin.

What is wrong? Are these issues interlinked. I suppose the online people has to do with sessions open in sessions table. or?

Help with Form Validation Errors

Hi,

I have a form validation function which basically looks for two things:

1) if any of the fields is blank

2) if any firstname/lastname contains a space

in the form, there are 7 fields ... first name, last name, email address, password, address, city, country.

Now, even if i have some data in the form, upon submission, it gives me an error saying 3 of the 7 (password, address, city) are blank and the first two contain a space.

Any idea on why is this occuring ??

I am pasting the code .. i doubt there's anything wrong with the code but nevertheless .. if it helps ..

thanks a lot ...

<?php

function yes_alumni_info_sample_validate($form_id, $form_values){
foreach($form_values as $field=>$value) {
if($value != '') continue;
switch($field) {
case 'firstname':
case 'lastname':
case 'email':
case 'password':
case 'homeaddress':
case 'homecity':
case 'homecountry':
form_set_error($field,t('The value for '.$field.' cannot be blank.'));
break;
}
}

if (strlen(preg_replace('/\s+/', '', $form_values['firstname'])) != strlen($form_values['firstname'])){
form_set_error('firstname', t('Please remove spaces from your firstname'));
form_set_error('firstname','',true);
}

if (strlen(preg_replace('/\s+/', '', $form_values['lastname'])) != strlen($form_values['lastname'])){

drupal web- help

drupal-4.7.4
can someone help me.
my web site has this error http://www.shreemaa.org
I can't even login.

please help.

Susan

Assembling/synchronising database recovery

I have problems synchronising my database in phpMyAdmin after crash/infiltraton.
Sysadmin was locked out after infiltration, so I was forced to use system copy, but - to my astonishment - the servercopy restores only 2/3 tables. The rest was handpicked and assembled, but does not run. Indexes do not synchronise: e.g. "multiple entry in accesslog on PRIMARY key 1 in *,php on line 123". This means that primary index key aid (access counter) is downed to 0, every attempt to do whatsoever tries to add next record and end up with failure - as there is already a record with aid=0.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x