.id
4509
.gutitle
bn_estate_profile_unfollow
.title
bn_estate_profile_unfollow
.file
.extension
.name
|/routinetype-subutility|
.user_id
7
.notes
.body
<var set = caller.set>
<var D = caller.D>
<var Txt = caller.Txt>
<var Soc = caller.Soc>
<var _balloon = caller._balloon>
<var _color = caller._color>

<var C = GLOBAL.Def.Style.color>


<if set.id EQ client_id>
<!--- you can't unfollow/unfriend yourself --->
<goto url="http://#this_domain#/#get.s1#">
<BREAK>
<elseif listFind("#GLOBAL.Def.Friends.intList#,#GLOBAL.Def.Following.intList#",set.id) EQ 0>
<!--- you're not following them anyway --->
<goto url="http://#this_domain#/#get.s1#">
<BREAK>
</if>






<!--- unfollow/unfriend --->

<if get.s3 EQ "yes">


<var _new = ""> <!--- client --->
<loop list="#GLOBAL.Def.Client.users#" index="x" delimiters="|#CHR(10)#"><if x NEQ set.id>
<var _new = _new & CHR(10) & "|#x#|">
</if></loop>
<update orb="user" where="user.id = #client_id#" users="#_new#">

<var _new2 = ""> <!--- target --->
<loop list="#set.users#" index="x" delimiters="|#CHR(10)#"><if x NEQ client_id>
<var _new2 = _new2 & CHR(10) & "|#x#|">
</if></loop>
<update orb="user" where="user.id = #set.id#" users="#_new#" is_proxy="1">


<span style="display:none;"><!--
<!--- this is hot news. --->
<!--- delete conflicting pings and bullitens --->
<delete orb="bull" where="bull.user_id = #client_id# AND bull.name LIKE ('%|/#set.tbl#-#set.id#|%') AND bull.notes IN ('|follow|','|follow_init|','|follow_notify|','|follow_accept|','|follow_accept_confirm|','|follow_accept_notify|')">
<delete orb="bull" where="bull.giveto_unsignedint = #client_id# AND bull.name LIKE ('%|/user-#client_id#|%') AND bull.notes IN ('|follow|','|follow_init|','|follow_notify|','|follow_accept|','|follow_accept_confirm|','|follow_accept_notify|')">
<delete orb="ping" where="ping.user_id = #client_id# AND ping.name LIKE ('%|/#set.tbl#-#set.id#|%') AND ping.notes IN ('|follow|','|follow_init|','|follow_notify|','|follow_accept|','|follow_accept_confirm|','|follow_accept_notify|')">
<delete orb="ping" where="ping.giveto_unsignedint = #client_id# AND ping.name LIKE ('%|/user-#client_id#|%') AND ping.notes IN ('|follow|','|follow_init|','|follow_notify|','|follow_accept|','|follow_accept_confirm|','|follow_accept_notify|')">
<!--- post a bulliten, only if friendship existed --->
<if listFind(Soc.Friends.intList,client_id) GT 0>
<tag.bn_bull
j='/user-#set.id#,/user-#client_id#'
title='#client_name# - Unfollow (Friendship)'
body='<a href="/#client_id#">#escapeMarkup(client_name)#</a> and <a href="/#set.id#">#D.title#</a> are no longer friends'
type='unfollow_accept'>
</if>
--></span>


<var _pw = 84>

<div>
<div style="float:left; width:#_pw#px;">
<tag.balloon picwidth="#_pw#" bg="#_balloon#" color="#_color#">
</div>
<div style="margin-left:#_pw+8#px;">
<div style="margin-right:2em;">
<if listFind(Soc.Friends.intList,client_id) GT 0>
<!--- friend removed --->
<h3 style="margin:0px; margin-bottom:1em;">
Friend Removed.
</h3>
<p>
You have removed
#D.title# as a friend on Balloon.
</p>
<else>
<!--- friend request declined --->
<h3 style="margin:0px; margin-bottom:1em;">
Request Declined.
</h3>
<p>
You have declined
#Txt.fnames# friend request.
</p>
</if>
</div>
</div>
</div>

<div>&nbsp;</div>

<tag.bn_btn val="Finished With This" slash="">

<else>

<var _pw = 50>

<if listFind(Soc.Friends.intList,client_id) GT 0>

<!--- remove existing friend --->

<tag.bn_subprofile_layout label="Remove #Txt.fname#">

<div>
<div style="float:left; width:#_pw#px;">
<tag.balloon picwidth="#_pw#" bg="#_balloon#" color="#_color#">
</div>
<div style="margin-left:#_pw+8#px;">
<div style="margin-right:2em;">
Do you want to remove #D.title# as a
friend on Balloon?
</div>
</div>
</div>

<div>&nbsp;</div>

<tag.bn_btn val="Remove #Txt.Fname#" slash="#get.s1#/#get.s2#/yes">

</tag.bn_subprofile_layout>


<else>

<!--- decline friend request --->

<tag.bn_subprofile_layout label="Decline Request">

<div>
<div style="float:left; width:#_pw#px;">
<tag.balloon picwidth="#_pw#" bg="#_balloon#" color="#_color#">
</div>
<div style="margin-left:#_pw+8#px;">
<div style="margin-right:2em;">
Are you sure you want to decline
#Txt.fnames# friend request?
</div>
</div>
</div>

<div>&nbsp;</div>

<tag.bn_btn val="Yes, Decline" slash="#get.s1#/#get.s2#/yes">

</tag.bn_subprofile_layout>

</if>

</if>


<if isDefined("get.s4") AND listLen(get.s4,":") EQ 2 AND left(get.s4,4) EQ "rdr:">
<var _cmd = gutitleFormat(listLast(get.s4,":"))>
<if _cmd NEQ "">
<goto url="http://#this_domain#/#_cmd#">
<BREAK>
</if>
</if>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0