<var C = GLOBAL.Def.Style.color>
<fake_person>
<h2>Log In to Post</h2>
<tag.spf_login>
<BREAK>
</fake_person>
<if client_id NEQ 7>
<goto url="http://#this_domain#/">
<BREAK>
</if>
<ensure variable="get.s2" value="">
<if get.s2 EQ "">
<div style="padding:7px; border-radius:7px; background:white;">
<h2>New...</h2>
<big><big><ul>
<loop list="text,pic,steveclip,secretclip" index="x">
<li><a href="http://#this_domain#/#get.s1#/#x#">/#x#</a></li>
</loop>
</ul></big></big>
</div>
<BREAK>
</if>
<div style="padding:7px; border-radius:7px; background:white;">
<postform>
<postsuccess>
<if get.s2 EQ "video" AND POST.n1_name EQ "">
<delete orb="video" where="video.id = #POST_N.n1.status#">
<goto url="http://#this_domain#/#so_slash_string#">
<BREAK>
</if>
<var _email_txt = 'I just posted a new #get.s2# on Fentriss.com! Check it out!'>
<if isDefined("POST.n1_title") AND POST.n1_title EQ "" AND isDefined("POST.n1_gutitle") AND POST.n1_gutitle NEQ "">
<var POST.n1_title = POST.n1_gutitle>
<update orb="#get.s2#" where="#get.s2#.gutitle = '#POST.n1_gutitle#'" title="#POST.n1_title#">
</if>
<var _ttl = "">
<if isDefined("POST.n1_title")><var _ttl = escapeMarkup(POST.n1_title)></if>
<var _guttl = "">
<if isDefined("POST.n1_gutitle") AND POST.n1_gutitle NEQ "" AND isValidGutitle(POST.n1_gutitle) EQ 1><var _guttl = lcase(POST.n1_gutitle)></if>
<h3 style="color:#C.sec#;">Posted /#get.s2#</h3>
<big><p>
<a href="http://#this_domain#/post">Again</a>
|
<if get.s2 EQ "text">
<a href="http://#this_domain#/blog"><b>View Blog Post</b></a>
<if _ttl NEQ "">
<var _email_txt = 'I just wrote a new blog post, titled "#_ttl#". Check it out on Fentriss.com!'>
<else>
<var _email_txt = 'I just wrote a new blog post on Fentriss.com! Check it out!'>
</if>
<elseif get.s2 EQ "pic">
<a href="http://#this_domain#/photos"><b>View Photo</b></a>
<if _ttl NEQ "">
<var _email_txt = 'I just added a photo called "#_ttl#". Check it out on Fentriss.com today!'>
<else>
<var _email_txt = 'I just added a photo to Fentriss.com! Check it out!'>
</if>
<elseif get.s2 EQ "steveclip">
<a href="http://#this_domain#/club/steveclips"><b>View SteveClip</b></a>
<if _ttl NEQ "">
<var _email_txt = 'I just added a SteveClip called "#_ttl#". Check it out on Fentriss.com today!'>
<else>
<var _email_txt = 'I just added a SteveClip to Fentriss.com! Check it out!'>
</if>
<elseif get.s2 EQ "secretclip">
<a href="http://#this_domain#/secretclips"><b>View Secret Clips</b></a>
<var _email_txt = 'I just posted a secret clip.'>
</if>
</p></big>
<IF get.s2 EQ "steveclip">
<!---
SteveClips use the audience meter system
--->
<var _link_s1 = "">
<if isDefined("POST.n1_name")>
<if POST.n1_name EQ "|stuffed_animals|">
<var _link_s1 = "stuffed_animals">
<elseif POST.n1_name EQ "|rock_star|">
<var _link_s1 = "rock_star">
<elseif POST.n1_name EQ "|demo_fentriss|">
<var _link_s1 = "demo_fentriss">
</if>
</if>
<var _emails = "">
<var _ae_required = 15>
<if isDefined("POST.ae_required_unsignedint") AND isNumeric(POST.ae_required_unsignedint)>
<var _ae_required = POST.ae_required_unsignedint>
</if>
<!--- email the audience members of the previous clip --->
<var _prev_steveclip_jstr = "">
<var _prev_steveclip_title = "">
<var _prev_steveclip_aerequired = 0>
<set orb="steveclip" where="steveclip.ae_required_unsignedint > 0" select="steveclip.id,steveclip.title,steveclip.ae_required_unsignedint" orderby="steveclip.so_dateinserted DESC" maxrows="1">
<setcrawl>
<var _prev_steveclip_jstr = "/#set.tbl#-#set.id#">
<var _prev_steveclip_title = set.title>
<var _prev_steveclip_aerequired = set.ae_required_unsignedint>
</setcrawl>
</set>
<if _prev_steveclip_jstr NEQ "">
<set orb="ae" select="ae.id, ae.myemail" where="ae.user_id = 7 AND ae.name = '|#_prev_steveclip_jstr#|'" is_proxy="1" maxrows="9999">
<setcrawl>
<!--<email to="#set.myemail#" subject="New Video!" from="steve">Hey #escapeMarkup(listFirst(trim(set.myemail),"@"))#,
Guess what! I've posted a new video here:
http://fentriss.com/#_link_s1#/#_guttl#
We're going to need a lot of audience members!
Check it out! Tell your friends!
- Steve
--
PS. I'm sending this to you because you joined the audience of my last video, #escapeMarkup(_prev_steveclip_title)#.
</email>-->
</setcrawl>
</set>
</if>
<ELSEIF get.s2 EQ "video">
<!---
Videos use club steve mailing list, on behalf of their blogger.
--->
<var _blgutitle = replace(POST.n1_name,"|","","all")>
<var _Blogger = QueryNew('id')>
<set j="/user-#_blgutitle#.fname">
<setcrawl>
<var _Blogger = set>
<if isValidGutitle(_Blogger.fname) EQ 0 OR find("_",_Blogger.fname) GT 0>
<var QuerySetCell(_Blogger,"fname",listFirst(_Blogger.fname," _"),1)>
</if>
</setcrawl>
</set>
<set orb="user" select="user.name,user.email,user.emailoptout_protected" where="user.sites LIKE ('%|spf|%')" maxrows="9999" is_proxy="1">
<setcrawl>
<var _did_opt_out = 0>
<if _did_opt_out EQ 0>
<var _fname = escapeMarkup(listFirst(set.name,' '))>
<var _subject = "New #escapeMarkup(_Blogger.fname)# Video">
<!--<email to="#set.email#" from="steve" subject="#_subject#">Hey #_fname#,
#_Blogger.fname# Fentriss has posted a new video!
Check it out at:
http://#_Blogger.gutitle#.fentriss.com/
Enjoy!
- Steve
--
Want to change email settings?
Log in and visit this page:
http://fentriss.com/my_settings
--</email>-->
</if>
</setcrawl>
</set>
<ELSE>
<!---
Other posts use the club steve mailing list
--->
<set orb="user" select="user.name,user.email,user.emailoptout_protected" where="user.sites LIKE ('%|spf|%')" maxrows="9999" is_proxy="1">
<setcrawl>
<var _did_opt_out = 0>
<var _opt_out_term = "invalid">
<if get.s2 EQ "text">
<var _opt_out_term = "spf_private_blog_posts">
<elseif get.s2 EQ "pic">
<var _opt_out_term = "spf_exclusive_photos">
<elseif get.s2 EQ "steveclip">
<var _opt_out_term = "spf_exclusive_steveclips">
</if>
<if listFindNoCase(set.emailoptout_protected,_opt_out_term,"|#CHR(10)#") GT 0>
<var _did_opt_out = 1>
</if>
<if _did_opt_out EQ 0>
<var _fname = escapeMarkup(listFirst(set.name,' '))>
<var _subject = "New Stuff">
<!--<email to="#set.email#" from="steve" subject="#_subject#">Hey #_fname#,
#_email_txt#
Here's a link to log in:
http://fentriss.com/
Enjoy!
- Steve
--
Want to change email settings?
Log in and visit this page:
http://fentriss.com/my_settings
--</email>-->
</if>
</setcrawl>
</set>
</IF>
</postsuccess>
<postfail>
<div style="padding:7px; border:2px solid red;">
<h3>Post Fail:</h3>
<p>
#POST_N.n1.status#
</p>
</div>
</postfail>
<postneutral>
<h3><a href="http://#this_domain#/post">POST</a> > /#get.s2#</h3>
<div style="margin-left:1em;">
<if get.s2 EQ "text">
<div>
<div><b>Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_title" value="<if isDefined("POST.n1_title")>#escapeDoubleQuotes(POST.n1_title)#</if>">
</div>
</div>
<div>
<div><b>Unique Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_gutitle" value="<if isDefined("POST.n1_gutitle")>#escapeDoubleQuotes(POST.n1_gutitle)#</if>">
</div>
</div>
<div>
<div><b>Blog Post:</b></div>
<div style="padding:3px;">
<textarea name="1_body" id="1_body" class="fcode_me" style="width:80%; height:15em;"><if NOT isDefined("POST.n1_body")><loop from="1" to="3" index="y"><p>#CHR(10)##CHR(9)##CHR(10)#</p>#CHR(10)#</loop><else>#escapeMarkup(POST.n1_body)#</if></textarea>
</div>
</div>
<div>
<div><b>Secret Story:</b></div>
<div style="padding:3px;">
<textarea name="1_secretstory_protected" class="fcode_me" style="width:80%; height:15em;"><if isDefined("POST.n1_secretstory_protected")>#escapeMarkup(POST.n1_secretstory_protected)#</if></textarea>
</div>
</div>
<input type="hidden" name="1_notes" value="|spf|">
<elseif get.s2 EQ "pic">
<div>
<div><b>Photo File:</b></div>
<div style="padding:3px;">
<input type="file" name="1_file">
</div>
</div>
<div>
<div><b>Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_title" value="<if isDefined("POST.n1_title")>#escapeDoubleQuotes(POST.n1_title)#</if>">
</div>
</div>
<div>
<div><b>Unique Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_gutitle" value="<if isDefined("POST.n1_gutitle")>#escapeDoubleQuotes(POST.n1_gutitle)#</if>">
</div>
</div>
<div>
<div><b>Photo Caption:</b></div>
<div style="padding:3px;">
<textarea name="1_notes" style="width:80%; height:7em;"><if isDefined("POST.n1_notes")>#escapeMarkup(POST.n1_notes)#</if></textarea>
</div>
</div>
<div>
<div><b>Secret Story:</b></div>
<div style="padding:3px;">
<textarea name="1_secretstory_protected" class="fcode_me" style="width:80%; height:15em;"><if isDefined("POST.n1_secretstory_protected")>#escapeMarkup(POST.n1_secretstory_protected)#</if></textarea>
</div>
</div>
<elseif get.s2 EQ "steveclip">
<div>
<div><b>Audience:</b></div>
<div style="padding:3px;">
<input type="text" name="1_ae_required_unsignedint" value="<if isDefined("POST.n1_ae_required_unsignedint")>#escapeDoubleQuotes(POST.n1_ae_required_unsignedint)#<else>15</if>">
</div>
</div>
<div>
<div><b>Type:</b></div>
<div style="padding:3px;">
<select name="1_name">
<option value="">(category)</option>
<option value="|rock_star|"<if isDefined("POST.n1_name") AND POST.n1_name EQ "|rock_star|"> selected</if>>Rock Star</option>
<option value="|stuffed_animals|"<if isDefined("POST.n1_name") AND POST.n1_name EQ "|stuffed_animals|"> selected</if>>Stuffed Animals</option>
</select>
</div>
</div>
<div>
<div><b>FLV File:</b></div>
<div style="padding:3px;">
<input type="file" name="1_file">
</div>
</div>
<div>
<div><b>Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_title" value="<if isDefined("POST.n1_title")>#escapeDoubleQuotes(POST.n1_title)#</if>">
</div>
</div>
<div>
<div><b>Unique Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_gutitle" value="<if isDefined("POST.n1_gutitle")>#escapeDoubleQuotes(POST.n1_gutitle)#</if>">
</div>
</div>
<div>
<div><b>Thumbnail:</b></div>
<div style="padding:3px;">
<input type="text" name="1_thumbnail" value="<if isDefined("POST.n1_thumbnail")>#escapeDoubleQuotes(POST.n1_thumbnail)#<else>/image-</if>">
</div>
</div>
<div>
<div><b>Notes:</b></div>
<div style="padding:3px;">
<textarea name="1_notes" style="width:80%; height:7em;"><if isDefined("POST.n1_notes")>#escapeMarkup(POST.n1_notes)#</if></textarea>
</div>
</div>
<div>
<div><b>Secret Story:</b></div>
<div style="padding:3px;">
<textarea name="1_secretstory_protected" class="fcode_me" style="width:80%; height:15em;"><if isDefined("POST.n1_secretstory_protected")>#escapeMarkup(POST.n1_secretstory_protected)#</if></textarea>
</div>
</div>
<elseif get.s2 EQ "video">
<div>
<div><b>Audience:</b></div>
<div style="padding:3px;">
<input type="text" name="1_ae_required_unsignedint" value="<if isDefined("POST.n1_ae_required_unsignedint")>#escapeDoubleQuotes(POST.n1_ae_required_unsignedint)#<else>15</if>">
</div>
</div>
<div>
<div><b>Blogger:</b></div>
<div style="padding:3px;">
<select name="1_name">
<option value="">(select)</option>
<set j="/user.organization:'Steve Fentriss'.spfcats:'|videos|'" orderby="user.name ASC">
<setcrawl>
<option value="|#set.gutitle#|"<if isDefined("POST.n1_name") AND POST.n1_name EQ "|#set.gutitle#|"> selected</if>>#lcase(set.gutitle)#</option>
</setcrawl>
</set>
</select>
</div>
</div>
<div>
<div><b>FLV File:</b></div>
<div style="padding:3px;">
<input type="file" name="1_file">
</div>
</div>
<div>
<div><b>Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_title" value="<if isDefined("POST.n1_title")>#escapeDoubleQuotes(POST.n1_title)#</if>">
</div>
</div>
<div>
<div><b>Unique Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_gutitle" value="<if isDefined("POST.n1_gutitle")>#escapeDoubleQuotes(POST.n1_gutitle)#</if>">
</div>
</div>
<div>
<div><b>Thumbnail:</b></div>
<div style="padding:3px;">
<input type="text" name="1_thumbnail" value="<if isDefined("POST.n1_thumbnail")>#escapeDoubleQuotes(POST.n1_thumbnail)#<else>/image-</if>">
</div>
</div>
<div>
<div><b>Notes:</b></div>
<div style="padding:3px;">
<textarea name="1_notes" style="width:80%; height:7em;"><if isDefined("POST.n1_notes")>#escapeMarkup(POST.n1_notes)#</if></textarea>
</div>
</div>
<elseif get.s2 EQ "secretclip">
<div>
<div><b>FLV File:</b></div>
<div style="padding:3px;">
<input type="file" name="1_file">
</div>
</div>
<div>
<div><b>Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_title" value="<if isDefined("POST.n1_title")>#escapeDoubleQuotes(POST.n1_title)#</if>">
</div>
</div>
<div>
<div><b>Unique Title:</b></div>
<div style="padding:3px;">
<input type="text" name="1_gutitle" value="<if isDefined("POST.n1_gutitle")>#escapeDoubleQuotes(POST.n1_gutitle)#</if>">
</div>
</div>
<div>
<div><b>Password:</b></div>
<div style="padding:3px;">
<input type="text" name="1_pswd" value="<if isDefined("POST.n1_pswd")>#escapeDoubleQuotes(POST.n1_pswd)#<else></if>">
</div>
</div>
<div>
<div><b>Notes:</b></div>
<div style="padding:3px;">
<textarea name="1_notes" style="width:80%; height:7em;"><if isDefined("POST.n1_notes")>#escapeMarkup(POST.n1_notes)#</if></textarea>
</div>
</div>
<input type="hidden" name="1_user_key_id" value="5" style="display:none;">
</if>
<div> </div>
<div align="left" style="margin-left:1em;" class="pagebtn">
<input class="button" type="submit" value="Submit Post" style="cursor:pointer;">
</div>
</div>
<input type="hidden" name="1_posttype" value="INSERT">
<input type="hidden" name="1_orb" value="#get.s2#">
</postneutral>
</postform>
</div>