I wanted to auto-insert a Wall Post for new users (like a Welcome, bla bla message - see this new user for an example) so I added this trigger (I may make this into a feature at some point):
--Creates a wall post for that user when a new user is inserted
IF OBJECT_ID('trig_AddNewUserWallMessage','TR') IS NOT NULL DROP TRIGGER trig_AddNewUserWallMessage
GO
CREATE TRIGGER trig_AddNewUserWallMessage ON Users
FOR INSERT
AS
DECLARE @UserID int
SELECT @UserID =(SELECT UserID FROM Inserted)
INSERT INTO SmartThinker_WallPost (PortalID,ModuleID,ParentPostID,RelatedID,Subject,PostText,CreatedDate,ChangedDate,CreatedByUserID,ChangedByUserID,WallType)
--Portal 6, ModuleID 1970
VALUES (6,1970,-1,@UserId,'','<p>Hi, I''m an admin and I''m here to help! You can...</p> <ul> <li><a href="http://www.pokerdiy.com/edit-pokerdiy-profile.aspx">Edit your profile</a></li> <li><a href="http://www.pokerdiy.com/find-poker-leagues.aspx">Find a poker league</a> to join</li> <li><a href="http://www.pokerdiy.com/tell-a-friend.aspx">Tell some friends</a> about PokerDIY</li> <li><a href="http://www.pokerdiy.com/faq.aspx">Read the FAQs</a></li> </ul> <p>Still lost? <a href="http://www.pokerdiy.com/poker-forums.aspx">Introduce yourself on the forums</a> or <a href="http://www.pokerdiy.com/poker-player-profile/id/1.aspx">drop me a line on my wall</a>...</p>',GetDate(),GetDate(),1,1,2)
GO
Replace the ModuleID, PortalID and appropriate fields to match your site of course.