Custom Membership Provider
Custom Membership Provider is easy to do. Firstly, please extends MembershipProvider
Code
public class AdvCMSMembershipProvider : MembershipProvider |
Secondly, Right Click MembershipProvider, and then implements all abstract methods.
The only method you need to change:
Code
public override bool ValidateUser(string username, string password) | |
{ | |
IAdvUser user = userRepository.GetByUserName(username); | |
| |
return user.Password == password; | |
} |
Lastly, chaging web.config
Code
<membership defaultProvider="AdvCMSMembershipProvider"> | |
<providers> | |
<clear/> | |
<add name="AdvCMSMembershipProvider" | |
type="AdvCMS.Security.AdvCMSMembershipProvider, AdvCMS.Security" /> | |
</providers> | |
</membership> |
Please download our opensource project, AdvGenCMS, as the example.
Convert DhcpInfo.dns into a readable IP
DhcpInfo.dns1 and DhcpInfo.dns2 is an integer, not a readable IP string,"x.x.x.x". That is hard to understand. I did a search in internet. There are a number of people to write their own function to do that. Actually, Android SDK has a formatter to do that.
Code
Formatter.formatIpAddress(info.dns1) |
That is hard to find a mobile app developer vacancy
I was in Hong Kong for a few months in this year, I found there are a lot of local app in the market. Now, I back to Brisbane. There is only a few local app in the market. I think there is no demand for mobile app developer in there. Last night, I went to Seek.com to search for a mobile app developer vacancy. I just can find one only.
WordPress 3.4 is released
WordPress 3.4 is released! In this times, the theme function got major improvement. Now, you can preview the theme in a live format. I am waiting for this function for long long time!!! Moreover, the theme can be customized more, such as changing the size of header image. Find more out in Wordpress website.
Source:
WordPress 3.4 “Green”
SEO Tips- Please add a news section
There is a number of ways to push your website in a top rank! But there is a one item the people always missed to keep your website "fresh". A lot of search engine like those websites keeps update itself. They believe this kind of websites are still "alive". So, the best way to accomplish this task is adding a news section. You can add some promotion about your shop, any major milestone about yourself, etc. You need to keep adding some new contents. Keeping your website to the top of list needs your hard work!