1187 lines
55 KiB
Smarty
1187 lines
55 KiB
Smarty
{include file='header.tpl'}
|
|
{literal}
|
|
<link rel="stylesheet" href="/sam/club/style.css?s=3">
|
|
<link rel="stylesheet" href="/sam/club/clubmembers.css">
|
|
<style>
|
|
div.club_members_result {
|
|
border: 1px solid rgb(240, 159, 9);
|
|
}
|
|
.club_headline {
|
|
padding: 1.5em;
|
|
}
|
|
div.album_item {
|
|
float: left;
|
|
border: 1px solid #534741;
|
|
padding: 10px;
|
|
}
|
|
</style>{/literal}
|
|
{* $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. Click the link below to automatically take it over. Make sure to check out the <a href="https://support.bateworld.com/KnowledgeBase/Folder/3ZEiI9FXCR8saX_XflRwZAN_pQPQA2g0EQxaoZLxqc01?folderId=Yc3OykdFEG_nufs-9bbpKwN_pQPQA2g0EQxaoZLxqc01" target="_blank">clubs & club Media FAQ</a> for some helpful hints. Remember remember all photo and video uploads must depict Verified BateWorld Members and comply with <a href="https://bateworld.com/terms-of-service/" target="_blank">BateWorld Terms of Service</a> and <a href="https://bateworld.com/community-guidelines/" target="_blank">Community Guidelines</a>.
|
|
Ready to run this club? <a href="club.php?club_id={$club->club_info.club_id}&task=adopt">Click here.</a>
|
|
</h3>
|
|
{/if}
|
|
{/if}
|
|
<div class='page_header' style="margin-bottom:5px;"><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">{$club->club_info.club_title}</span> <div class="tooltips"><img src="sam/club/images/jack-of-clubs-orange-01.svg" alt="" class="JOC_logo tiptool" data-container="body" data-toggle="tooltip" title="" data-original-title="Official Jack Off Club"></div></div>
|
|
<br>
|
|
|
|
<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; border: 4px solid orange;'>
|
|
<tr>
|
|
<td class='clubphoto' width='182'><img class='photo' src='{$club->club_photo()}' onerror="this.src='{$imagecdn}/images/nophoto.png'" border='0' /></td>
|
|
</tr>
|
|
</table>
|
|
<div class="clubsocials">
|
|
<ul >
|
|
{if $club->clubvalue_info.clubvalue_3 !=""}
|
|
<li ><a href="https://bsky.app/profile/{$club->clubvalue_info.clubvalue_3}" target="_blank" ><i class="fab fa-bluesky fa-inverse tiptool" data-toggle="tooltip" title="" data-original-title="Bluesky" style="color:white; font-size:15px; font-weight:400;"></i></a></li>
|
|
{/if}
|
|
{if $club->clubvalue_info.clubvalue_2 !=""}
|
|
<li ><a href="{$club->clubvalue_info.clubvalue_2}" target="_blank" ><i class="fa-solid fa-link-simple tiptool" data-toggle="tooltip" title="" data-original-title="Website" style="color:white; font-size:15px; font-weight:400;"></i></a></li>
|
|
{/if}
|
|
{if $club->clubvalue_info.clubvalue_1 !=""}
|
|
<li ><a href="https://x.com/{$club->clubvalue_info.clubvalue_1}" target="_blank" ><i class="fa-brands fa-x-twitter tiptool" data-toggle="tooltip" title="" data-original-title="X" style="color:white; font-size:15px; font-weight:400;"></i></a></li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="clubinfo">
|
|
<div class="clubdetails">Location: {$club->clubvalue_info.clubvalue_4}</div>
|
|
<div class="clubdetails">Established: {$club->clubvalue_info.clubvalue_5}</div>
|
|
<div class="clubdetails">Frequency: {$club->clubvalue_info.clubvalue_6}</div>
|
|
</div>
|
|
<br>
|
|
{php}get_club_events();{/php}
|
|
|
|
|
|
|
|
<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' />-->Edit Club</a>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{if $user->user_points>2}
|
|
{* 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' />-->Join this Club</a>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{/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' />-->Leave Club</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_messages.php?club_id={$club->club_info.club_id}"><!--<img src='./images/icons/club_leave16.gif' border='0' class='icon' />-->Club Inbox</a></td></tr>
|
|
|
|
<tr>
|
|
<td class='profile_menu1'>
|
|
|
|
<a href="club_event_add.php?club_id={$club->club_info.club_id}"><!--<img src='./images/icons/club_leave16.gif' border='0' class='icon' />-->Add Event </a></td></tr>
|
|
{* <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' />-->Unsubscribe to Club</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' />-->Subscribe to Club</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}&user={$club->club_info.owner_username}&objectid={$club->club_info.club_id}&item=club"><!--<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'>Private Club</div>
|
|
You'll need to ask permission to join this club.
|
|
<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}
|
|
{if $club->club_info.displayofficers==0}
|
|
{* SHOW OFFICERS *}
|
|
<table cellpadding='0' cellspacing='0' width='100%' style='margin-top: 10px;'>
|
|
<tr>
|
|
<td class='header'>Club Officers</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 *}
|
|
{/if}
|
|
<div style="margin-top:30px;">
|
|
{literal}
|
|
<script type="text/javascript">
|
|
{/literal}var club_id={$club->club_info.club_id};{literal}
|
|
jQuery(function(){
|
|
{/literal}club_id={$club->club_info.club_id};{literal}
|
|
display_photos(21);setInterval(function() {display_photos(21)}, 120000);
|
|
|
|
});</script>
|
|
<div style="margin-top:30px; border: 4px solid rgb(240, 159, 9);">
|
|
|
|
<div class="sitephoto21"></div>
|
|
</div>
|
|
{/literal}
|
|
{* include_php file=$serverpath|cat:'public_html/ads/clubad.php' *}
|
|
</div>
|
|
|
|
{* 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">Club Details</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}>Club Details</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; padding-top:20px;'>
|
|
|
|
<table cellpadding='0' cellspacing='0' class="group_information">
|
|
<tr><td width='100' valign='top' nowrap='nowrap'>Club Name</td><td class="club_name">{$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 *}{if $club->club_info.category==1}<a href="browse_clubs.php?clubcat_id={$club->club_info.category}">J/O Club</a>{else}<a href="browse_clubs.php?clubcat_id={$club->club_info.category}">Masturbation Event</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>
|
|
|
|
<div id="activities">Loading...</div>
|
|
|
|
</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='group_headline'>Club Members ({$total_members})</div>
|
|
</td>
|
|
<td valign='top' align='right' style="padding-top: 10px; padding-right: 20px;">
|
|
{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>
|
|
|
|
|
|
|
|
<div class="sortby ">
|
|
<div style="font-weight: bold; "><select name="order" class="form-control " fdprocessedid="esrb9f" onchange="document.location.href='club.php?order='+this.options[this.selectedIndex].value+'&club_id={$club->club_info.club_id}&results={$smarty.get.results}&v=members'">
|
|
<option value="online" {if $order=="online"}selected="selected"{/if}>Online</option>
|
|
<option value="recent" {if $order=="recent"}selected="selected"{/if}>Recent Members</option>
|
|
<option value="username" {if $order=="username"}selected="selected"{/if}>Username</option>
|
|
<option value="10" selected>Sort by</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
{* 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}
|
|
<div class="online_members">
|
|
<div class="users_grid">
|
|
{* LOOP THROUGH MEMBERS *}
|
|
{section name=member_loop loop=$members}
|
|
|
|
|
|
|
|
|
|
|
|
{assign var="profilepicture" value=$members[member_loop].member->user_photo("./images/nophoto.png")}
|
|
{$members[member_loop].member->userprofiledot_large($profilepicture, "", "", 1, 0, "", $members[member_loop].member->user_info.user_username)}
|
|
|
|
|
|
|
|
{/section}
|
|
</div></div>
|
|
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
|
|
|
|
{if $maxpage_members > 1}
|
|
<div class='newbrowsepages'>
|
|
<div class="pagenation_numbers">
|
|
{if $p_members != 1}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p-1' p=$p_members}&results={$smarty.get.results}&order={$smarty.get.order}'><span class="white">‹ Previous</span></a><a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1&results={$smarty.get.results}&order={$smarty.get.order}"><span class="white">1</span></a> | {/if}
|
|
{foreach from=$for item=foo}
|
|
<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$foo}&results={$smarty.get.results}&order={$smarty.get.order}'>{$foo}</a>
|
|
{/foreach} |
|
|
<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$maxpage_members}&results={$smarty.get.results}&order={$smarty.get.order}"><span class="white">{$maxpage_members}</span></a>
|
|
{if $p_members != $maxpage_members}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p+1' p=$p_members}&results={$smarty.get.results}&order={$smarty.get.order}'><span class="white">Next ›</span></a>{/if}
|
|
</div>
|
|
<div class="pull-right"><br>
|
|
<br>
|
|
<form>Page <input type="text" name="p" class="gotext" value="{$p_members}" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="v" value="{$v}" />
|
|
<input type="hidden" name="results" value="{$smarty.get.results}" />
|
|
<input type="hidden" name="order" value="{$smarty.get.order}" />
|
|
<input type="submit" value="Go" /></form>
|
|
</div>
|
|
<div class="clear clearfix"></div>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="displayed">
|
|
<div style="font-weight: bold; margin-top: 5px;">Display results <select name="results" class="form-control " fdprocessedid="esrb9f" onchange="document.location.href='club.php?order={$smarty.get.order}&results='+this.options[this.selectedIndex].value+'&club_id={$club->club_info.club_id}&v=members'">
|
|
<option value="1" {if $results=="24"}selected="selected"{/if}>24</option>
|
|
<option value="2" {if $results=="48"}selected="selected"{/if}>48</option>
|
|
<option value="72" {if $results=="72"}selected="selected"{/if}>72</option>
|
|
</select> </div>
|
|
</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='group_headline' style='float: left;'>{lang_print id=1000171} ({$total_albums})<br>
|
|
{*<a href="/club_slideshow.php?club_id={$club->club_info.club_id}">Start Slideshow</a>*}</div>
|
|
|
|
<div style='clear: both; height: 0px;'></div>
|
|
</div>
|
|
<div>
|
|
{if $total_albums > 0}
|
|
|
|
|
|
|
|
{* IF MORE THAN 6 ALBUMS, SHOW VIEW MORE LINKS *}
|
|
{if $total_albums > 6} [ <a href='{$url->url_create('albums', $owner->user_info.user_username)}'>view all</a> ]{/if}
|
|
|
|
{* LOOP THROUGH FIRST 6 ALBUMS *}
|
|
{section name=album_loop loop=$albums}
|
|
|
|
{* SET ALBUM COVER *}
|
|
{if $albums[album_loop].clubalbum_cover_id == 0}
|
|
{assign var='album_cover_src' value='./images/icons/folder_big.gif'}
|
|
{else}
|
|
{* IF IMAGE, GET THUMBNAIL *}
|
|
{if $albums[album_loop].clubalbum_cover_ext == "jpeg" || $albums[album_loop].clubalbum_cover_ext == "jpg" || $albums[album_loop].clubalbum_cover_ext == "gif" || $albums[album_loop].clubalbum_cover_ext == "png" || $albums[album_loop].clubalbum_cover_ext == "bmp"||$albums[album_loop].clubalbum_cover_ext == "JPEG" || $albums[album_loop].clubalbum_cover_ext == "JPG" || $albums[album_loop].clubalbum_cover_ext == "GIF" || $albums[album_loop].clubalbum_cover_ext == "PNG" || $albums[album_loop].clubalbum_cover_ext == "BMP"}
|
|
|
|
|
|
{assign var='album_cover_dir' value=$club->club_dir($club->club_info.club_id)}
|
|
|
|
{*if $albums[album_loop].cloud==1*}
|
|
|
|
{assign var='cleaned_album_cover_dir' value=$album_cover_dir|replace:'./':''}
|
|
|
|
{assign var='album_cover_src' value="`$imagecdn1``$cleaned_album_cover_dir``$albums[album_loop].clubalbum_cover_id`_thumb.`$albums[album_loop].clubalbum_cover_ext`"}
|
|
{assign var='fallbackcover' value="`$imagecdn1``$cleaned_album_cover_dir``$albums[album_loop].clubalbum_cover_id`.`$albums[album_loop].clubalbum_cover_ext`"}
|
|
|
|
{*else}
|
|
{assign var='album_cover_src' value="`$imagecdn``$cleaned_album_cover_dir``$albums[album_loop].clubalbum_cover_id`_thumb.`$albums[album_loop].clubalbum_cover_ext`"}
|
|
{assign var='fallbackcover' value="`$imagecdn``$cleaned_album_cover_dir``$albums[album_loop].clubalbum_cover_id`.`$albums[album_loop].clubalbum_cover_ext`"}
|
|
{/if*}
|
|
|
|
|
|
|
|
{* SET THUMB PATH FOR AUDIO *}
|
|
{elseif $albums[album_loop].clubalbum_cover_ext == "mp3" || $albums[album_loop].clubalbum_cover_ext == "mp4" || $albums[album_loop].clubalbum_cover_ext == "wav"}
|
|
{assign var='album_cover_src' value='./images/icons/audio_big.gif'}
|
|
{* SET THUMB PATH FOR VIDEO *}
|
|
{elseif $albums[album_loop].clubalbum_cover_ext == "mpeg" || $albums[album_loop].clubalbum_cover_ext == "mpg" || $albums[album_loop].clubalbum_cover_ext == "mpa" || $albums[album_loop].clubalbum_cover_ext == "avi" || $albums[album_loop].clubalbum_cover_ext == "swf" || $albums[album_loop].clubalbum_cover_ext == "mov" || $albums[album_loop].clubalbum_cover_ext == "ram" || $albums[album_loop].clubalbum_cover_ext == "rm"}
|
|
{assign var='album_cover_src' value='./images/icons/video_big.gif'}
|
|
{* SET THUMB PATH FOR UNKNOWN *}
|
|
{else}
|
|
{assign var='album_cover_src' value='./images/icons/file_big.gif'}
|
|
{/if}
|
|
{/if}
|
|
|
|
<div class="results">
|
|
<a href="club_album_view.php?club_id={$club->club_info.club_id}&album_id={$albums[album_loop].clubalbum_id}">
|
|
<div class="post_picture">
|
|
<img src='{$album_cover_src}' onerror="this.src='{$fallbackcover}'" alt="">
|
|
</div>
|
|
<div class="post_information">
|
|
<a href="club_album_view.php?club_id={$club->club_info.club_id}&album_id={$albums[album_loop].clubalbum_id}">
|
|
Album: {if $albums[album_loop].clubalbum_title==""}Untitled Album{else}{$albums[album_loop].clubalbum_title|truncate:17:"...":true}{/if}
|
|
</a>
|
|
<div class="date">
|
|
Updated on {if $albums[album_loop].clubalbum_dateupdated > 0}
|
|
{assign var="album_dateupdated" value=$datetime->time_since($albums[album_loop].clubalbum_dateupdated)}
|
|
{capture assign='updateddate'}{lang_sprintf id=$album_dateupdated[0] 1=$album_dateupdated[1]}{/capture}
|
|
{$updateddate}
|
|
{/if}
|
|
</div>{*
|
|
<div class="post_text createdby" style="font-size: 12px;">
|
|
Album created by <a href="">Jockb8laaaaaaaaaaaaaaaaaaar</a>
|
|
</div>*}
|
|
<div class="post_text" style="font-size: 12px; color: rgb(175, 175, 175);">
|
|
{$albums[album_loop].clubalbum_desc|truncate:300:"...":true}
|
|
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<!--
|
|
<div class='album_item' style='width: 45%;{cycle name='rightspacer' values="margin-right: 10px;,"}'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td style='vertical-align: top;'>
|
|
<a href='club_album_view.php?club_id={$club->club_info.club_id}&album_id={$albums[album_loop].clubalbum_id}'><img src='{$album_cover_src}' onerror="this.src='{$fallbackcover}'" border='0' style="width: 75px; height: 75px; object-fit: cover;"></a>
|
|
</td>
|
|
<td class='album_item_info'>
|
|
<div class='album_item_title'><a href='club_album_view.php?club_id={$club->club_info.club_id}&album_id={$albums[album_loop].clubalbum_id}'>{if $albums[album_loop].clubalbum_title==""}Untitled Album{else}{$albums[album_loop].clubalbum_title|truncate:17:"...":true}{/if}</a></div>
|
|
{if $albums[album_loop].clubalbum_dateupdated > 0}
|
|
{assign var="album_dateupdated" value=$datetime->time_since($albums[album_loop].clubalbum_dateupdated)}
|
|
{capture assign='updateddate'}{lang_sprintf id=$album_dateupdated[0] 1=$album_dateupdated[1]}{/capture}
|
|
<div class='album_item_date'>{lang_sprintf id=1000140 1=$updateddate}</div>
|
|
{/if}
|
|
<div style='margin-top: 10px;'>{$albums[album_loop].clubalbum_desc|truncate:75:"...":true}</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{cycle values=",<div name='bottomspacer' style='clear: both; height: 10px;'></div>"}
|
|
-->
|
|
{/section}
|
|
<div style='clear: both; height: 0px;'></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='group_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-right: 20px; padding-top: 20px;'>
|
|
<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>
|
|
{if $maxpage_videos > 1}
|
|
<div class='browse_pages'>
|
|
{if $p_videos != 1}<a href='club.php?club_id={$club->club_info.club_id}&v=videos&p=1'><span class="white arrow">«</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={math equation='p-1' p=$p_videos}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for3 item=foo}
|
|
<a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p_videos != $maxpage_videos}<a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={math equation='p+1' p=$p_videos}'><span class="white arrow">›</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={$maxpage_videos}'><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_videos == $p_end_videos}
|
|
{lang_sprintf id=184 1=$p_start_videos 2=$total_videos}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start_videos 2=$p_end_videos 3=$total_videos}
|
|
{/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="videos" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
<div class="videos_grid">
|
|
|
|
<div class="results_grid">
|
|
{section name=video_loop loop=$videos}
|
|
{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="albums_browse_item1 ">
|
|
<div class="albums_browse_item1_img">
|
|
|
|
|
|
<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}" style="position:relative;height: 100%; display: block;"><img src='{if $videos[video_loop].cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$club->club_dir($club->club_info.club_id)|replace:"./":""}video_{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}images/video_placeholder.gif'" border="0" class="hover videothumbnails lozad">
|
|
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
|
|
|
|
|
|
</a>
|
|
</div>
|
|
|
|
|
|
|
|
<div style="font-weight: bold; font-size: 13px; margin-top:5px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><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="dropdown pull-right">
|
|
<button class="dropdown-toggle kebabdots" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background: none; border: 0px; margin-right: -5px; padding: 0px; display: none;" fdprocessedid="3dvqg">
|
|
<i class="fal fa-ellipsis-vertical fa-fw fa-xl margin-right-md" style="color: var(--example-color-alt); text-rendering: optimizeLegibility;
|
|
"></i>
|
|
|
|
</button>
|
|
<ul class="dropdown-menu dropdown-menukebab">
|
|
|
|
<li><a href="javascript:void(0);" {literal}onclick="jQuery.post('misc_js.php', {
|
|
task:'addtowatchlater',
|
|
videoid: '{/literal}{$videos[video_loop].video_author->user_info.video_id}{literal}',
|
|
type: 5,
|
|
user: '{/literal}{$videos[video_loop].video_author->user_info.user_username}{literal}'
|
|
}){/literal}">Watch Later</a></li>
|
|
<li>
|
|
<a href="user_list.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_author->user_info.video_id}&type=video" data-toggle="modal" data-target="#myModal">Add to List</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div style="font-weight: bold; font-size: 10px; margin-top:5px;"><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_username}</a> <span class="" style="font-size: 10px; font-weight:normal; margin-left:5px;">
|
|
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
{* ENSURE VIDEO TITLE ISN'T BLANK *}
|
|
{cycle values=",,<div style='clear: both; height: 0px;'></div>"}
|
|
|
|
|
|
{/section}
|
|
<div class="clear"></div>
|
|
</div></div>
|
|
{if $maxpage_videos > 1}
|
|
<div class='browse_pages'>
|
|
{if $p_videos != 1}<a href='club.php?club_id={$club->club_info.club_id}&v=videos&p=1'><span class="white arrow">«</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={math equation='p-1' p=$p_videos}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for3 item=foo}
|
|
<a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p_videos != $maxpage_videos}<a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={math equation='p+1' p=$p_videos}'><span class="white arrow">›</span></a> <a href='club.php?club_id={$club->club_info.club_id}&v=videos&p={$maxpage_videos}'><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_videos == $p_end_videos}
|
|
{lang_sprintf id=184 1=$p_start_videos 2=$total_videos}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start_videos 2=$p_end_videos 3=$total_videos}
|
|
{/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="videos" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
<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='group_headline' style='float: left;'>{lang_print id=2000257} ({$total_topics})</div>
|
|
{if $allowed_to_discuss}
|
|
<div style='float: right; padding-right: 20px; padding-top: 20px;'>
|
|
<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'>-->No discussion topics have been started in this club yet.
|
|
|
|
</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='group_discussion_table' style='margin-top: 5px; margin-bottom: 5px;'>
|
|
{section name=topic_loop loop=$topics}
|
|
<tr>
|
|
<td class='group_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='group_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='group_discussion_topic{cycle values="1,1,1,2,2,2"}_end' nowrap='nowrap'>
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
|
<tr>
|
|
|
|
<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="group_headline">Comments (<span class="tc" id="totalcomments">{$total_comments|default:0}</span>)</div>
|
|
{if $user->user_points > 3}
|
|
<form action="#" method="post" onsubmit="submitcommentform(); return updatecount();" id="commentform">
|
|
|
|
<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, a, br</div><div style="text-align: right; margin-top: 5px;">
|
|
|
|
|
|
<input type="submit" id="comment_submit" name="comment_submit" class="button" value="Post Comment" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="task" id="task" value="comment_post"><input type="hidden" name="type" id="type" value="club"><input type="hidden" name="iden" id="iden" value="club_id"><input type="hidden" name="value" id="value" value="{$club->club_info.club_id}"><input type="hidden" name="object_owner" id="object_owner" value="club"><input type="hidden" name="object_owner_id" id="object_owner_id" value="{$club->club_info.club_id}"><input type="hidden" name="tab" id="tab" value="clubs"><input type="hidden" name="col" id="col" value="club"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
|
|
|
|
{/if}
|
|
</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() {
|
|
|
|
jQuery.ajax({
|
|
url: "homestorage/activityfeed.php?show=0&club_id={/literal}{$club->club_info.club_id}{literal}",
|
|
cache: true
|
|
})
|
|
.done(function( html ) {
|
|
jQuery( "#activities" ).html( html );
|
|
});
|
|
|
|
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();*/
|
|
|
|
jQuery("#{/literal}{$owner->user_info.user_username}_profile_comments{literal}").load("{/literal}grabprofilecomments.php?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}", function(responseTxt, statusTxt, xhr){
|
|
if(xhr.state() == "resolved"){
|
|
|
|
// alert(statusTxt);
|
|
}
|
|
else
|
|
{
|
|
e.preventdefault();
|
|
return;
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
<script type="text/javascript">
|
|
var media_id = 0;
|
|
function loadmoreactions(loadfrom)
|
|
{
|
|
jQuery.ajax({
|
|
url: "homestorage/activityfeed.php?show=0&loadfrom="+loadfrom+"&club_id={/literal}{$club->club_info.club_id}{literal}",
|
|
cache: true
|
|
})
|
|
.done(function( html ) {
|
|
jQuery( "#activities" ).append( html );
|
|
});
|
|
}
|
|
/* 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 = document.getElementById('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' name='editCommentForm' id='editCommentForm'>";
|
|
innerHTML += "<textarea name='comment_edit' id='comment_edit_" + commentID + "' style='height: " + height +" px; width: 100%;' onblur='doCommentEditNew("+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);
|
|
jQuery('#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'} |