user

Fix for Why isn't my submit function being called?

  1. /**
  2.  * Menu callback.

View of user posts

  1. $view = new view;
  2. $view->name = 'user_tracker';
  3. $view->description = 'Shows posts started by or participated in by a given user';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node'

Fix for Example of hook_user()

  1. <?php
  2. // Put that as user_example.module
  3. // Tested on D5
  4.  
  5. /**
  6.  * Implementation of hook_user().
  7.  */
  8. function user_example_user($op, &$form_values, &$account, $category = NULL) {
  9.   switch ($op)

Fix for Example of hook_user()

  1. <?php
  2. // Put that as user_example.module
  3. // Tested on D5
  4.  
  5. /**
  6.  * Implementation of hook_user().
  7.  */
  8. function user_example_user($op, &$form_values, &$account, $category = NULL) {
  9.   switch ($op)

Fix for changing user login block template

  1. <?php
  2.  
  3. $form['name']['#title'] = $form['pass']['#title'] = '';
  4.  
  5. $form['name']['#size'] = 6;
  6.  
  7. ?>
  8. <div id="user_login_block">
  9.  
  10. <div id="user-name"><?php print drupal_render($form['name']); ?></

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of frien

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code.

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code. Need u

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code. Need up displa

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}
Syndicate content