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 working in D7 and I need to check whether a user has been to my site before and if not show them a special block. I have done a few searching on drupal.org and on google but I couldn't find anything like this.
I am thinking of just creating a block and using the "Pages on which this PHP code returns TRUE... " selection.
Creating a block is the easy part but, how do I check to see if they have been to my site before?
Is there a cookie I can look for?
I little nudge in the right direction would be greatly appreciated.
I'm pretty new to Drupal but I've managed to get a site (v7.10)up and running with some custom content types and working well for the most part. I'm stuck, however, with comments not appearing in the search results.
Most of the searching I've done indicates that comments should be searched and have their results appear. I have confirmed that cron is running and I've had the search successfully add new node entries to my search results however the comments remain missing from search results. Can anyone provide me with some direction on what I might check to get this working?
In doing some reading both in Google Webmaster Tools and on blogs across the web, I'm seeing suggestions that adding the Google Plus One functionality to a site (otherwise known as the Google +1 button), can potentially have a very positive impact on Search Engine Optimization. Visitors to your site can use the button to tag pages for themselves privately or to recommend the pages publicly. There is a very simple way to integrate the Google +1 button into a Drupal site. If you are using the PHP filter module for other purposes, then you can create a block and add the Google +1 code within the block, selecting PHP code as the text format. If you are not using the PHP filter module already, then there is no need to turn it on. Instead, you can make the code work through the following steps, as shared by Amye Scavarda from Drupal Gardens:
1) Create a new text format that you'll only use for this, make sure that it's only available for admin, and make sure that every option is unchecked. This means that the HTML won't be purified, no filters will be run on it, etc. This should be used with caution, and only for these particular instances. (Text Formats are under Configuration -> Content Authoring.)
I am trying to make my own website with Drupal installed on Ubuntu, but I can't seem to find a way to add an article with a picture to a basic page. Am I doing something wrong, or am I really missing something?
I've lately heard of the concept of "super content types." Here's how a super content type is explained:
Authors create content using any number of content types (fact sheets, press releases, articles, etc., etc.). Then an editor comes along and tags the relevant nodes (of any content type) with a "special" taxonomy term. Any content tagged with this term is bundled together to form a small microsite.