Drupal 6 SEO: Optimise Read More link in Node Teasers
Following on from my previous post about "nofollow" on comments, I came across Google's < 100 Links per page Rule. After a little more Google searching, It appears (as with any SEO topic) the < 100 link rule is also much debated and argued about.
Drupal 6 SEO: Improve SEO and Page Rank by preventing Link Juice Drain
As anyone paying a close attention to their Page Rank and SEO will already know this, too many outbound links from your webpage can drain the "Link Juice" of your webpage andcan hamper the Page Rank and SEO value of your website. This is especially true when you are displaying hundreds of comments on the same page and each comment links to the user homepage (which may be offtopic).
Drupal 6: Setting custom breadcrumb and primary navigation to active for any page
Ever wanted to set adhock breadcrumbs for pages that were not really part of any logical menu structure? Also want to activate the primary menu for this ad hoc page?
Drupal 6 makes this easy....
In the rough example below, you can see how I go about setting a custom breadcrumb for taxonomy terms pages without hacking around the drupal core and without installing bunch of additional modules.
Tracking registration conversions with Drupal and Google Analytics Goals
For one of the website (at work), we needed to track registration conversations using Google Analytics Goals. As with all websites I work on, it is Drupal powered..
Scenario
- User vists a page of interest, download or action requires the user to register.
- User visits the registration page (log the page user came from)
- After registration display a welcome page (Google Analytics Goal page)
- Redirect the user back to the page in Step 1
Aptana Studio for Drupal development (Eclipse plugin)
For around two and half years I have been using Zend Studio 5.5 for Drupal development at work and had come to love a lot of the features it offers BUT all this functionality came at a heafty price. So, my quest for a new IDE had begun and it has been a difficult one at that, mainly due to my somewhat unrealistic wishlist. Mostly I work directly on the remote server and wanted a solution that allowed me to SFTP over SSH and edit away my live files. Yea, many people will advise against that, but for my personal websites this isnt such a big issue as I am the BOSS..
Find broken symlinks - easy way
Need to find any broken Symlinks on your server? Here is a handy command:
for i in `find /var/www/html -type l`; do [ -e $i ] || echo $i is broken; done
Drupal MySQL to CSV export - easy way
Today I attempted to export MySQL data from Drupal into a CSV file, easy enough, I thought to myself...
After battling for hours trying to do the pesky character escapes and string manipulation, I came across some very handy code in the Views Bonus Pack CSV Export module.
If you are using the views module, this addon is very handy indeed and will save you many hours of manual labour..
Here is a slightly modified version that can be used in any custom module (for instance when you are not using the excellent Views module)
Monitoring MySQL queries using PROCESSLIST
Trying to debug the sluggishness of this website, I came across this is really handy tip from Khalid @ 2bits.com:
















