How to customize the item edit form in sharepoint designer

I needed to customize the item edit / display / new form to remove some fields from the form. In SPD you can not convert the edit form to XSLT dataview. What you have to do is:

1. Hide the default form: Select the ListFormWebPart, right click and select web part properties. Go to layout and check hidden.
2. Insert your custom form: Click on an empty area so nothing is selected. Then go to Insert->Sharepoint controls->Custom List form, then select the list you are modifying and select the type of form. Now you can modify or delete any field!

How to Add, Remove, Manage List Columns in SharePoint Designer

To Add/Remove/Manage columns in sharepoint designer(SPD), first open up the site in SPD then open up the view’s aspx file. In design mode, right click on the DataFormWebPart and select “convert to XLST data view”.

Now you should have a “Common data view tasks” popup, if not, just click on the arrow to the right. You could then select “edit columns”. Now you will be able to add/remove/manage columns in SPD! Save the file when you done and your sharepoint site will be automatically updated with the new columns.

Int32.Parse Versus Convert.ToInt32 in SharePoint

Today I found out the hard way that SharePoint doesn’t like the function Int32.Parse. I spent several hours trying to debug my code, then finally come to the conclusion that by using Int32.Parse to convert a int to string, it mysteriously prevents execution of everything that follows this line (although this compiles perfectly in VS2008).

The SharePoint correct way to convert int to string is to use the function Convert.ToInt32(myString), btw Convert is also faster than Parse, so I recommend everyone to stop using Parse and use Convert instead even if it is not sharepoint.

Sharepoint Document Library Mass Upload Tool

This is a tool written by Stuart Preston to enable us to mass upload files, folders and sub-folders into our sharepoint document library. The tool will automatically create the folders in sharepoint. There is no limit on the number of documents you could upload.

Download SPBulkUpload

How to use:
1. Extract the zip file, this is actually a Visual Studios project with source code.
2. To start using the tool, copy the Conchango.Sharepoint.Utilities.BulkUpload.exe file from /bin/Debug folder to your C:\ root folder and rename it to something shorter like “spbulk.exe”.
3. Open up command prompt (Start->Run->cmd)
4. type: C: to go to your C:\ root
5. type: spbulk “c:\source folder” “http://webapp/site/target/document_library”
(replace the source folder and destination with your actual folder and site url)
6. Wait for the tool to finish.

To show file extension in sharepoint document library

1. Open up the .aspx file responsible for displaying the document list in Sharepoint Designer, in my case it is called AllItems.aspx

2. Select the WebPartPages:ListViewWebPart control. (It is the place where rows of document are listed)

3. Right-click on it, Convert to XSLT Data View

4. Go into the code and find the line that says:

<xsl:value-of select="ddwrt:UrlBaseName(string(@LinkFilename))" />

5. Add this to the end of the line:

.<xsl:value-of select="@File_x0020_Type" />

6. Save

Caution: after editing the file with sharepoint designer, you wouldn’t be able to edit it with anything else except maybe Visual Studio

Adsense Inserter Plugin for Joomla

Latest Version: 1.5.1 for joomla 1.5.x and 1.0.1 for joomla 1.0.x
(updated on February 14th, 2012)

Download:
Click Here to download the plugin for Joomla 1.5.x
Click Here to download the plugin for Joomla 1.0.x

Description:

Adsense Inserter is a Free and Open Source Joomla plugin which is able to automatically insert google adsense ads in to your joomla articles and contents on the fly. It doesn’t matter if you have 1 post or 100,000 articles, it will insert your ad code into all of them automatically. You can control all aspects of your ad’s display and position. Just specify ad color and position in the plugin options, your ad code is automatically generated and inserted.

Features:

  • Automatically insert Google Adsense ads in to your articles.
  • No manual work required, ad code is dynamically inserted into your existing and new posts.
  • You could optionally specify not to show ads in a post by using tag <!--noadsense-->
  • You could optionally specify where to start the ads in a post by using tag <!--adsensestart-->
  • You could optionally specify where to stop the ads in a post by using tag <!--adsensestop-->
  • Decrease ad blindness by giving you the option to randomly place your ad within your articles.
  • You could optionally define absolute ad position instead of random position.
  • Allow you to pick how many total ads to show on one page.
  • Allow you to pick how many ads to show in one post.

Requirements:

Adsense Inserter has been tested on Joomla 1.5.x and 1.0.x. Please download the appropriate version above.

Installation

  • Go to Extensions->Install/Uninstall
  • Browse to the zip file you downloaded and click Upload file & install
  • After the install is successful. Go to Extensions->Plugin Manager->Content – Adsense Inserter
  • Choose your ad network and put in your account number and save the settings
  • Don’t forget to enable the plugin. Your installation is complete and your ads should now showing up in your articles

Change Log:
02/14/2012: Version 1.5.1 and 1.0.1, removed border and various bug fixes.

10/08/2008: Version 1.50 and 1.00, initial release for joomla 1.5.x and 1.0.x

Questions and Discussions:

Enter the Adsense and YPN Inserter Forum

You could also leave comments here if you do not wish to register and post in a forum.

Download:
Click Here to download the plugin for Joomla 1.5.x
Click Here to download the plugin for Joomla 1.0.x

Older versions:
1.50 and 1.00
Click Here to download the plugin for Joomla 1.5.x
Click Here to download the plugin for Joomla 1.0.x

Disclaimer: this plugin contains a donation option, which allow users to donate a small percentage of their earnings to the author of this plugin. When this option is enabled, the author’s adsense ads will occasionally appear on the plugin user’s website (determined by the percentage entered by the plugin user).

Friendly links:
Best wordpress adsense plugin
Treadmill Lube

Look up your horoscope and fortune

Select Your Birth Date to look up your horoscope and fortune:
Month: Day: Year:

Today is May 18th, 2012

Chinese Zodiac: the year of the Rabbit.

May 18th, 2012 is a Good Day for:
Worship: affects the effectiveness of your prayers.
Gamble: affects your luck in any gambling activities.
May 18th, 2012 is a Bad Day for:
Wedding: holding wedding ceremonies and obtaining marriage certificates.
Trade: for any form of trading.