Drupal
Display Ads Between Posts in Drupal
You have probably noticed that many websites tend to display advertising between posts, surrounded by relevant content.
Achieving this in Drupal is a trivial task. All you need to do is place the following code to the top of the node.tpl.php for whatever theme you are running.
If you are using custom_content and customizing it differently using a node-custom_content.tpl.php, don't forget to add the code to the node-custom_content.tpl.php as well.
<?php if ( !$page && ($id == 2 || $id == 4)) : ?>adsense code goes here<?php endif; ?>Display Content for a Specific Role - Drupal
Sometimes, is can be a requirement to only allowed a specific group of users to view some content on a page. I'm not talking about showing or hiding the entire page to a specific role.
What I am talking about is that an authenticated user sees some different or additional content than an anonymous user will see on the same page.
I recently had a requirement to do just this on a community website that I am building. I needed to show a discount Coupon Code to registered users but not to anonymous users.
Drupal Text-Link-Ads & RSS Feeds
Regardless of whether the big "G" approves or not text-link-ads are still a very popular form of revenue for a lot of webmasters. From personal experience I have managed websites with text-link-ads that outperform Adsense with over ten times the revenue per month (this is even after the page rank penalties imposed in the last round of updates).
If you have a Drupal powered website and are still using text-link-ads you my want to consider modifying the code in the module. You may have noticed that at the end of each article in the feed the word Advertisement: is inserted. But, the Drupal module does not currently support text-link advertising in the RSS feed.
Drupal Already Installed
While recently upgrading a site to from Drupal 5.1 to 5.2 I kept on getting a "Site Already Installed" message and a redirection to install.php.
As this was a fairly active site I had little time to troubleshoot. So, I decided to do a database and file restore. After the restore I still had the same problems. How could this be? It should have been back to the same state it was before I started.
A Drupal Photoblog Recipe
Caution this is a long detailed post!
I had a recent requirement to build a photoblog website for my daughter who has just started to learn about photography.
After evaluating a number of different product including: gallery 2, cheesecake, pixelpost and photostand to name a few I decided that none of these would match with my requirements. With a few years experience and having built several Drupal powered sites I decided to investigate the possibilities.
When you think of a photoblog Drupal is probably not the first application that comes to mind. But, it is relatively simple to create a stylish, scalable and very functional photoblog with Drupal.
About Us
NZ Web Hosting Internet Technolgies Blog.
Website design, website development, promotion and search engine optimisation.
