profile

Fix for location_user_category.module

  1. <?php
  2. /**
  3. ========User Location Category module=======
  4. * file: location_user_category.module
  5. *  Puts The User Location fieldset in specific profile category,
  6. *  so that is displayed on other tab
zet's picture

location_user_category.module

  1. <?php
  2. /**
  3. ========User Location Category module=======
  4. * file: location_user_category.module
  5. *  Puts The User Location fieldset in specific profile category,
  6. *  so that is displayed on other tab
zet's picture

location_user_category.install

  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  * Installation / uninstallation routines for location_user_category.module.
  6.  */
  7.  
  8. /**
  9.  * Implentation of hook_uninstall().
  10.  */
  11. function location_user_category_uninstall()
zet's picture

location_user_category.module

  1. <?php
  2. /*file: location_user_category.module
  3. ========User Location Category module=======
  4. *- puts The User Location fieldset in specific profile category,
  5. *so that is displayed on other tab than t
zet's picture

User Location on specific Profile category/tab

  1. <?php
  2. /*file: location_user_category.module
  3. ========User Location Category module=======
  4. *- puts The User Location fieldset in specific profile category,
  5. *so that is displayed on other tab than t
zet's picture

location_user_category.info

  1. name = Location User Category
  2. description = Put user locations fieldset on specific profile category.
  3. ;dependencies[] = location
  4. dependencies[] = location_user
  5. package = Location
  6. core = 6.x
zet's picture

User Location on specific Profile category/tab

  1. <?php
  2. /*file: location_user_category.module
  3. ========User Location Category module=======
  4. *- puts The User Location fieldset in specific profile category,
  5. *so that is displayed on other tab than t

Trying to make a menu tab to user profile

  1. <?php
  2.  
  3. /**
  4.  * Implement hook_menu
  5.  */
  6. function puravisa_custom_menu() {
  7.   $menu['node'] = array(
  8.     'title' => 'My Profile',
  9.     'description' => 'Click here to visit your profile',
  10.     'typ

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}
Syndicate content