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'm novice in drupal and php at all. So my question may seem stupid, but I even have no experience to understand related answers in this brunch on forum.
I'm trying to put all content of the main part of my site, based on phptemplate in iframe. So my page.tpl.php looks like this:
and made a copy of node.tpl.php renamed as buy_magic_mail.tpl.php. I want to show a message if a certain conditon is true, and the regular form data if it isn't, something like this:
global $user;
$sql = "SELECT COUNT(*) FROM {node} where uid = $user->uid AND type = 'buy_magic_mail' AND status = %d AND sticky = %d";
$count = db_result(db_query($sql,1,1));
if($count > 0) {
I'm developing a website and customizing the Zen theme with my own CSS. I'm trying to add custom logos, backgrounds and banners to the different elements but I'm stuck.
When I upload a file manually (i.e just putting it into the /files folder or the theme's /images folder), and edit the css to display the image it doesn't find it. However, another image I've uploaded manually, and used html in a custom page to point to the img src, showed up.