Drupal is up and running but how do I ...?

How to show a block only on single node pages over 30 days old?

I've been looking for an efficient way to show an Adsense block only on single node pages that are over 30 days old. I don't want the Adsense ads to show up on recent content, only on old stuff. I tried some PHP block visibility code, without much luck, so resorted to manually setting the block containing the Adsense content to not show on certain paths, and provided a series of path fragments.

Site crashed?

This is what I saw this morning accessing my website: (skatecoffee.net)

Fatal error: Can't open file: 'sessions.MYI' (errno: 145) query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = 'b4c0c98f2b2f7d32275244d03aadbcd4' AND u.status 3 LIMIT 0, 1 in /home/skatecof/public_html/includes/database.mysql.inc on line 66

I didn't add any module since long and I can't understand what happened.

Do you think I could solve this issue upgrading to 4.7 ?
Would be possible to upgrade from this condition?

Thanks.

Patching a module

Can anyone who is able PLEASSSSSSSSSSEEEEEEEEEEE explain to me in clear terms how to patch a module in drupal with teh .patch files that are provided in the module

I would greattttllyyy appreciate that.

Thanks

listing all the children of a term from a vocabulary

hi everyone

I am using this snippet:

How to prevent modules from attaching their own stylesheets without hacking module code?

We're having a problem with the number of HTTP request necessary to load our site and 10 of them come from modules that load their own stylesheets. Now I'd like to avoid this, preferably with code in template.php that simply overrides their function calls to add stylesheet references to the page header. Instead I want to use the suturing method described below to serve almost all the CSS through one request (style.css), and also gzip it to further save transfer time.

Problem customizing themes.

Greetings.

I have a problem understanding how themes work, and what exactly do I have to alter in the code to give the site the appearance I want.

I created a new folder in the "themes" directory, called "mytheme". I copied in it the page.tpl.php file from the pushbuttons theme, and started from there.

I can see how the main page changes when I change stuff from that file, but there is something I can't comprehend; which is the relationship between "index.php" and the themes folder? By this I mean, when does the index.php file checks the theme that's enabled?

Pages

Subscribe with RSS Subscribe to RSS - Post installation