Dailytip.net

Articles on pretty much anything.

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008


ASP.NET's membership and roles provider

In languages like PHP, or Ruby, you can spend a lot of time writing a really effective and useful membership system. It can takes days - even weeks sometimes. Not in ASP.NET 2.0 and 3.5 though. Click "more" to find out more about .NET and why developing a user system is a very quick and painless task.

More...

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Andy on Monday, April 07, 2008 4:04 PM
Permalink | Comments (0) | Post RSSRSS comment feed

phpBB 3: How to access user details

This article is a follow up to the article I wrote about integrating the phpBB 3 login with your site.You can find that article here. This time I'd like to take it a little bit further and take a look at what we can do once our user is logged in. I'm going to assume you have sufficient knowledge of PHP to understand the code and, at least, the basics of object orientated programming in PHP. I'm also assuming you have a fully functioning and installed phpBB 3 forum at the point.

To go further into the topic, we'll need to be able to access the data for our user(s). To do this, we have to use the user object and access it's data member which, predictably, holds all the user data. Here's the piece of code we'll need every time we want to use the phpBB user system in our pages. I'll explain the source code after.

 

0:  define('IN_PHPBB', true);
1:  $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '/PATH/TO/FORUMS';
2:  $phpEx = substr(strrchr(__FILE__, '.'), 1);
3:  include($phpbb_root_path . 'common.' . $phpEx);
4:  include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
5:  // Start session management
6:  $user->session_begin();
7:  $auth->acl($user->data);

More...

Currently rated 5.0 by 7 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Andy on Wednesday, April 02, 2008 2:51 PM
Permalink | Comments (10) | Post RSSRSS comment feed

Introduction to LINQ

Microsoft Corporation’s newest technology helps programmers take data access to the next level. It extends the .NET framework to 3.5 and integrates query, set, and transform functions/methods right within the language. It is compatible with both vb.net and c#.net. . The standard query operators allow queries to be applied to any IEnumerable<T>-based objects.

There's so much that I can cover about LINQ, but I will leave that to MSDN for you. (links at the bottom of the post). I will however give you some standard code snippets, and explain a few expressions. Click the more link to see my examples 

More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Programming
Posted by Affan on Tuesday, March 04, 2008 8:14 PM
Permalink | Comments (0) | Post RSSRSS comment feed