This is the code I have used in a Content Editor Web Part to display a “Create Alert” link. It’s probably not the preferred method but it’s what I used to get it working in my environment.
Update: I utilized some of the instructions below from Mike Smith’s Tech Training Notes: http://techtrainingnotes.blogspot.com.au/2011/10/sharepoint-create-alert-from-anywhere.html
The link pops up in a dialog window as if the user selects the same option from the Ribbon.
This is useful if you are hiding the Ribbon from users with Read access or if you are displaying multiple Lists within a Web Part Page.
1: First, from the Alert Me option in the Ribbon and select Manage my Alerts. Click Add Alert to bring up the lists and libraries of the site.
2: Select the list you would like to use for the “Create Alert” link and click Next.
3: When the next page loads, “Listname – New Alert”, copy the URL and paste it into a text editor. The URL should look like this:
4: Add the following to the end of the URL to display the dialog without the master page: &isdlg=1
5: From here copy this URL X 2 into the following bit of code:
6: Copy the code into a text file, upload it to your SharePoint “scripts” folder, copy the link and paste into a Content Editor Web Part.
You should now see this:
When Clicked, a Dialog Popup will display the Create Alert window:
Thanks for reading, any questions, please comment below.