1877 lines
52 KiB
Smarty
1877 lines
52 KiB
Smarty
{include file='header.tpl'}
|
|
{* $Id: club.tpl 247 2009-11-14 03:30:43Z phil $ *}
|
|
{if $club->user_rank != -1 && $user->user_exists == 1 && (int)$user->level_info.level_club_allow & 2}
|
|
{if $club->club_info.adoption==1 && $task!=adopt}
|
|
<h3>This club is in need of a new club leader. No special skills needed. Want to run it? <a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=PeterRising&to_id=PeterRising">Click here</a>. Include the name of this club in your message.</h3>
|
|
|
|
{/if}
|
|
{/if}
|
|
<div class='page_header' style="height:31px;"><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">{$club->club_info.club_title}</span></div>
|
|
|
|
|
|
|
|
<div class="col-sm-3 norightpadding">
|
|
|
|
{* BEGIN LEFT COLUMN *}
|
|
|
|
|
|
|
|
{* JAVASCRIPT FOR SWITCHING TABS *}
|
|
|
|
{if $club->user_rank != -1}
|
|
|
|
{literal}
|
|
|
|
<script type='text/javascript'>
|
|
|
|
<!--
|
|
|
|
function subscribe_update(is_subscribed)
|
|
|
|
{
|
|
|
|
if(is_subscribed == '1')
|
|
|
|
{
|
|
|
|
$('is_subscribed').style.display = 'none';
|
|
|
|
$('is_unsubscribed').style.display = 'block';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$('is_subscribed').style.display = 'block';
|
|
|
|
$('is_unsubscribed').style.display = 'none';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW PHOTO *}
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
|
|
|
|
<tr>
|
|
|
|
<td class='profile_photo' width='182'><img class='photo' src='{$club->club_photo("./images/nophoto.png")}' border='0' /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table class='profile_menu' cellpadding='0' cellspacing='0' width='100%'>
|
|
|
|
|
|
|
|
{* SHOW EDIT club BUTTON IF ALLOWED *}
|
|
|
|
{if $club->user_rank>=2}
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_club_edit.php?club_id={$club->club_info.club_id}"><!--<img src='./images/icons/club_settings16.gif' border='0' class='button' />-->{lang_print id=2000159}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW JOIN club BUTTON IF NOT ALREADY A MEMBER *}
|
|
|
|
{if $club->user_rank == -1 && $user->user_exists == 1 && (int)$user->level_info.level_club_allow & 2}
|
|
|
|
{if $club->clubmember_info.clubmember_id != 0 && $club->clubmember_info.clubmember_approved != 1}
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<div class='nolink'><!--<img src='./images/icons/club_join16.gif' border='0' class='icon' />-->{lang_print id=2000223}</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{elseif $club->clubmember_info.clubmember_id != 0 && $club->clubmember_info.clubmember_approved == 1}
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_club_manage.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_join16.gif' border='0' class='icon' />-->{lang_print id=2000203}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{else}
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_club_manage.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_join16.gif' border='0' class='icon' />-->{lang_print id=2000165}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{if $club->user_rank<2}
|
|
{if $user->blocked_club($club->club_info.club_id)}
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_club_manage.php?club_id={$club->club_info.club_id}&task=blockclub" data-toggle="modal" data-target="#myModal">Unblock this club</a></td></tr>
|
|
{else}
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_club_manage.php?club_id={$club->club_info.club_id}&task=blockclub" data-toggle="modal" data-target="#myModal">Block this club</a></td></tr>
|
|
{/if}
|
|
|
|
{/if}
|
|
{* SHOW LEAVE club BUTTON IF ALREADY A MEMBER *}
|
|
|
|
{if $club->user_rank != -1}
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_club_manage.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_leave16.gif' border='0' class='icon' />-->{lang_print id=2000160}</a></td></tr>
|
|
|
|
{/if}
|
|
|
|
{if $club->user_rank>=2} <tr>
|
|
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="user_messages_new_club.php?club={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_leave16.gif' border='0' class='icon' />-->Send Message to Members</a></td></tr>
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'>
|
|
<a href="club.php?club_id={$club->club_info.club_id}&task=upforadopt" onclick="return confirm('By clicking this you confirm you are giving up the club to whoever adopts it');">Place club for Adoption</a>
|
|
</td></tr>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW SUBSCRIBE TO THIS club ITEM *}
|
|
|
|
{if $club->user_rank != -1}
|
|
|
|
<tr><td class='profile_menu1'>
|
|
|
|
<div id='is_subscribed'{if !$is_subscribed} style='display: none;'{/if}><a href="user_club_subscribe.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_unsubscribe16.gif' border='0' class='icon' />-->{lang_print id=2000225}</a></div>
|
|
|
|
<div id='is_unsubscribed'{if $is_subscribed} style='display: none;'{/if}><a href="user_club_subscribe.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_subscribe16.gif' border='0' class='icon' />-->{lang_print id=2000224}</a></div>
|
|
|
|
</td></tr>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW INVITE USERS MENU ITEM *}
|
|
|
|
{if $allowed_to_invite}
|
|
|
|
<tr><td class='profile_menu1'><a href="user_club_invite.php?club_id={$club->club_info.club_id}" data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/club_invite16.gif' border='0' class='icon' />-->{lang_print id=2000174}</a></td></tr>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW REPORT THIS club MENU ITEM *}
|
|
|
|
<tr>
|
|
|
|
<td class='profile_menu1'><a data-toggle="modal" data-target="#myModal" href="user_report.php?return_url={$url->url_current()|escape:url}"><!--<img src='./images/icons/report16.gif' class='icon' border='0' />-->{lang_print id=2000226}</a></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
{* DISPLAY IF club IS PRIVATE TO VIEWING USER *}
|
|
|
|
{if $is_club_private != 0}
|
|
|
|
|
|
|
|
{* END LEFT COLUMN *}
|
|
|
|
</div><div class="col-sm-8 profile-right">
|
|
|
|
{* BEGIN RIGHT COLUMN *}
|
|
|
|
|
|
|
|
<!--<img src='./images/icons/error48.gif' border='0' class='icon_big' />-->
|
|
|
|
<div class='page_header'>{lang_print id=2000227}</div>
|
|
|
|
{lang_print id=2000228}<br /><br />
|
|
|
|
{if $club->club_info.club_desc != ""}<table cellpadding='0' cellspacing='0'><tr><td valign='top' nowrap='nowrap' width="100">{lang_print id=2000255}</td><td>{$club->club_info.club_desc}</td></tr></table>{/if}
|
|
|
|
{* DISPLAY ONLY IF club IS NOT PRIVATE TO VIEWING USER *}
|
|
|
|
{else}
|
|
|
|
|
|
|
|
{* SHOW OFFICERS *}
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%' style='margin-top: 10px;'>
|
|
|
|
<tr>
|
|
|
|
<td class='header'>{lang_print id=2000229}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='profile'>
|
|
|
|
{section name=officer_loop loop=$officers}
|
|
|
|
<div>
|
|
|
|
<a href='{$url->url_create("profile", $officers[officer_loop].member->user_info.user_username)}'>{$officers[officer_loop].member->user_displayname}</a>{if $officers[officer_loop].clubmember_rank == 2} {lang_print id=2000230}{/if}
|
|
|
|
{if $officers[officer_loop].clubmember_title != "" && $club->clubowner_level_info.level_club_titles == 1}
|
|
|
|
<div class='club_officer_title'>{$officers[officer_loop].clubmember_title}</div>
|
|
|
|
{/if}
|
|
|
|
{if !$smarty.section.officer_loop.last}<div style='height: 4px;'></div>{/if}
|
|
|
|
</div>
|
|
|
|
{/section}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{* END OFFICERS *}
|
|
|
|
|
|
|
|
{assign var="documentRoot" value=$smarty.server.DOCUMENT_ROOT}
|
|
{include_php file="$documentRoot/ads/clubad.php"}
|
|
|
|
|
|
|
|
{* END LEFT COLUMN *}
|
|
|
|
</div><div class="col-sm-8 profile-right">
|
|
|
|
|
|
|
|
{* BEGIN RIGHT COLUMN *}
|
|
|
|
|
|
|
|
{* JAVASCRIPT FOR SWITCHING TABS *}
|
|
|
|
{literal}
|
|
|
|
<script type='text/javascript'>
|
|
|
|
<!--
|
|
|
|
var visible_tab = '{/literal}{$v}{literal}';
|
|
|
|
function loadclubTab(tabId)
|
|
|
|
{
|
|
|
|
if(tabId == visible_tab)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if( $('club_'+tabId) )
|
|
|
|
{
|
|
|
|
$('club_tabs_'+tabId).className='club_tab2';
|
|
|
|
$('club_'+tabId).style.display = "block";
|
|
|
|
if($('club_tabs_'+visible_tab))
|
|
|
|
{
|
|
|
|
$('club_tabs_'+visible_tab).className='club_tab';
|
|
|
|
$('club_'+visible_tab).style.display = "none";
|
|
|
|
}
|
|
|
|
visible_tab = tabId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
{* SHOW club TAB BUTTONS *}
|
|
|
|
<ul class="nav nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabs">
|
|
|
|
<li {if $v=="club"}class="active"{/if} role="presentation"><a href="https://bateworld.com/club.php?club_id={$club->club_info.club_id}#01" class="jquerycss" aria-controls="01" role="tab" data-toggle="tab" aria-expanded="false">{lang_print id=2000231}</a></li>
|
|
|
|
{if $total_members_all != 0}<li {if $v=="members"}class="active"{/if} role="presentation"><a href="https://bateworld.com/club.php?club_id={$club->club_info.club_id}#02" class="jquerycss" aria-controls="02" role="tab" data-toggle="tab" aria-expanded="false">{lang_print id=2000118}</a></li>{/if}
|
|
|
|
|
|
|
|
{if $allowed_to_upload != 0 || $total_files != 0}
|
|
|
|
<li {if $v=="photos"}class="active"{/if} role="presentation" ><a href="https://bateworld.com/club.php?club_id={$club->club_info.club_id}#03" class="jquerycss" aria-controls="03" role="tab" data-toggle="tab" aria-expanded="false">{lang_print id=2000232}</a></li>
|
|
|
|
{/if}
|
|
|
|
{if $allowed_to_upload != 0 || $total_files != 0}
|
|
|
|
<li {if $v=="videos"}class="active"{/if} role="presentation" ><a href="https://bateworld.com/club.php?club_id={$club->club_info.club_id}#04" class="jquerycss" aria-controls="04" role="tab" data-toggle="tab" aria-expanded="false">Videos</a></li>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $allowed_to_discuss != 0 || $total_topics != 0}
|
|
|
|
<li {if $v=="discussions"}class="active"{/if} role="presentation" ><a href="https://bateworld.com/club.php?club_id={$club->club_info.club_id}#05" class="jquerycss" aria-controls="05" role="tab" data-toggle="tab" aria-expanded="false">{lang_print id=2000233}</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $allowed_to_comment == 1 || $total_comments != 0}
|
|
|
|
<li {if $v=="comments"}class="active"{/if} role="presentation" ><a href="https://bateworld.com/club.php?club_id={$club->club_info.club_id}#06" class="jquerycss" aria-controls="06" role="tab" data-toggle="tab" aria-expanded="false">{lang_print id=854}</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="visible-xs visible-sm hidden-md hidden-lg">Select Tab:<br />
|
|
|
|
<select class="mb10 form-control form-custom visible-xs visible-sm hidden-md hidden-lg tabdropdown" id="tab_selector" onchange="jQuery('.form-tabs li a').eq(jQuery(this).val()).tab('show');">
|
|
|
|
<option value="0" {if $v=="club"}selected="selected"{/if}>{lang_print id=2000231}</option>
|
|
|
|
{if $total_members_all != 0}<option value="01" {if $v=="members"}selected="selected"{/if}>{lang_print id=2000118}</option>{/if}
|
|
|
|
|
|
|
|
{if $allowed_to_upload != 0 || $total_files != 0}
|
|
|
|
<option value="02" {if $v=="photos"}selected="selected"{/if}>{lang_print id=2000232}</option>
|
|
|
|
{/if}
|
|
|
|
{if $allowed_to_upload != 0 || $total_files != 0}
|
|
|
|
<option value="03" {if $v=="videos"}selected="selected"{/if}>Videos</option>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $allowed_to_discuss != 0 || $total_topics != 0}
|
|
|
|
<option value="04" {if $v=="discussions"}selected="selected"{/if}>{lang_print id=2000233}</option>
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $allowed_to_comment == 1 || $total_comments != 0}
|
|
|
|
<option value="05" {if $v=="comments"}selected="selected"{/if}>{lang_print id=854}</option>
|
|
|
|
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='profile_content tab-content'>
|
|
|
|
|
|
|
|
|
|
|
|
{* club TAB *}
|
|
|
|
<div id='01' class="tab-pane fade {if $v=='club'} active in {/if} tabpadding" role="tabpanel">
|
|
|
|
|
|
|
|
{* SHOW club INFORMATION *}
|
|
|
|
<div style='margin-bottom: 10px;'>
|
|
|
|
<div class='club_headline'>{lang_print id=2000254}</div>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr><td width='100' valign='top' nowrap='nowrap'>{lang_print id=2000094}</td><td>{$club->club_info.club_title}</td></tr>
|
|
|
|
{if $club->club_info.club_desc != ""}<tr><td valign='top' nowrap='nowrap'>{lang_print id=2000255}</td><td>{$club->club_info.club_desc}</td></tr>{/if}
|
|
|
|
<tr>
|
|
|
|
<td valign='top' nowrap='nowrap'>{lang_print id=2000256}</td>
|
|
|
|
<td>{if $clubcat_info.subcat_dependency == 0}<a href='browse_clubs.php?clubcat_id={$clubcat_info.subcat_id}'>{lang_print id=$clubcat_info.subcat_title}</a>{else}<a href='browse_clubs.php?clubcat_id={$clubcat_info.cat_id}'>{lang_print id=$clubcat_info.cat_title}</a> - <a href='browse_clubs.php?clubcat_id={$clubcat_info.subcat_id}'>{lang_print id=$clubcat_info.subcat_title}</a>{/if}</td>
|
|
|
|
</tr>
|
|
|
|
{section name=cat_loop loop=$cats}
|
|
|
|
{section name=field_loop loop=$cats[cat_loop].fields}
|
|
|
|
<tr>
|
|
|
|
<td valign='top' nowrap='nowrap'>{lang_print id=$cats[cat_loop].fields[field_loop].field_title}:</td>
|
|
|
|
<td><div class='profile_field_value'>{$cats[cat_loop].fields[field_loop].field_value_formatted}</div></td>
|
|
|
|
</tr>
|
|
|
|
{/section}
|
|
|
|
{/section}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{* SHOW RECENT ACTIVITY *}
|
|
|
|
{if $actions|@count > 0}
|
|
|
|
<div style='margin-bottom: 10px;'>
|
|
|
|
<div class='club_headline'>{lang_print id=2000253}</div>
|
|
|
|
{section name=actions_loop loop=$actions max=20}
|
|
|
|
<div id='action_{$actions[actions_loop].action_id}' class='profile_action'>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr>
|
|
|
|
<td valign='top'><!--<img src='./images/icons/{$actions[actions_loop].action_icon}' border='0' class='icon'>--></td>
|
|
|
|
<td valign='top' width='100%'>
|
|
|
|
<div class='profile_action_date'>
|
|
|
|
{assign var='action_date' value=$datetime->time_since($actions[actions_loop].action_date)}
|
|
|
|
{lang_sprintf id=$action_date[0] 1=$action_date[1]}
|
|
|
|
</div>
|
|
|
|
{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}<a href='{$actions[actions_loop].action_media[action_media_loop].actionmedia_link}'><img data-src='{$actions[actions_loop].action_media[action_media_loop].actionmedia_path}' border='0' width='{$actions[actions_loop].action_media[action_media_loop].actionmedia_width}' class='recentaction_media lozad'></a>{/section}{/capture}{/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:50:"<br>"}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{/section}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{* END RECENT ACTIVITY *}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{* END club TAB *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* MEMBERS TAB *}
|
|
|
|
{if $total_members_all != 0}
|
|
|
|
<div id='02' class="tab-pane fade {if $v=='members'} active in {/if} tabpadding" role="tabpanel">
|
|
|
|
|
|
|
|
{* JAVASCRIPT FOR CHANGING FRIEND MENU OPTION *}
|
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
function friend_update(status, id) {
|
|
|
|
if(status == 'pending') {
|
|
|
|
if($('addfriend_'+id))
|
|
|
|
$('addfriend_'+id).style.display = 'none';
|
|
|
|
} else if(status == 'remove') {
|
|
|
|
if($('addfriend_'+id))
|
|
|
|
$('addfriend_'+id).style.display = 'none';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
|
|
|
<tr>
|
|
|
|
<td valign='top'>
|
|
|
|
<div class='club_headline'>{lang_print id=2000220} ({$total_members})</div>
|
|
|
|
</td>
|
|
|
|
<td valign='top' align='right'>
|
|
|
|
{if $search == ""}
|
|
|
|
<div id='club_members_searchbox_link'>
|
|
|
|
<a href='javascript:void(0);' onClick="$('club_members_searchbox_link').style.display='none';$('club_members_searchbox').style.display='block';$('club_members_searchbox_input').focus();">{lang_print id=2000221}</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<div id='club_members_searchbox' style='text-align: right;{if $search == ""} display: none;{/if}'>
|
|
|
|
<form action='club.php' method='post'>
|
|
|
|
<input type='text' maxlength='100' size='30' class='text' name='search' value='{$search}' id='club_members_searchbox_input' />
|
|
|
|
<input type='submit' class='button' value='{lang_print id=646}' />
|
|
|
|
<input type='hidden' name='p' value='{$p_members}' />
|
|
|
|
<input type='hidden' name='v' value='members' />
|
|
|
|
<input type='hidden' name='club_id' value='{$club->club_info.club_id}' />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
Sort By: <select name="order" onchange="document.location.href='club.php?order='+this.options[this.selectedIndex].value+'&club_id={$club->club_info.club_id}&v=members'">
|
|
|
|
<option value="online" {if $smarty.get.order=="online"}selected="selected"{/if}>Online</option>
|
|
|
|
<option value="recent" {if $smarty.get.order=="recent"}selected="selected"{/if}>Recent Members</option>
|
|
|
|
<option value="username" {if $smarty.get.order=="username"}selected="selected"{/if}>Username</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
{* DISPLAY NO RESULTS MESSAGE *}
|
|
|
|
{if $search != "" && $total_members == 0}
|
|
|
|
<br>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr><td class='result'>
|
|
|
|
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon'>-->{lang_print id=2000222}
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
|
|
|
|
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
{if $maxpage_members > 1}
|
|
|
|
<div class='browse_pages'>
|
|
|
|
{if $p_members != 1}<a href="{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p=1&order={$smarty.get.order}"><span class="white arrow">«</span></a> <a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={math equation="p-1" p=$p_members}&order={$smarty.get.order}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
|
|
| {foreach from=$for item=foo}
|
|
|
|
<a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={$foo}&order={$smarty.get.order}'>{$foo}</a>
|
|
|
|
{/foreach} |
|
|
|
|
{if $p_members != $maxpage_members}<a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={math equation="p+1" p=$p_members}&order={$smarty.get.order}'><span class="white arrow">›</span></a> <a href="{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={$maxpage_members}&order={$smarty.get.order}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
|
|
<br /><span style="font-weight:normal;">{if $p_start_members == $p_end_members}
|
|
|
|
{lang_sprintf id=184 1=$p_start_members 2=$total_members}
|
|
|
|
{else}
|
|
|
|
{lang_sprintf id=185 1=$p_start_members 2=$p_end_members 3=$total_members}
|
|
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="order" value="{$smarty.get.order}" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* LOOP THROUGH MEMBERS *}
|
|
|
|
{section name=member_loop loop=$members}
|
|
|
|
<div class='club_members_result' style='overflow: hidden;'>
|
|
|
|
<div class='club_members_photo'>
|
|
|
|
<a href='{$url->url_create("profile",$members[member_loop].member->user_info.user_username)}'>
|
|
{assign var="profilepicture" value=$members[member_loop].member->user_photo("./images/nophoto.png")}
|
|
{$members[member_loop].member->userprofiledot($profilepicture, "90px", "90px")}
|
|
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class='profile_friend_info'>
|
|
|
|
<div class='profile_friend_name'><a href='{$url->url_create("profile",$members[member_loop].member->user_info.user_username)}'>{$members[member_loop].member->user_displayname}</a></div>
|
|
|
|
<div class='profile_friend_details'>
|
|
|
|
{if $members[member_loop].member->user_info.user_dateupdated != 0}<div>{lang_print id=849} {assign var='last_updated' value=$datetime->time_since($members[member_loop].member->user_info.user_dateupdated)}{lang_sprintf id=$last_updated[0] 1=$last_updated[1]}</div>{/if}
|
|
|
|
|
|
|
|
{capture assign='member_rank'}{if $members[member_loop].clubmember_rank == 2}{lang_print id=2000179}{elseif $members[member_loop].clubmember_rank == 1 && $club->clubowner_level_info.level_club_officers == 1}{lang_print id=2000180}{/if}{/capture}
|
|
|
|
<div>{if $members[member_loop].clubmember_title != "" && $club->clubowner_level_info.level_club_titles == 1}{lang_sprintf id=2000182 1=$member_rank 2=$members[member_loop].clubmember_title}{elseif $member_rank != ""}{lang_sprintf id=2000178 1=$member_rank}{/if}</div>
|
|
|
|
{if $members[member_loop].member->online_now() == 1}<div style='color:white;'><!--<img src='./images/icons/online16.gif' border='0' class='icon2'>-->{lang_print id=1086}</div>{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='profile_friend_options'>
|
|
|
|
{if !$members[member_loop].member->is_viewers_friend && !$members[member_loop].member->is_viewer_blocklisted && $members[member_loop].member->user_info.user_id != $user->user_info.user_id && $user->user_exists != 0}<div id='addfriend_{$members[member_loop].member->user_info.user_id}'><a href="user_friends_manage.php?user={$members[member_loop].member->user_info.user_username}" data-toggle="modal" data-target="#myModal">{lang_print id=838}</a></div>{/if}
|
|
|
|
{if !$members[member_loop].member->is_viewer_blocklisted && ($user->level_info.level_message_allow == 2 || ($user->level_info.level_message_allow == 1 && $members[member_loop].member->is_viewers_friend)) && $members[member_loop].member->user_info.user_id != $user->user_info.user_id}<a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user={$members[member_loop].member->user_info.user_username}&to_id={$members[member_loop].member->user_info.user_username}">{lang_print id=839}</a>{/if}
|
|
|
|
</div>
|
|
|
|
<div style='clear: both;'></div>
|
|
|
|
</div>
|
|
|
|
{if !$smarty.section.member_loop.last}<div style='clear: both; height: 8px;'></div>{/if}
|
|
|
|
{/section}
|
|
|
|
|
|
|
|
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
|
|
|
|
|
|
|
|
{if $maxpage_members > 1}
|
|
|
|
<div class='browse_pages'>
|
|
|
|
{if $p_members != 1}<a href="{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p=1&order={$smarty.get.order}"><span class="white arrow">«</span></a> <a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={math equation="p-1" p=$p_members}&order={$smarty.get.order}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
|
|
| {foreach from=$for item=foo}
|
|
|
|
<a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={$foo}&order={$smarty.get.order}'>{$foo}</a>
|
|
|
|
{/foreach} |
|
|
|
|
{if $p_members != $maxpage_members}<a href='{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={math equation="p+1" p=$p_members}&order={$smarty.get.order}'><span class="white arrow">›</span></a> <a href="{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}&v=members&search={$search}&p={$maxpage_members}&order={$smarty.get.order}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
|
|
<br /><span style="font-weight:normal;">{if $p_start_members == $p_end_members}
|
|
|
|
{lang_sprintf id=184 1=$p_start_members 2=$total_members}
|
|
|
|
{else}
|
|
|
|
{lang_sprintf id=185 1=$p_start_members 2=$p_end_members 3=$total_members}
|
|
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="order" value="{$smarty.get.order}" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{* END MEMBERS TAB *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* BEGIN PHOTOS TAB *}
|
|
|
|
{if $allowed_to_upload != 0 || $total_files != 0}
|
|
|
|
|
|
|
|
{* PHOTOS TAB *}
|
|
|
|
<div id='03' class="tab-pane fade {if $v=='photos'} active in {/if} tabpadding" role="tabpanel">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class='club_headline' style='float: left;'>Photos (<span id='club_{$club->club_info.club_id}_totalfiles'>{$total_files}</span>)<br>
|
|
|
|
<a href="/club_slideshow.php?club_id={$club->club_info.club_id}">Start Slideshow</a></div>
|
|
{if $allowed_to_upload}
|
|
|
|
<div style='float: right; padding-left: 10px;'>
|
|
|
|
<a href="javascript:opendivmodaliframe('user_club_upload.php?club_id={$club->club_info.club_id}');"><!--<img src='./images/icons/club_addimages16.gif' border='0' class='button' style='float: left;'>-->{lang_print id=2000251}</a>
|
|
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
{if $maxpage_files > 1}
|
|
<div class='browse_pages'>
|
|
{if $p_files != 1}<a href='club.php?club_id={$club->club_info.club_id}&v=photos&p=1'><span class="white arrow">«</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={math equation='p-1' p=$p_files}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for2 item=foo}
|
|
<a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p_files != $maxpage_files}<a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={math equation='p+1' p=$p_files}'><span class="white arrow">›</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={$maxpage_files}'><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start_files == $p_end_files}
|
|
{lang_sprintf id=184 1=$p_start_files 2=$total_files}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start_files 2=$p_end_files 3=$total_files}
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="v" value="photos" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
|
|
{section name=files_loop loop=$files}
|
|
|
|
|
|
|
|
{* ENSURE VIDEO TITLE ISN'T BLANK *}
|
|
|
|
{* IF IMAGE, GET THUMBNAIL *}
|
|
|
|
{if $files[files_loop].clubmedia_ext == "jpeg" || $files[files_loop].clubmedia_ext == "jpg" || $files[files_loop].clubmedia_ext == "gif" || $files[files_loop].clubmedia_ext == "png" || $files[files_loop].clubmedia_ext == "bmp" || $files[files_loop].clubmedia_ext == "bmp"||$files[files_loop].clubmedia_ext == "JPEG" || $files[files_loop].clubmedia_ext == "JPG" || $files[files_loop].clubmedia_ext == "GIF" || $files[files_loop].clubmedia_ext == "PNG" || $files[files_loop].clubmedia_ext == "BMP" || $files[files_loop].clubmedia_ext == "BMP"}
|
|
{assign var='file_dir' value=$club->club_dir($club->club_info.club_id)}
|
|
{assign var='file_src' value="`$file_dir``$files[files_loop].clubmedia_id`.`$files[files_loop]`_thumb.`clubmedia_ext`}
|
|
{if $file_src|file_exists eq ''}
|
|
{assign var='file_src' value="`$file_dir``$files[files_loop].clubmedia_id`.`$files[files_loop].clubmedia_ext`}
|
|
|
|
{/if}
|
|
|
|
{* SET THUMB PATH FOR AUDIO *}
|
|
{elseif $files[files_loop].clubmedia_ext == "mp3" || $files[files_loop].clubmedia_ext == "mp4" || $files[files_loop].clubmedia_ext == "wav"}
|
|
{assign var='file_src' value='./images/icons/audio_big.gif'}
|
|
{* SET THUMB PATH FOR VIDEO *}
|
|
{elseif $files[files_loop].clubmedia_ext == "mpeg" || $files[files_loop].clubmedia_ext == "mpg" || $files[files_loop].clubmedia_ext == "mpa" || $files[files_loop].clubmedia_ext == "avi" || $files[files_loop].clubmedia_ext == "swf" || $files[files_loop].clubmedia_ext == "mov" || $files[files_loop].clubmedia_ext == "ram" || $files[files_loop].clubmedia_ext == "rm"}
|
|
{assign var='file_src' value='./images/icons/video_big.gif'}
|
|
{* SET THUMB PATH FOR UNKNOWN *}
|
|
{else}
|
|
{assign var='file_src' value='./images/icons/file_big.gif'}
|
|
{/if}
|
|
|
|
{* START NEW ROW *}
|
|
{cycle name="startrow" values=",,,,"}
|
|
{* SHOW THUMBNAIL *}
|
|
<div class="col-xs-3 photoalbumcontainer" style="margin-left:13px; margin-right:13px;">
|
|
{$files[files_loop].clubmedia_title|truncate:20:"...":true}
|
|
<div class='album_thumb4' style='text-align: center; vertical-align: middle;'>
|
|
<a href='club_album_file.php?club_id={$club->club_info.club_id}&clubmedia_id={$files[files_loop].clubmedia_id}'><img data-src='{$file_src}' border='0' class="albumphoto lozad"></a>
|
|
</div>
|
|
</div>
|
|
{* END ROW AFTER 5 RESULTS *}
|
|
{if $smarty.section.files_loop.last == true}
|
|
|
|
{else}
|
|
{cycle name="endrow" values=",,,,"}
|
|
{/if}
|
|
|
|
|
|
|
|
{/section}
|
|
|
|
<div class="clear"></div><br>
|
|
|
|
{if $maxpage_files > 1}
|
|
<div class='browse_pages'>
|
|
{if $p_files != 1}<a href='club.php?club_id={$club->club_info.club_id}&v=photos&p=1'><span class="white arrow">«</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={math equation='p-1' p=$p_files}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for2 item=foo}
|
|
<a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p_files != $maxpage_files}<a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={math equation='p+1' p=$p_files}'><span class="white arrow">›</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=photos&p={$maxpage_files}'><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start_files == $p_end_files}
|
|
{lang_sprintf id=184 1=$p_start_files 2=$total_files}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start_files 2=$p_end_files 3=$total_files}
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="v" value="photos" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="clear"></div></div>
|
|
|
|
{/if}
|
|
|
|
{* END PHOTOS TAB *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* BEGIN PHOTOS TAB *}
|
|
|
|
{if $allowed_to_upload != 0 || $total_files != 0}
|
|
|
|
|
|
|
|
{* PHOTOS TAB *}
|
|
|
|
<div id='04' class="tab-pane fade {if $v=='videos'} active in {/if} tabpadding" role="tabpanel">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class='club_headline' style='float: left;'>Videos (<span id='club_{$club->club_info.club_id}_totalfiles'>{$total_videos}</span>)</div>
|
|
|
|
{if $allowed_to_upload}
|
|
|
|
<div style='float: right; padding-left: 10px;'>
|
|
|
|
<a href="javascript:opendivmodaliframe('club_video_upload.php?club_id={$club->club_info.club_id}');">
|
|
<!--<img src='./images/icons/club_addimages16.gif' border='0' class='button' style='float: left;'>-->Add New Videos</a>
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
|
|
</div>
|
|
|
|
<div class="">
|
|
|
|
{section name=video_loop loop=$videos}
|
|
|
|
|
|
|
|
{* ENSURE VIDEO TITLE ISN'T BLANK *}
|
|
|
|
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
|
|
|
|
|
|
|
|
<div class='videoTab col-sm-5'>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr>
|
|
|
|
<td style='vertical-align: top;'>
|
|
|
|
<a href='video_club.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&club_id={$club->club_info.club_id}'><img data-src='{if $videos[video_loop].video_thumb}{$club->club_dir($club->club_info.club_id)}video_{$videos[video_loop].video_id}_thumb.jpg{else}./images/video_placeholder.gif{/if}' border='0' style="width: 80px; height:80px;" class="lozad"></a>
|
|
|
|
</td>
|
|
|
|
<td style='vertical-align: top; padding-left: 5px;'>
|
|
|
|
<div class='video_row_title'><a href='video_club.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&club_id={$club->club_info.club_id}'>{$video_title|truncate:55:'...':true}</a></div>
|
|
|
|
<div class='video_row_info'>
|
|
|
|
|
|
|
|
{$videos[video_loop].total_comments} comment{if $videos[video_loop].total_comments!=1}s{/if} - {$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{section name=full_loop start=0 loop=$videos[video_loop].video_rating_full}
|
|
|
|
<img data-src='./images/icons/video_rating_full_small.gif' border='0' class="lozad">
|
|
|
|
{/section}
|
|
|
|
{if $videos[video_loop].video_rating_part}<img data- src='./images/icons/video_rating_part_small.gif' border='0' class="lozad">{/if}
|
|
|
|
{section name=none_loop start=0 loop=$videos[video_loop].video_rating_none}
|
|
|
|
<img data-src='./images/icons/video_rating_none_small.gif' border='0' class="lozad">
|
|
|
|
{/section}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{cycle values=","}
|
|
|
|
|
|
|
|
{/section}
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div></div>
|
|
|
|
{/if}
|
|
|
|
{* END PHOTOS TAB *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* DISCUSSION TAB *}
|
|
|
|
{if $allowed_to_discuss != 0 || $total_topics != 0}
|
|
|
|
|
|
|
|
<div id='05' class="tab-pane fade {if $v=='discussions'} active in {/if} tabpadding" role="tabpanel">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class='club_headline' style='float: left;'>{lang_print id=2000257} ({$total_topics})</div>
|
|
|
|
{if $allowed_to_discuss}
|
|
|
|
<div style='float: right;'>
|
|
|
|
<a href='club_discussion_post.php?club_id={$club->club_info.club_id}'><!--<img src='./images/icons/club_discussion_post16.gif' border='0' class='button' style='float: left;'>-->{lang_print id=2000258}</a>
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{* DISPLAY NO RESULTS MESSAGE *}
|
|
|
|
{if $total_topics == 0}
|
|
|
|
<br>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr><td class='result'>
|
|
|
|
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon'>-->{lang_print id=2000259}
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
{if $maxpage_topics > 1}
|
|
<div class='browse_pages'>
|
|
{if $p_topics != 1}<a href="club.php?club_id={$club->club_info.club_id}&v=discussions&p=1"><span class="white arrow">«</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=discussions&p={math equation='p-1' p=$p_topics}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for1 item=foo}
|
|
<a href='club.php?club_id={$club->club_info.club_id}&v=discussions&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p_topics != $maxpage_topics}<a href='club.php?club_id={$club->club_info.club_id}&v=discussions&p={math equation='p+1' p=$p_topics}'><span class="white arrow">›</span></a> <a href="club.php?club_id={$club->club_info.club_id}&v=discussions&search={$search}&m={$m}&p={$maxpage_topics}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start_topics == $p_end_topics}
|
|
{lang_sprintf id=184 1=$p_start_topics 2=$total_topics}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start_topics 2=$p_end_topics 3=$total_topics}
|
|
{/if}</span><br />
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="v" value="discussions" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%' class='club_discussion_table' style='margin-top: 5px; margin-bottom: 5px;'>
|
|
|
|
{section name=topic_loop loop=$topics}
|
|
|
|
<tr>
|
|
|
|
<td class='club_discussion_topic{cycle values="1,1,1,2,2,2"}' nowrap='nowrap' style='text-align: center;' width='40'>
|
|
|
|
{lang_sprintf id=2000260 1=$topics[topic_loop].total_posts-1}
|
|
|
|
</td>
|
|
|
|
<td class='club_discussion_topic{cycle values="1,1,1,2,2,2"}'>
|
|
|
|
<table cellpadding='0' cellspacing='0'>
|
|
|
|
<tr>
|
|
|
|
<td style='vertical-align: top;'>
|
|
|
|
{if !$topics[topic_loop].clubtopic_closed}
|
|
|
|
<div><!--<img src='./images/icons/club_discussion16.gif' border='0' class='icon'>--></div>
|
|
|
|
{else}
|
|
|
|
<div><!--<img src='./images/icons/club_discussion_closed16.gif' border='0' class='icon'>--></div>
|
|
|
|
{/if}
|
|
|
|
{if $topics[topic_loop].clubtopic_sticky}
|
|
|
|
<div><!--<img src='./images/icons/club_discussion_stickied16.gif' border='0' class='icon' />--></div>
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
<td style='vertical-align: top;'>
|
|
|
|
<div style='font-weight: bold;'>
|
|
|
|
<a href='{$url->url_create("club_discussion", $smarty.const.NULL, $club->club_info.club_id, $topics[topic_loop].clubtopic_id)}'>
|
|
|
|
{$topics[topic_loop].clubtopic_subject}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div style='color: #777777; font-size: 9px;'>
|
|
|
|
{assign var='datecreated_vars' value=$datetime->time_since($topics[topic_loop].clubtopic_date)}
|
|
|
|
{capture assign='datecreated'}{lang_sprintf id=$datecreated_vars[0] 1=$datecreated_vars[1]}{/capture}
|
|
|
|
{if $topics[topic_loop].creator->user_exists}
|
|
|
|
{lang_sprintf id=2000261 1=$datecreated 2=$url->url_create('profile', $topics[topic_loop].creator->user_info.user_username) 3=$topics[topic_loop].creator->user_displayname}
|
|
|
|
{else}
|
|
|
|
{if $topics[topic_loop].clubtopic_creatoruser_id != 0}
|
|
|
|
{capture assign='creator'}{lang_print id=1071}{/capture}
|
|
|
|
{else}
|
|
|
|
{capture assign='creator'}{lang_print id=835}{/capture}
|
|
|
|
{/if}
|
|
|
|
{lang_sprintf id=2000261 1=$datecreated 2=$creator}
|
|
|
|
{/if}
|
|
|
|
- {lang_sprintf id=2000262 1=$topics[topic_loop].clubtopic_views}
|
|
|
|
{if $club->user_rank == 2 || $club->user_rank == 1}
|
|
|
|
- [ <a href='javascript:void(0);' onClick="confirmDelete('{$topics[topic_loop].clubtopic_id}')">{lang_print id=155}</a> ]
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td class='club_discussion_topic{cycle values="1,1,1,2,2,2"}_end' nowrap='nowrap'>
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
|
|
|
<tr>
|
|
|
|
<td width='1'>
|
|
|
|
<img data-src='{if $topics[topic_loop].lastposter->user_exists}{$topics[topic_loop].lastposter->user_photo("./images/nophoto.png", TRUE)}{else}./images/nophoto.png{/if}' class='photo lozad' width='35' height='35' />
|
|
|
|
</td>
|
|
|
|
<td style='padding-left: 8px;'>
|
|
|
|
<div>
|
|
|
|
{if $topics[topic_loop].lastposter->user_exists}
|
|
|
|
{lang_sprintf id=2000263 1=$url->url_create("club_discussion_post", $smarty.const.NULL, $club->club_info.club_id, $topics[topic_loop].clubtopic_id, $topics[topic_loop].clubpost_id) 2=$url->url_create('profile', $topics[topic_loop].lastposter->user_info.user_username) 3=$topics[topic_loop].lastposter->user_displayname}
|
|
|
|
{else}
|
|
|
|
{if $topics[topic_loop].clubpost_authoruser_id != 0}
|
|
|
|
{capture assign='lastposter'}{lang_print id=1071}{/capture}
|
|
|
|
{else}
|
|
|
|
{capture assign='lastposter'}{lang_print id=835}{/capture}
|
|
|
|
{/if}
|
|
|
|
{lang_sprintf id=2000265 1=$url->url_create("club_discussion_post", $smarty.const.NULL, $club->club_info.club_id, $topics[topic_loop].clubtopic_id, $topics[topic_loop].clubpost_id) 2=$lastposter}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{assign var="clubpost_date" value=$datetime->time_since($topics[topic_loop].clubpost_date)}
|
|
|
|
{lang_sprintf id=$clubpost_date[0] 1=$clubpost_date[1]}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/section}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
{if $maxpage_topics > 1}
|
|
|
|
<div class='browse_pages'>
|
|
{if $p_topics != 1}<a href="club.php?club_id={$club->club_info.club_id}&v=discussions&p=1"><span class="white arrow">«</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=discussions&p={math equation='p-1' p=$p_topics}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for1 item=foo}
|
|
<a href='club.php?club_id={$club->club_info.club_id}&v=discussions&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p_topics != $maxpage_topics}<a href='club.php?club_id={$club->club_info.club_id}&v=discussions&p={math equation='p+1' p=$p_topics}'><span class="white arrow">›</span></a> <a href="club.php?club_id={$club->club_info.club_id}&v=discussions&search={$search}&m={$m}&p={$maxpage_topics}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start_topics == $p_end_topics}
|
|
{lang_sprintf id=184 1=$p_start_topics 2=$total_topics}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start_topics 2=$p_end_topics 3=$total_topics}
|
|
{/if}</span><br />
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="club_id" value="{$club->club_info.club_id}" /><input type="hidden" name="v" value="discussions" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{if $club->user_rank == 2 || $club->user_rank == 1}
|
|
|
|
{* JAVASCRIPT FOR CONFIRMING DELETION *}
|
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
var topic_id = 0;
|
|
|
|
function confirmDelete(id) {
|
|
|
|
topic_id = id;
|
|
opendivmodal('confirmdelete');
|
|
|
|
}
|
|
|
|
|
|
|
|
function deleteTopic() {
|
|
|
|
window.location = '{/literal}{$url->url_create("club", $smarty.const.NULL, $club->club_info.club_id)}{literal}&v=discussions&p={/literal}{$p_topics}{literal}&task=topic_delete&clubtopic_id='+topic_id;
|
|
|
|
}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
|
|
|
|
{* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
|
|
|
|
<div style='display: none;' id='confirmdelete'>
|
|
|
|
<div style='margin-top: 10px;'>
|
|
|
|
{lang_print id=2000267}
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<input type='button' class='button' value='{lang_print id=175}' onClick='parent.deleteTopic();closemodal();'> <input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
{* END DISCUSSION *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* BEGIN COMMENTS TAB *}
|
|
|
|
{if $allowed_to_comment != 0 || $total_comments != 0}
|
|
|
|
|
|
|
|
|
|
|
|
{* SHOW COMMENT TAB *}
|
|
|
|
<div id='06' class="tab-pane fade {if $v=='comments'} active in {/if} tabpadding" role="tabpanel">
|
|
|
|
|
|
|
|
{* COMMENTS *}
|
|
|
|
{if $allowed_to_comment}
|
|
|
|
<div id="profile_{$media_info.media_id}_postcomment"><div class="comment_headline">Comments (<span class="tc" id="totalcomments">{$total_comments|default:0}</span>)</div>
|
|
|
|
|
|
|
|
<form action="misc_js.php" method="post" target="ajaxframe" onsubmit="updatecount();"><div class="profile_postcomment"><textarea name="comment_body" id="comment_body" cols="25" class="comment_area" style="overflow: hidden; height: 70px;" placeholder="Write Something..."></textarea><div style="margin-top: 5px;">Allowed HTML Tags: b, img, a, br</div><div style="text-align: right; margin-top: 5px;">
|
|
|
|
|
|
|
|
<input type="submit" id="comment_submit" class="button" value="Post Comment" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="task" value="comment_post"><input type="hidden" name="type" value="club"><input type="hidden" name="iden" value="club_id"><input type="hidden" name="value" value="{$club->club_info.club_id}"><input type="hidden" name="object_owner" value="club"><input type="hidden" name="object_owner_id" value="{$club->club_info.club_id}"><input type="hidden" name="tab" value="clubs"><input type="hidden" name="col" value="club"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>{/if}
|
|
|
|
<div id="{$owner->user_info.user_username}_profile_comments" style='margin-left: auto; margin-right: auto;'></div>
|
|
|
|
|
|
|
|
{lang_javascript ids=39,155,175,182,183,184,185,187,784,787,829,830,831,832,833,834,835,854,856,891,1025,1026,1032,1034,1071}
|
|
|
|
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
<style type='text/css'>
|
|
|
|
div.comment_headline {
|
|
|
|
font-size: 13px;
|
|
|
|
margin-bottom: 7px;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 0px;
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
color: #555555;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{/literal}
|
|
|
|
{literal}
|
|
|
|
<script type="text/javascript" src="/js/jquery.autogrow-textarea.js"></script>
|
|
|
|
<script>
|
|
|
|
jQuery(function() {
|
|
loadXMLDoc(1);
|
|
jQuery('#comment_body').autogrow();
|
|
|
|
});
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
loadXMLDoc(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="/js/jquery.autogrow-textarea.js"></script>
|
|
|
|
<script>
|
|
function loadXMLDoc(page)
|
|
|
|
{
|
|
|
|
var xmlhttp;
|
|
|
|
|
|
|
|
if (window.XMLHttpRequest)
|
|
|
|
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
|
|
|
xmlhttp=new XMLHttpRequest();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{// code for IE6, IE5
|
|
|
|
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
}
|
|
|
|
xmlhttp.onreadystatechange=function()
|
|
|
|
{
|
|
|
|
|
|
|
|
if (xmlhttp.readyState==4 && xmlhttp.status==200)
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("{/literal}{$owner->user_info.user_username}_profile_comments{literal}").innerHTML=xmlhttp.responseText;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xmlhttp.open("GET","{/literal}grabprofilecomments.php?user={$owner->user_info.user_username}&url={$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING!=""}?{$smarty.server.QUERY_STRING|urlencode}{/if}&p="+page+"&type=club&tab=clubs&col=club&object_owner=club&object_owner_id={$club->club_info.club_id}&focus=club_id&club_id={$club->club_info.club_id}{literal}",true);
|
|
|
|
|
|
|
|
|
|
|
|
xmlhttp.send();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var media_id = 0;
|
|
|
|
|
|
|
|
jQuery('#ajaxframe').load(function(){
|
|
|
|
loadXMLDoc(1);
|
|
|
|
|
|
|
|
document.getElementById('comment_body').value="";
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function editComment1(commentID)
|
|
|
|
{
|
|
|
|
//var commentContainerElement = $(this.options.type + '_' + this.options.typeID + '_comments');
|
|
|
|
//var commentElement = commentContainerElement.getElement('profile_comment_body_' + commentID);
|
|
|
|
var commentElement = $('profile_comment_body_' + commentID);
|
|
|
|
|
|
|
|
var height = commentElement.offsetHeight + 10;
|
|
|
|
var commentText = commentElement.innerHTML.replace(/<br>/gi, '\r\n').replace(/>/gi, '>');
|
|
|
|
|
|
|
|
var innerHTML = '';
|
|
|
|
innerHTML += "<form action='misc_js.php' method='post' target='ajaxframe' name='editCommentForm' id='editCommentForm'>";
|
|
|
|
innerHTML += "<textarea name='comment_edit' id='comment_edit_" + commentID + "' style='height: " + height +" px; width: 100%;' onblur='doCommentEdit("+commentID+")'>" + commentText + "</textarea>";
|
|
|
|
innerHTML += "<input type='hidden' name='task' value='comment_edit'>";
|
|
|
|
innerHTML += "<input type='hidden' name='comment_id' value='" + commentID + "'>";
|
|
|
|
|
|
|
|
innerHTML += "<input type='hidden' name='type' value='club'>";
|
|
|
|
innerHTML += "<input type='hidden' name='iden' value='club_id'>";
|
|
|
|
innerHTML += "<input type='hidden' name='value' value='{/literal}{$club->club_info.club_id}{literal}'>";
|
|
|
|
|
|
|
|
innerHTML +=
|
|
|
|
'<input type="hidden" name="tab" value="users">';
|
|
|
|
|
|
|
|
innerHTML +=
|
|
|
|
'<input type="hidden" name="col" value="user">';
|
|
|
|
|
|
|
|
/* if( this.options.typeTabParent ) innerHTML +=
|
|
|
|
'<input type="hidden" name="tab_parent" value="' + this.options.typeTabParent + '">';
|
|
|
|
|
|
|
|
if( this.options.typeColParent ) innerHTML +=
|
|
|
|
'<input type="hidden" name="col_parent" value="' + this.options.typeColParent + '">';
|
|
|
|
|
|
|
|
if( this.options.typeChild ) innerHTML +=
|
|
|
|
'<input type="hidden" name="child" value="1">';
|
|
|
|
*/
|
|
|
|
|
|
|
|
innerHTML += "</form>";
|
|
|
|
|
|
|
|
|
|
|
|
// Inject
|
|
|
|
commentElement.innerHTML = innerHTML;
|
|
|
|
textarea_autogrow('comment_edit_' + commentID);
|
|
|
|
$('comment_edit_' + commentID).focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
loadXMLDoc(1);
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
{* END COMMENTS *}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{* END PRIVACY IF STATEMENT *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{* END RIGHT COLUMN *}
|
|
|
|
</div><div class="clearfix"></div><br>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
{include file='footer.tpl'} |