{include file='header.tpl'} {* $Id: home.tpl 288 2010-01-11 20:17:09Z steve $ *} {* BEGIN LEFT COLUMN *}
{* SHOW LOGIN FORM IF USER IS NOT LOGGED IN *} {if !$user->user_exists}
{lang_print id=659}
{if !empty($setting.setting_login_code)} {/if}
{lang_print id=89}:
{lang_print id=29}:
 

{lang_print id=975}
{capture assign=tip}{lang_print id=691}{/capture}
 
{* SHOW HELLO MESSAGE IF USER IS LOGGED IN *} {else}
{lang_sprintf id=509 1=$user->user_info.user_username}
{lang_sprintf id=510 1=$user->user_displayname_short}
[
{lang_print id=26}
]
{/if} {* SHOW STATUS *} {if $user->level_info.level_profile_status != 0} {lang_javascript ids=773,1113 range=743-747} {literal} {/literal}
{lang_print id=742}
  
{if $user->user_info.user_status != ""} {assign var='status_date' value=$datetime->time_since($user->user_info.user_status_date)} {$user->user_displayname_short} {$user->user_info.user_status}
{lang_print id=1113} {lang_sprintf id=$status_date[0] 1=$status_date[1]}
{else} {/if}
{/if} {* SHOW RECENT NEWS ANNOUNCEMENTS IF MORE THAN ZERO *} {if $news|@count > 0}
{lang_print id=664}
{section name=news_loop loop=$news max=3}
{$news[news_loop].announcement_subject} - {$news[news_loop].announcement_date}
{$news[news_loop].announcement_body}
{/section}
{/if} {* SHOW ONLINE USERS IF MORE THAN ZERO *} {math assign='total_online_users' equation="x+y" x=$online_users[0]|@count y=$online_users[1]} {if $total_online_users > 0}
{lang_print id=665} ({$total_online_users})
{if $online_users[0]|@count == 0} {lang_sprintf id=977 1=$online_users[1]} {else} {capture assign='online_users_registered'}{section name=online_loop loop=$online_users[0]}{if $smarty.section.online_loop.rownum != 1}, {/if} {$online_users[0][online_loop]->user_displayname}{/section}{/capture} {lang_sprintf id=976 1=$online_users_registered 2=$online_users[1]} {/if}
 
{/if} {* SHOW UPCOMING BIRTHDAYS *}
{lang_print id=1176}
{* rgh - 2010-11-16 - removed year from date format string. Was previously backtickdollarsign setting.setting_dateformat backtick *} {section name=birthday_loop loop=$birthdays max=20}
{* {$birthdays[birthday_loop].birthday_user_displayname} - {$datetime->cdate("`$setting.setting_dateformat`", $birthdays[birthday_loop].birthday_date)} *} {$birthdays[birthday_loop].birthday_user_displayname} - {$birthdays[birthday_loop].birthday_date|date_format:"%B %e"}
{sectionelse} {lang_print id=1180} {/section}
{* SHOW LAST LOGINS *}
{* SHOW MOST POPULAR USERS (MOST FRIENDS) *} {if $setting.setting_connection_allow != 0 && FALSE}
{lang_print id=668}
{if !empty($friends)} {section name=friends_loop loop=$friends max=4} {cycle name="startrow2" values=","} {cycle name="endrow2" values=","} {/section}
{if !empty($friends[friends_loop])} {$friends[friends_loop].friend->user_displayname|regex_replace:"/'/":"'"|truncate:15:"...":true}

{lang_sprintf id=669 1=$friends[friends_loop].total_friends} {/if}
{else} {lang_print id=670} {/if}
{/if} {* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *} {if !$user->user_exists}
{/if} {* SHOW Events *} {if $events|@count > 0}
Events
{section name=event_loop loop=$events max=4}
{$events[event_loop].event->event_info.event_title}
{assign var=event_date_start value=$datetime->timezone($events[event_loop].event->event_info.event_date_start, $global_timezone)} {assign var=event_date_end value=$datetime->timezone($events[event_loop].event->event_info.event_date_end, $global_timezone)} {* NO END DATE *} {if !$events[event_loop].event->event_info.event_date_end} {lang_sprintf id=3000203 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start)} {* SAME-DAY EVENT *} {elseif $datetime->cdate("F j, Y", $event_date_start)==$datetime->cdate("F j, Y", $event_date_end)} {lang_sprintf id=3000202 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start) 3=$datetime->cdate($setting.setting_timeformat, $event_date_end)} {* MULTI-DAY EVENT *} {else} {lang_sprintf id=3000204 1=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_start) 2=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_end)} {/if}
{assign var='event_dateupdated' value=$datetime->time_since($events[event_loop].event->event_info.event_dateupdated)}{capture assign="updated"}{lang_sprintf id=$event_dateupdated[0] 1=$event_dateupdated[1]}{/capture} {lang_sprintf id=3000215 1=$events[event_loop].event->event_info.event_totalmembers} - {lang_sprintf id=3000216 1=$events[event_loop].event_creator->user_displayname 2=$url->url_create("profile", $events[event_loop].event_creator->user_info.user_username)}
 
{if $smarty.section.event_loop.rownum < $events|@count && $smarty.section.event_loop.rownum < 4 }
{else}
 
{/if} {/section}
{/if} {* FLESHJACK AD *}
Fleshjack Ad
{* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *} {if !$user->user_exists}
{/if}
{* BEGIN MIDDLE COLUMN *}
{* SHOW RECENT SIGNUPS *}
{* SHOW PUBLIC VERSION OF ACTIVITY LIST *} {if $actions|@count > 0} {* ACTIVITY FEED PREFERENCES *}
{lang_print id=737}{if $setting.setting_actions_preference == 1} {lang_print id=1070}{/if}
{if $setting.setting_actions_preference == 1} {* DIV FOR SPECIFYING ACTION PREFERENCES *} {* JAVACRIPT FOR SPECIFYING ACTION PREFERENCES *} {literal} {/literal} {/if}
{* RECENT ACTIVITY ADVERTISEMENT BANNERS *} {* SHOW ACTIONS *} {section name=actions_loop loop=$actions max=25}
{assign var='action_date' value=$datetime->time_since($actions[actions_loop].action_date)}
{lang_sprintf id=$action_date[0] 1=$action_date[1]}
{assign var='action_media' value=''} {if $actions[actions_loop].action_media !== FALSE}{capture assign='action_media'}{section name=action_media_loop loop=$actions[actions_loop].action_media}{/section}{/capture}{/if} {if $actions[actions_loop].action_actiontype_id==26}{$actions[actions_loop].actionmedia_id}{/if} {if $actions[actions_loop].action_actiontype_id==13}{$actions[actions_loop].actionmedia_id}{/if} {lang_sprintf assign=action_text id=$actions[actions_loop].action_text args=$actions[actions_loop].action_vars} {$action_text|replace:"[media]":$action_media|choptext:150:"
"}
{/section}
{/if} {* SHOW RECENT GROUPS *}
{* RECENT FORUMS *}
Recent Forums
{* LIST CATEGORIES *} {section name=forumcat_loop loop=$forumcats max=4} {if $forumcats[forumcat_loop].forums|@count != 0} {* LIST FORUMS *} {section name=forum_loop loop=$forumcats[forumcat_loop].forums max=1} {* THERE IS A LAST POST IN THIS FORUM *} {if $forumcats[forumcat_loop].forums[forum_loop].lastpost} {* LAST POST AUTHOR EXISTS *} {if $forumcats[forumcat_loop].forums[forum_loop].lastpost_info.author->user_exists}
 
{capture name="thebody"} {$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_excerpt} {/capture} {$smarty.capture.thebody}...
{if $forumcats[forumcat_loop].forums|@count > 1 && $smarty.section.forum_loop.rownum < $forumcats[forumcat_loop].forums|@count}

{/if} {* AUTHOR DOES NOT EXIST *} {else}
 
{capture name="thebody"} {$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_excerpt} {/capture} {$smarty.capture.thebody}...
{if $forumcats[forumcat_loop].forums|@count > 1 && $smarty.section.forum_loop.rownum < $forumcats[forumcat_loop].forums|@count} {/if} {/if} {* NO LAST POST *} {else} {/if} {/section} {/if} {if $smarty.section.forumcat_loop.rownum < 4 && $forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_excerpt==''}

{/if} {/section}
{* LATEST BLOGS *}
Latest Blogs
{* ADS *}
{* BEGIN RIGHT COLUMN CONTENT *}
{* WHAT'S HOT *} {if !empty($whats_hot)}
{lang_print id=9000007}
{$whats_hot}
{/if}
{include file='footer.tpl'}