ASP/.NET Web Hosting
* 3 Months FREE *
CLICK HERE!
 CoverYourASP --> Adding member services --> Part 7

Free membership

Join in the fun! Sign in
Member Services

Site navigation
Download the entire site!
Search my articles
Free Magazines
Browse the directory

Send me feedback
Buy my boxer shorts

Recommend this page
Printer-friendly page

Resources I recommend
Link to my site
Advertising slashed!
About your privacy
Legal stuff
Site statistics
90 active users
279 visitors today
436 pages today
how is this done?
Tools I use

CoverYourASP
Copyright © 1999-2009 James Shaw.
All rights reserved.

ASP.NET Blog
RSS submissions
E-commerce

Now open source with SourceForge!

Free site personalization
Through a simple form you can change settings that control how the front page is displayed.

The only fun part of this was that I had to calculate how many books and banners to display down the side of a page - you can basically turn everything off! Here's the code I used:

// I have to calculate how many banners now
var nBanners = 1;

if ( bIntro )
   nBanners++;

if ( bSuggestions )
   nBanners++;

if ( bDiary )
   nBanners++;

if ( nNew || nPopular )
   nBanners +=  Math.floor ( (nNew + nPopular) / 2.5 );

if ( bCategories )
   nBanners += 3;

if ( bNews )
   nBanners++;

// show rotating banners
ShowBanners ( nBanners?nBanners:1 );

Currently you can hide/show the introductory text at the top, the categories and ASPWire news. You can also specify the number of articles in the New and Most Popular sections. Set to zero, and those sections disappear too!

Further plans? You tell me what you want, but I suspect that using my Yahoo-style category layout may be an option. It seems like I nearly have enough content to justify it!

Part 8: Upgrade membership...

Featured sponsor
My favorite resources

Tiki Statues - Tiki Masks - Tiki Totems



See my source code
wherever you see this icon...

You can also download the entire site source code for FREE!


I share my content

Supporting ASPRSS

Do you need a quick and easy way to link to my articles? All the information you need is published with ASPRSS...