I haven't tried any of the code out in the post you linked to, but it looks like the C# code just needs to be compiled into an assembly and deployed to the SharePoint server.
The <CustomAction>
element in the feature XML below the C# code references this assembly via the ControlAssembly
attribute and the compiled class is referenced by the ControlClass
attribute.
If you're adapting the code in the post and creating your own project, ensure that your assembly and class names are correctly referenced in the feature XML file (through the ControlAssembly
and ControlClass
attributes).
Alternatively you can download the author's SharePoint Solution Pack which contains this feature and others.