Log in with iqtpi
Joelie   New...

qi_people

By Steve Fentriss  (2198 Entries) | 45 days ago
 
Code
tag.
qi_people
 
<!---
To DO:

- it would be cool to have a "suggested" feature (ppl you might like)

--->







<h3>People on iqtpi</h3>

<div style="margin-left:1em;">

<!--- //////////////////////////////////////////////////////// --->

<var _extra = "">
<var _url_extra = "">
<var _html_extra = "">

<if isdefined("get.people_site") AND trim(get.people_site) NEQ "">
<tag.roundedDiv color="##ffa"><small>
<div align="right" style="float:right; width:20%;;">
(<a href="http://#this_domain#/People<if isdefined("get.s2")>/#escapeMarkup(get.s2)#</if>">cancel this</a>)
</div>
<div style="margin-right:24%;">
<if isValidGutitle(get.people_site) NEQ 1 AND NOT isNumeric(get.people_site)>
<b>Invalid Site</b> - iqtpi cannot show users for this site
because the site identifier <b>#escapeMarkup(get.people_site)#</b> is invalid.
<else>
<set j="/site-#get.people_site#.domain">
<setempty>
<b>Site Not Found</b> - iqtpi cannot present users for this site
because the site <b>#escapeMarkup(get.people_site)#</b> could not be found.
</setempty>
<setcrawl>
<!---
<var _href = "http://joelie.org/?&o=#set.id#">
<if trim(set.domain) NEQ "">
<var _href = "http://#escapeMarkup(set.domain)#/">
<elseif trim(set.gutitle) NEQ "">
<var _href = "http://#trim(lcase(set.gutitle))#.joelie.org/">
</if>
--->
<var _href = "http://#this_domain#/j:/site-#set.id#">
<if trim(set.gutitle) NEQ "">
<var _href = "http://#this_domain#/j:/site-#set.gutitle#">
</if>
<var _title = escapeMarkup(set.title)>
<if _title EQ "">
<if trim(set.gutitle) NEQ "">
<var _title = set.gutitle>
<else>
<var _title = "(untitled site)">
</if>
</if>
Showing only users that added
<a href="#_href#"><img src="http://#this_domain#/?&f=site-#set.id#&f2=image-558&picwidth=32" border="0" style="height:0.88em;"></a>
<a href="#_href#">#_title#</a>
<var _extra = ".sites:'|#get.people_site#|'">
<var _url_extra = "?&people_site=#get.people_site#">
<var _html_extra = '<a href="#_href#">#_title#</a>'>
to their list of trusted sites.
</setcrawl>
</set>
</if>
</div>
</small></tag.roundedDiv>
<div>&nbsp;</div>
</if>



<var _tabs = "All">
<real_person>
<if GLOBAL.Def.Followers.total GT 0>
<var _tabs = "Followers" & "," & _tabs>
</if>
<if GLOBAL.Def.Following.total GT 0>
<var _tabs = "Following" & "," & _tabs>
</if>
<if GLOBAL.Def.Friends.total GT 0>
<var _tabs = "Friends" & "," & _tabs>
</if>
</real_person>
<ensure variable="get.s2" value="#listFirst(_tabs)#">
<if listFindNoCase(_tabs,get.s2) EQ 0>
<var get.s2 = listFirst(_tabs)>
</if>
<div id="tabs">
<div id="tabs_head">
<loop list="#_tabs#" index="i">
<a href="http://#this_domain#/#get.s1#/#i##_url_extra#" class="<if get.s2 EQ i>selected</if>">#i#</a>
</loop>
</div>
<div id="tabs_body">

<div>

<if get.s2 EQ "Friends">
<!--- Friends --->
<div style="background:#GLOBAL.Def.Style.color.pri_light#; border-bottom:1px solid ##999; margin:-7px; margin-bottom:0px;">
<div align="center" style="padding:7px;">
<small>
<if _html_extra NEQ "">
Your friends that added #_html_extra# to their list of trusted sites
<else>
Friends: people who follow each other on iqtpi
</if>
</small>
</div>
</div>
<div>&nbsp;</div>
<tag.j j="/user#GLOBAL.Def.Friends.jstr##_extra#" force_set="1">

<elseif get.s2 EQ "Following">
<!--- Following --->
<div style="background:#GLOBAL.Def.Style.color.sec_light#; border-bottom:1px solid ##999; margin:-7px; margin-bottom:0px;">
<div align="center" style="padding:7px;">
<small>
<if _html_extra NEQ "">
People you follow that added #_html_extra# to their list of trusted sites
<else>
Following: people you follow on iqtpi
</if>
</small>
</div>
</div>
<div>&nbsp;</div>
<tag.j j="/user#GLOBAL.Def.Following.jstr##_extra#" force_set="1">

<elseif get.s2 EQ "Followers">
<!--- Followers --->
<div style="background:#GLOBAL.Def.Style.color.ter_light#; border-bottom:1px solid ##999; margin:-7px; margin-bottom:0px;">
<div align="center" style="padding:7px;">
<small>
<if _html_extra NEQ "">
Followers of yours that added #_html_extra# to their list of trusted sites
<else>
Followers: people who follow you on iqtpi
</if>
</small>
</div>
</div>
<div>&nbsp;</div>
<tag.j j="/user#GLOBAL.Def.Followers.jstr##_extra#" force_set="1">

<else>
<!--- All --->
<div style="background:#GLOBAL.Def.Style.color.pri_light#; border-bottom:1px solid ##999; margin:-7px; margin-bottom:0px;">
<div align="center" style="padding:7px;">
<small>
<if _html_extra NEQ "">
All iqtpi users that added #_html_extra# to their list of trusted sites
<else>
All: all iqtpi users
</if>
</small>
</div>
</div>
<div>&nbsp;</div>
<div class="noverflow">
<real_person>
<div style="float:right; width:140px; background:##eee;"><small><small>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<a onmouseover="this.style.background='##800'" onmouseout="this.style.background='##777'" style="display:block; background:##777; text-decoration:none; color:white; border:1px solid black; padding:14px;" href="http://#this_domain#/Invite">Super-Secret Invite Button...<br>DO NOT PRESS.</a>
<div>&nbsp;</div>
<div>&nbsp;</div>
</small></small></div>
</real_person>
<div class="no_options" style="margin-right:164px;">
<tag.j j="/user#_extra#" force_set="1">
</div>
</div>

</if>

</div>

</div>
</div>

</div>
 
qi_people is a page routine.
 
 
x
[]