Skip to main content

Drupal

Drupal 7 Site Set-up
Drupal 7 Site Set-up
Once the site files have been uploaded either by the 'one click install', or by the manual approach, you're left with the default theme and settings. I chose 'Standard' set-up, so here are the next steps...
HTML Emails With Drupal 7 Webform Module
HTML Emails With Drupal 7 Webform Module
This can often be tricky as you've probably done a variety of things (like tick the HTML box of the SMTP module), and it's still not working... Steve Burge from OSTraining has written a great walkthrough of how to use Mimemail and Mailsystem to achieve the desired results... http://www.ostraining....
Ubercart Is Not Using SMTP Module To Send Emails
Ubercart Is Not Using SMTP Module To Send Emails
This is one of those annoying issues you come across from time to time... You know the type... You know there's an issue, but can't quite place it... In this case, I needed to use the SMTP module as the normal site emails were getting caught by the company spam filters... so appeared not to be...
Why Drupal is King
Why Drupal is King
I often get asked this question.... so here is my answer.... Most have been pulled from other sites, and links to those sites have been included... The last section are my own personal thoughts... Here are some ‘points’ with explanations I’ve pulled from, http://www.volacci.com/blog/ben-finklea/...
Redirect User on Login
Redirect User on Login
Recently I had to redirect users to the home page, and although I can do this with the 'Rules' module, I also wanted to add something to the $_SESSION for some custom code... After a little digging I found this: http://api.drupal.org/api/drupal/modules!user!user.api.php/function/hook_user_login/7...
Override html.tpl.php for a certain content type
Override html.tpl.php for a certain content type
Similar to another post aimed at using a different page.tpl.php for a certain content type, sometimes I've needed to call in the node via an iframe or similar, so I really need a different html.tpl.php for a certain content type... I've laid the content out in a similar way to the other post... For...
White Screen After Updating Date Module
White Screen After Updating Date Module
I'm always a little cautious when updating modules, so I tend to download and unpack the new modules into a 'workings' folder rather than the 'modules' folder... Then I make sure I have downloaded the current (now out of date) module from the server using FTP so I have all of the files that are...
Example of hook_form() and hook_form_submit()
Example of hook_form() and hook_form_submit()
For every settings page you'll need to use the Form API to allow the user to add/edit the configuration values. This is a simple example of the form and the submit function. /** * Form builder: Create and display the configuration settings form. */ function MY_MODULE_NAME_form($form, &$...
Example of hook_menu()
Example of hook_menu()
Adding a module configuration or settings page to the main Drupal menu is an important task and I like to add a page for each module I build... Even if it's more of a 'help' page to explain what the module does or how to use it. Adding one page is fairly simple.... /** * Impliment hook_menu...
Example of hook_permission()
Example of hook_permission()
hook_permission() is a handy way to allow certain roles to access certain pages, i.e. the 'Administrator' to change settings and say 'Comms Team' to view the results. As per a lot of Drupal building the return value must be a nested array, and that can be tricky to remember... So here is an example...

Pages

  • 1
  • 2
  • 3
  • next ›
  • last »
 
 
Jon Moore

Search form

Jon Moore

Tips 'n' Snips

 
  • Home
  • General
  • Drupal
    • Drupal 6
    • Drupal 7
    • Module Building
  • HTML & CSS
  • Javascript
  • jQuery
  • PHP
    • CodeIgniter
    • Handy Functions
    • MySQL
  • WordPress
  • About

BBC Technology News

  • Kashmir users kicked off WhatsApp
  • Heavy fine for Chinese firm over unlicensed game
  • Uber had 6,000 US sexual assault reports in two years
  • Electric eel lights up Christmas tree and other news
  • Rory Cellan-Jones: Reporting the news with Parkinson's
More

Sitepoint

  • The Real Future of Remote Work is Asynchronous
  • 7 Ways Developers Can Contribute to Climate Action
  • How to Divert Traffic Using IP2Location in a Next.js Website
  • 10 Zsh Tips & Tricks: Configuration, Customization & Usage
  • Building a Habit Tracker with Prisma, Chakra UI, and React
More

Heart Internet

  • Sponsor Neil Hunter’s amazing Antarctic expedition – for Diabetes UK
  • 15 web design books of 2019 that you should read
  • 12 podcasts for every creative person’s commute
  • Ten TED Talks every designer and web creative should watch before 2019 is over
  • The rise of the robots: Will AI take over graphic design?
More
 

Backend Coders

  • PHP
  • Handy PHP Functions
  • PHP MySQL

Frontend Coders

  • HTML & CSS
  • jQuery
  • Javascript

CMS/CMF Systems

  • Drupal
  • Drupal 6 Specific
  • Drupal 7 Specific
  • Drupal Module Building
  • WordPress

About

  • Home
  • About
 

© Jon Moore 2019

All stock images are from www.istockphoto.com