Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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.
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?
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
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.
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?