{include file='header.tpl'} {* $Id: profile1.tpl 255 2009-11-18 02:21:01Z steve $ *} {literal} {/literal}
Click here for demo - don't chat or anything- just a proof of concept
{* BEGIN LEFT COLUMN *} {* SHOW USER PHOTO *}
{* SHOW PHOTOS OF THIS PERSON *} {if $total_photo_tags != 0} {assign var='showmenu' value='1'} {/if} {* SHOW BUTTONS IF LOGGED IN AND VIEWING SOMEONE ELSE *} {if $owner->user_info.user_id != $user->user_info.user_id} {* SHOW ADD OR REMOVE FRIEND MENU ITEM *} {if $friendship_allowed != 0 && $user->user_exists != 0} {assign var='showmenu' value='1'} {/if} {* SHOW SEND MESSAGE MENU ITEM *} {if ($user->level_info.level_message_allow == 2 || ($user->level_info.level_message_allow == 1 && $is_friend)) && $owner->level_info.level_message_allow != 0} {assign var='showmenu' value='1'} {/if} {* SHOW REPORT THIS PERSON MENU ITEM *} {if $user->user_exists != 0} {assign var='showmenu' value='1'} {/if} {* SHOW BLOCK OR UNBLOCK THIS PERSON MENU ITEM *} {if $user->level_info.level_profile_block != 0} {assign var='showmenu' value='1'} {/if} {/if} {* PLUGIN RELATED PROFILE MENU ITEMS *} {hook_foreach name=profile_menu var=profile_menu_args} {assign var='showmenu' value='1'} {/hook_foreach}
{lang_sprintf id=1204 1=$owner->user_displayname_short 2=$total_photo_tags}
{* JAVASCRIPT FOR CHANGING FRIEND MENU OPTION *} {literal} {/literal}
{lang_print id=839}
{lang_print id=840}
user_blocked($owner->user_info.user_id) == FALSE} style='display: none;'{/if}>{lang_print id=841}
user_blocked($owner->user_info.user_id) == TRUE} style='display: none;'{/if}>{lang_print id=842}
{lang_sprintf id=$profile_menu_args.title 1=$profile_menu_args.title_1 2=$profile_menu_args.title_2}
{include file='footer.tpl'}