Skip to content

DanPros

Personal Weblog

  • Home
  • About
  • Contact
  • Web Info

Tag: drupal

Add rel nofollow to all external links in the node body and comment body

For for node body field use below code: /** * Override or insert variables into the node template. */ function template_preprocess_node(&$variables) { /* Add nofollow */ Continue reading
danprosAuthor danpros Posted on July 04, 2013 Category Uncategorized Tags drupal comments

Adding new variable for the Author Pane (Follow Links)

Here's how to adding new variable for the Author Pane (Follow links). The demo is on Bersosial.com. function template_preprocess_author_pane(&$variables) {   $variables['user_follow'] = '';   Continue reading
danprosAuthor danpros Posted on June 20, 2013 Category Uncategorized Tags drupal comments

Latest Reform commit: Exclude UID 1

Here is the latest commit for one of my Drupal module, Reform. But first, what is Reform module? Perhaps sometimes you want something simple, such as limiting the minimum length and maximum length of Continue reading
danprosAuthor danpros Posted on June 02, 2013 Category Uncategorized Tags drupal comments

Comment Fragment: Rewrite and Redirect Comment Permalink

A few days ago I releasing new module to rewrite and redirect the comment permalink to use a fragment for SEO purposes. The default Drupal 7 comment permalink has the following format, Continue reading
danprosAuthor danpros Posted on March 10, 2013 Category Uncategorized Tags drupal comments

Check if checkbox field is checked (Drupal 7 theming)

Recently, I need the following features for one of client Drupal 7 site: There is one content type that requires option to change the layout just by using checkbox, what is needed is an inline CSS Continue reading
danprosAuthor danpros Posted on February 15, 2013 Category Uncategorized Tags drupal comments

Embed a view inside a node in Drupal 7

We can embed a view created by Views module inside a node in Drupal 7 with just some short code. Here is the code: <?php     $view = views_get_view('your_view_name');     Continue reading
danprosAuthor danpros Posted on January 15, 2013 Category Uncategorized Tags drupal comments

Top Ten Free Professional Drupal Themes

Drupal has an amazing and clean code. Support of social networking, multimedia, SSL, event calenders, document management, blogging, forums, internationalization, user management and permission Continue reading
danprosAuthor danpros Posted on January 10, 2013 Category Uncategorized Tags drupal comments

Creating custom user login page in Drupal 7

Maybe sometimes we want a custom style for our Drupal login page, different with the existing default login page in Drupal 7, whether it's for a personal project or client requests. Here is the Continue reading
danprosAuthor danpros Posted on January 04, 2013 Category Uncategorized Tags drupal comments

Creating responsive Drupal theme (Simplified)

There are various ways to create a responsive Drupal theme, one of them is using template_preprocess_html() function in template.php. First create template.php if your theme do not already have it. Continue reading
danprosAuthor danpros Posted on October 25, 2012 Category Uncategorized Tags drupal comments

Releasing simple Drupal module: Reform

At least now I do not need to creating custom module to get this simple feature. Reform: sometimes we want something simple, such as setting up the minimum length and maximum length of a username. Continue reading
danprosAuthor danpros Posted on July 25, 2012 Category Uncategorized Tags drupal comments
Page 1 of 10 »

About

Personal weblog of Danang Probo Sayekti aka danpros.

Recent Posts

  • Assign Static IPs to KVM guests using DHCP in Proxmox
  • Install Windows on Any Server using Rescue System and QEMU-KVM
  • Auto Backup MySQL Database to FTP Server using cURL
  • Good and lightweight web based KVM manager
  • Mount remote FTP server as folder on Linux and auto startup it

Archives

  • ▼ 2017 (6)
    • September (2)
    • June (2)
    • May (1)
    • March (1)
  • ► 2016 (2)
    • March (1)
    • February (1)
  • ► 2015 (3)
    • December (2)
    • September (1)
  • ► 2014 (5)
    • November (1)
    • October (1)
    • September (2)
    • January (1)
  • ► 2013 (17)
    • December (1)
    • November (1)
    • October (1)
    • September (1)
    • August (1)
    • July (1)
    • June (3)
    • May (1)
    • April (1)
    • March (1)
    • February (1)
    • January (4)
  • ► 2012 (38)
    • December (2)
    • November (2)
    • October (2)
    • September (2)
    • August (1)
    • July (3)
    • June (1)
    • May (4)
    • April (1)
    • March (7)
    • February (8)
    • January (5)
  • ► 2011 (77)
    • December (1)
    • November (4)
    • October (3)
    • September (3)
    • August (10)
    • July (22)
    • June (5)
    • May (4)
    • April (8)
    • March (4)
    • February (9)
    • January (4)
  • ► 2010 (66)
    • December (11)
    • November (16)
    • October (8)
    • September (24)
    • April (1)
    • March (2)
    • February (2)
    • January (2)
  • ► 2009 (32)
    • December (9)
    • November (11)
    • October (2)
    • August (10)
  • Home
  • About
  • Contact
  • Web Info
  • Twitter
  • Facebook
  • Google+
  • GitHub
© 2017 DanPros.com

Proudly powered by HTMLy