quiero instalar un news letter en mi pagina de nuke pero no entiendo este tutorial,alguien me ayuda?
Note:
The user will be able to unsubscribe via the email message.
Installation:
1. add this line on includes\inc_right.cfm where ever you want the module to appear:
<p><cfinclude template="../NewsLetter/newsletter.cfm"> </p>
2. add the following code to the top of your root\index.cfm:
<!--- This code adds them to the DB --->
<cfif isdefined ("form.newsletter">
<CFQUERY datasource="#dsn#">
INSERT INTO tbl_cfnuke_NewsSubscriptions (email)
VALUES ('#form.emailaddy#')
</CFQUERY>
<BODY onLoad="javascript:alert('Thank you for registering for our News Letter.')">
<!--- The puts them back where they came from --->
<cfset sector = url.sector>
<cfset page = url.page>
</cfif>
<!--- This code removes them from DB --->
<cfif isdefined ("url.unsubscribe">
<CFQUERY NAME="RemoveSub" DATASOURCE="#dsn#">
DELETE From tbl_cfnuke_NewsSubscriptions
WHERE ID IN (#url.unsubscribe#)
</CFQUERY>
<BODY onLoad="javascript:alert('You will not recieve our News Letter anymore.')">
</cfif>
3. open admin\admin.cfm and add to the first table (where all the links are) this:
<td><a href="index.cfm?sector=admin&page=admin&app=../newsletter/index"><img src="images/admin_newsletter_mgr.gif" width="100" height="14" border="0"></a></td>
4. copy the image in the images folder to your root\images.cfm
5. merge the database tables into your database
6. copy the Newsletter folder to your root folder
###############
BIG NOTE:
I use #SiteURL# quite a bit i recommend setting it on your application.cfm
add:
<cfparam name="siteurl" default="#getsitesettings.fld_siteURL#">
This has to come after the query..
<cfquery name="getsitesettings" datasource="#dsn#">
select *
from tbl_cfnuke_sitesettings
</cfquery>
If you dont set SITEURL on this module change line 69 of newsletter\index.cfm