Skip to main content

Home/ Drupal for Developers/ Group items tagged user

Rss Feed Group items tagged

Hendy Irawan

Drupal Development - 0 views

  •  
    Drupal Development - Presentation Transcript Drupal Code: Day 1 where am i, and how did i get all these arrays Hi. I'm eaton. Drupal is... http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Drupal Core http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Theme Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ Drupal is... Theme Views Five Star CCK Node Drupal Core User http://www.flickr.com/photos/druclimb/282597447/ name = Demo description = Just a simple demo module. core = 6.x function demo_nodeapi(&$node, $op) { global $user; if ($op == 'view') { if ($node->uid == $user->uid) { $node->title . ' [YOUR ARTICLE]'; } } } demo.info demo.module name = Tricky description = A slightly trickier module. core = 6.x function tricky_form_alter(&form, $form_state, $id) { if ($id == 'node_form') { $title['#required'] = FALSE; } } function tricky_install() { drupal_set_message('You just installed Tricky!'); } tricky.info tricky.module tricky.install views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install sprout.install sprout.admin.inc sprout.inc CHANGELOG README views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install sprout.install sprout.admin.inc sprout.inc CHANGELOG README views.info views.module views.inc user.inc node.inc blog.inc comment.inc ui.info ui.module arguments.inc handlers.inc filters.inc query.inc sprout.info sprout.module forum.inc views.pages.inc table.inc views.install
Hendy Irawan

phplist Integration Module | drupal.org - 0 views

  •  
    This module provides a basic level of integration between Drupal and phplist. one-way synchronisation of user accounts from Drupal to phplist targetting of mailshots using Drupal user profiles users can manage their phplist subscriptions in "My Account" bulk import to phplist for existing Drupal installations anonymous sign-up (via a block), confirm and unsubscribe access to lists based on role NEW in D6-DEV - send mailshots directly from within Drupal (thanks to seutje #449024: future direction) All the functionality of PHPlist is retained - this is just a way of automatically getting Drupal users into the phplist database and incorporating them into any mailshots that get sent.
webExplorations

Securing Drupal User Accounts | Mad Irish . net - 0 views

  • This helps to limit automated account creation attempts (by bots). This configuration can be accessed via the main Drupal navigation menu following the links for Administer -> User settings.
  • On the 'User settings' page you'll notice that some of the content of the e-mail templates are tokenized, including place holders such as "!username" and "!password." These tokens are replaced with user specific values before e-mails are sent. It is important to remove any occurrence of "!password" token to prevent user passwords being sent via e-mail. Without the password users must utilize a time sensitive link in order to activate their account or change their password.
  • You can install and utilize the Password Strength module (http://drupal.org/project/password_strength) in order to require that users select strong passwords
  • ...1 more annotation...
  • Another great module for protecting user accounts is the Login Security module (http://drupal.org/project/login_security). This module detects brute force, or automated password guessing, attacks and can prevent them by notifying administrators and locking accounts for a time.
  •  
    Several steps you can take to stop bots from spamming your client's site. It is no fun spending an afternoon deleting hundreds of SPAM comments.
Rajiv M

User Experience (UX) Design, Ux Design, UX/UI Design, UI UX Design - 0 views

  •  
    Orange Oats is one of few unique User Experience UX Design, User Experience Design, User Interface Design, UX Design, Mobile Application Design, UX UI Design, UI UX Design, Software User Interface Design & web user interface design Company who does quality design for the customer to love in.
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
Daniel Gregoire

How To Create Users Programmatically In Drupal 6.x - 1 views

  • <?php $newUser = array( 'name' => 'username', 'pass' => 'password', // note: do not md5 the password 'mail' => 'email address', 'status' => 1, 'init' => 'email address' ); user_save(null, $newUser); ?>
  •  
    Create users programmatically. A bit less involved than creating nodes; you just need to populate an array with values, don't need to cast it into an object.
Daniel Gregoire

Theming the User Registration Form in Drupal 6 | Trellon - 0 views

  • <?phpfunction themename_theme($existing, $type, $theme, $path) {  return array(    ...    // tell Drupal what template to use for the user register form    'user_register' => array(      'arguments' => array('form' => NULL),      'template' => 'user-register', // this is the name of the template    ),    ...  );}?>
  • <div id="registration_form">  <div class="field">    <?php      print drupal_render($form['account']['name']); // prints the username field    ?>  </div>  <div class="field">    <?php      print drupal_render($form['account']['pass']); // print the password field    ?>  </div>  <div class="field">    <?php        print drupal_render($form['submit']); // print the submit button      ?>    </div>  </div></div>
  • <?php  print '<pre>';  print var_export($form);  print '</pre>';?>
  • ...3 more annotations...
  • Don't forget to render hidden fields or it won't work ;) echo drupal_render($form['timezone']); echo drupal_render($form['form_build_id']); echo drupal_render($form['form_id']);
  • you also have to print the "token" in order to make the form work print drupal_render($form['form_token']);
  • From my own experience using a form tpl.php, you need to print the whole $form at the very end of the template to ensure that the form will validate upon submission. <?php print drupal_render($form); ?> Just adding the hidden form_build_id and the form_id fields will not mean the form will work. Printing the entire form at the end, however, will mean that all the stuff you wanted to hide in making the template will show. For those fields, include "unset" statements for each one: <?php unset($form['field_to_hide']); ?> Please correct me if I'm wrong or if there is a better way to do this.
Scott Blackburn

have you seen ProjectPier? | groups.drupal.org - 0 views

  • We – eCentres.net - are using, with a lot of problem of daily configuration and setting, rather than 60 modules and three subdomains. The collaborative community – working in European research projects - now has a basecamp of 3000 users – biannual newsletters - and 300 collaborative participants, who needs mainly: a join calendar of events; the work-groups and all the rest of traditional modules associated. In addition, the basic forum and messaging and all the modules - it is needed more - of users, communities and profiles, usermap, userlist, search users, directory, etc On the other hand the modules of sharing files and documents - not absolutely solved - maybe with the drupal-ftp module... And finally and a lot important the media sections, podcasts, image gallery and video section - not well solved. The next steps is to integrate the donations, fees and commercial solutions and multichannel communication as SMS, and skype and IRC solutions and webminars. Any other simple or partially CWE in my honest opinion are not really sustainable.
  •  
    have you seen ProjectPier?
Scott Blackburn

Customising the user registration form | drupal.org - 0 views

  •  
    These snippets allow you to override the default user registration layout using a custom user_register.tpl.php.
Scott Blackburn

Subform Element | drupal.org - 0 views

  •  
    I use this for user profiles. Needed for the nodeprofile module
Scott Blackburn

Insert Subscribed Organic Groups List | drupal.org - 0 views

  •  
    You can add a list of groups that the user has subscribed to with the following snippet.
Scott Blackburn

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

Scott Blackburn

Views Argument Handling Code | drupal.org - 0 views

  •  
    if (arg(0) == 'user' && is_numeric(arg(1))) { return array(arg(1)); }
Scott Blackburn

Usernode | drupal.org - 0 views

  •  
    I use this for user profiles
Daniel Gregoire

Advanced theme settings | drupal.org - 4 views

  • here. dman - April 6, 2009 - 22:10 This worked fo me. An additional logo (Appeared in the footer everywhere) Not sure why I had to put the submit handler into the #validate pass :-/ It was copied from the existing theme settings funcs. 'campaign_' is the theme name.
  •  
    d.o page for adding theme-settings.php file for custom theme features available at theme configuration page. Highlighting comment that successfully adds an "upload" field for uploading images for custom features.
amelia_joe

Update Your Samsung Galaxy S3 to Android 4.4.4 KitKat with 11 Easy Steps - 0 views

  •  
    Recent reports revealed that Samsung Galaxy S3 (GT-I9300) users can still upgrade their device to the latest Android 4.4.4 KitKat version by using customized firmware called LiquidSmooth KitKat ROM.Read more at: http://losangeles.fortuneinnovations.com/news/update-your-samsung-galaxy-s3-android-444-kitkat-11-easy-steps
Megan Lloyd

The Problems in Android 5.0 Lollipop Update and Ways to Fix Them - 0 views

  •  
    Android 5.0 Lollipop is possibly the major software upgrades that meant to alter the performance under the cover, including new features and revamping the design language of the user interface.Read more at: http://edinburgh.fortuneinnovations.com/news/problems-android-50-lollipop-update-and-ways-fix-them
Daniel Gregoire

Programmatically Create, Insert, and Update CCK Nodes | doug | CivicActions - 2 views

  • Always use content_database_info to get the database info. For example:   $field1 = content_database_info(content_fields('yourfield1', 'yourtable'));  $table1 = $field1['table'];  $column1 = $field1['columns']['value']['column'];  $field2 = content_database_info(content_fields('yourfield2', 'yourtable'));  $table2 = $field2['table'];  $column2 = $field2['columns']['value']['column'];  if ($table1 == $table2) {    $sql = "SELECT n.*, t1.$column1, t1.$column2 FROM {node} n ";    $sql .= " INNER JOIN {$table1} t1 ON t1.nid = n.nid AND t1.vid = n.vid";  }  else {    $sql = "SELECT n.*, t1.$column1, t2.$column2 FROM {node} n ";    $sql .= " INNER JOIN {$table1} t1 ON t1.nid = n.nid AND t1.vid = n.vid";    $sql .= " INNER JOIN {$table2} t2 ON t2.nid = n.nid AND t2.vid = n.vid";  }  $sql .= " WHERE n.nid = %d";
  •  
    Important point: Using special functions to let CCK get the proper name of the field (allowing users to make CCK changes in the UI and let your code continue to work).
informatics12

Informatics Commerce: eCommerce Design and Development, Houston, TX - 0 views

  •  
    Informatics Commerce is an eCommerce consulting and development firm specializing in custom-built Magento e Commerce websites and mobile applications for any-sized business. Our user-friendly eCommerce web development solutions will integrate seamlessly with existing your existing business practices. With easy-to-customize catalog presentation, retail checkout, discounts and deals, and simple site/ account management tools that complement proven SEO and analytics, your Magento storefront will drive sales and increase customer satisfaction.
1 - 20 of 34 Next ›
Showing 20 items per page