Found great article about Drupal 6.x performance
must read & keep
http://www.morningtime.com/Drupal-6x-Performance-Guide/513
Found great article about Drupal 6.x performance
must read & keep
http://www.morningtime.com/Drupal-6x-Performance-Guide/513
If you need to theme the node.tpl.php for a specific node, create node-[nid].tpl.php file from node.tpl.php
add to your template.php file
function THEMENAME_preprocess_node(&$variables) {
$node = $variables['node'];
if (!empty($node)) {
$variables['template_files'][] = "node-" . $node->nid;
}
}
If you need to create image map , we have found this online tool.
This tool let you create and position the spots inside the image easily
Have fun
We had to use the filepath instead of fid more then once,
Here is a small function we wrote, returning the filepath from the fid
/** * Get filepath by fid */
function filepath($fid) {
if (is_numeric($fid)) {
$filepath = db_fetch_object(db_query("SELECT filepath FROM files WHERE fid = '%s'", $fid));
if (is_string($filepath->filepath))
return $filepath->filepath;
else return FALSE;
} else return FALSE;
}
<p>
Recently i got this error in my log
Cron run exceeded the time limit and was aborted.
so why does cron, shouted this ?
I have found nice snipet to track the source of the error
<?php
// redirect only if this is not cron script
if ($_SERVER['SCRIPT_NAME'] != '/cron.php') {
drupal_goto('<front>');
}
?>
apparently it was because i have added a redirect page to keep an old path and avoid 404 error
so i have added a page with php code with a simple drupal_goto()
having this problem ?
one of our hosted sites, has start making problems an refused to load the homepage, giving a "not found" error to the browser
looking in the logs, we found this line:
PHP Fatal error: Cannot redeclare product_has_images() ...
after we looked into it, and tried all sort of hooks to catch the cause
of the error, we got a prime-suspect:
the PHP Cache APC
so we restarted apache... and it fixed everything
A young drupalist, that has recently learned Drupal, asked me what do I recommend for him as the next course he'll take:
PHP, Databases, or CSS ?
So I went and asked my friends and drupal colegues on LinkedIn, here is a link to the question What is the best next-step course for a beginner-drupalist: PHP, Databases, or CSS ?
here are the answers by the drupal experts:
Working on Linux, we have to use cron to execute jobs such as backups, drupal's search index build and many others.
But how come nothing happens when you run:
crontab -e
Many reasons could cause this, but it is most likely that your session's default editor is not installed or somehow ... vanished
Assuming you have vim working on your Linux,
here is how you can change your session's default editor to vim:
export EDITOR="vim"
Now, if you type again
If you have uploaded a new web site to the internet
Here are a list of popular search engines to might want to add to
google
- http://www.google.com/addurl/
- https://www.google.com/webmasters/tools/home
yahoo
- https://siteexplorer.search.yahoo.com/mysites
bing
- http://www.bing.com/webmaster/SubmitSitePage.aspx
- http://www.bing.com/webmaster
One of our clients, asked for an "Accessible website", and he wanted to "know how much will it cost"?
So what does Accessibility means?
For example, text provided for Images and meaningfull names for Links, helps blind users using text-to-speech or text-to-Braille.
Big images and underlined links make it is easier for poor-sight and color blind users to notice and understand.
Many people navigate by keyboard only, because they cannot use a mouse, so anything should be navigable without a mouse, and no keyboard traps!
Flashing effects may cause seizures, and more...
I have worked with DevArt for over a year and I highly recommend them for any drupal needs.
What has impressed me most about Avior, is his loyalty and integrity. He has always been there for my company and because I was a start up company even helped me out on a payment plan. He's also a very hard worker and worked many late nights before my launch
Andrew Gitt
Principal & CMO
Story Time For Me, Inc.