Code

A little something about everything

internet marketing and website development made simple..

How to redirect and handle mobile clients with JavaScript using cookies

Create a file called mobile.js and add the following code to it, be sure to replace shawnhyde.com with your own domain name.

 

You will need to create a link back to your full version site for people with large display smart phones that do not want to use the mobile site. In order to do this you just need to add the following code somewhere on your mobile site.

 

You can also add a floating link back to your mobile site in case they have problems by adding the following code to your main site.

You will need to add a file named desktop.css with something like the following code.

You will need to add a file named mobile.css with something like the following code.

Also, be sure you update the code to reflect the correct folders for files.  For example, "css" folder, "js" folder. 

Edit / Updated the code to support newer mobile clients.

Asp.net C# script for Permanent 301 Redirect

Here is the code, add this to your global.asax file:

 

How to add ads to Telligent Community Server 2007, 2008, 2008.5

add this code to the top of the master page or template you wish to include ads on:

Now add this code to the area of the page you want your ads to be displayed:

How to create Custom SEO for each content page of the Community Server platform?

In four easy steps:

  1. Create a file in the "/"directory called siteurls_override.config
  2. Copy the Content folder in "\themes\theme-name\" and rename it the same as you made the folder name in the "path" field above. Go into this folder and name it what ever you entered for the "page" field above. (this allows some added SEO by url name also.
  3. open the .aspx file in the "themes\theme-name\foldername" and change the line from

    to
  4. Go to Themes\theme-name\Common\ and copy rename the master.MASTER file and rename it to (pagename).MASTER you can now open and edit the HTML for title and meta in this file.

*hint* it goes directly after this code:

SEO code should be in this format:

So in 4 simple steps you've made Community Server SEO Friendly for content pages!

Also keep in mind that Google no longer looks at keywords and only lightly at meta description now. You should focus on the content of your site and keep in mind that the SEO code only helps your page position if it matches the rest of your page content.