Skip to main content

Home/ Drupal for Developers/ Group items tagged drupal_problems_solved

Rss Feed Group items tagged

mesbah095

Guest Post Online - 0 views

  •  
    Article Writing & Guestpost You Can Join this Site for Your Article & guest post, Just Easy way to join this site & total free Article site. This site article post to totally free Way. Guest Post & Article Post live to Life time only for Current & this time new User. http://guestpostonline.com
Scott Blackburn

Views Help: How to get a field to "Link this field to its user" besides username | drup... - 0 views

  • Though one would think the $field object is what we wanted-- the actual object we needed is $row (even though we're only looking at one field in the row). Put the following into the field tpl file to see what the necessary info is: <?phpprint '<pre>';print_r($row);print '</pre>';?> Then, to actually make the link, put the following in your field tpl file: <?php$account = user_load($row->uid);print l($row->profile_values_profile_fullname_value, 'users/' . $account->name);?> Change 'profile_values_profile_fullname_value' to the proper field alias (based on the $row output). Also, be sure to change 'users' to whatever the path is for your user accounts. I also had another thought-- given your use case, you may want to consider the http://drupal.org/project/realname module as well. It will replace usernames with whatever field(s) you designate all over the site. EDIT: I had another thought. I'm not sure of the performance implications of doing a user_load in the template file. Another option is to add the 'User: name' field to the view but exclude it from display. Then you could avoid the user_load and change the code in the tpl file to: <?phpprint l($row->profile_values_profile_fullname_value, 'users/' . $row->users_name);?>
  •  
    theming the field tpl files for Views2
Scott Blackburn

Getting node path for theming list view | drupal.org - 0 views

  •  
    I recently need to theme a node path in a list view. Comment #1 did the trick: $node = node_load($nid); $path = drupal_get_path_alias('node/'.$node->nid);
Scott Blackburn

Example: My Recent Posts Block | drupal.org - 0 views

Scott Blackburn

Contextual View Blocks | drupal.org - 0 views

  •  
    $args[0] = arg(1);
Scott Blackburn

Anonymous user permissions when integrating with OG | drupal.org - 0 views

Scott Blackburn

Better themablity of group details block | drupal.org - 0 views

  •  
    This patch adds * classes to elements of group details block * keys with name of content type to content creation link array Both changes allow better themability of the group details block.
Scott Blackburn

Calendar + OG | drupal.org - 0 views

  •  
    getting Calendar to work with OG, kind of...
Scott Blackburn

Specific content types for a specific og content type | drupal.org - 0 views

  •  
    Remove content types in OG Block $exempt['page']='page'; //new code
Scott Blackburn

running og forum with mysql 4 | drupal.org - 0 views

Scott Blackburn

[SOLVED] Error message when creating a new forum topic | drupal.org - 0 views

  •  
    added to og_forum.module if ($key == '') { continue; }
Scott Blackburn

Upload file area not shown with single image upload | drupal.org - 0 views

  •  
    imagefield-2-rc6 - 5.x-2.0-rc6 - After upgrading to rc6 the imagefield upload area no longer appears. Applied Patch
1 - 20 of 34 Next ›
Showing 20 items per page