mirror of
https://github.com/torrentpier/torrentpier.git
synced 2025-03-12 04:35:42 -07:00
Guests can view polls (#1464)
* Guests can view polls * Update CHANGELOG.md
This commit is contained in:
parent
9cfd3d6a00
commit
8b459e8670
@ -10,6 +10,7 @@
|
||||
- Added preview for country flags while editing [\#1448](https://github.com/torrentpier/torrentpier/pull/1448) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added support for APCu caching method [\#1442](https://github.com/torrentpier/torrentpier/pull/1442) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Some enhancements [\#1445](https://github.com/torrentpier/torrentpier/pull/1445) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Guests can view polls [\#1464](https://github.com/torrentpier/torrentpier/pull/1464) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Fixed quote selection for smiles [\#1457](https://github.com/torrentpier/torrentpier/pull/1457) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
@ -127,8 +127,10 @@ function html2text (str)
|
||||
<table id="poll-votes-block" class="borderless bCenter"></table>
|
||||
|
||||
<!-- IF not POLL_ALREADY_VOTED && SHOW_VOTE_BTN -->
|
||||
<!-- IF !IS_GUEST -->
|
||||
<div id="vote-btn-a" class="mrg_8 tCenter">[ <a href="#" onclick="build_votes(); return false;" class="gen"><b>{L_SUBMIT_VOTE}</b></a> ]</div>
|
||||
<div id="vote-btn-input" class="mrg_6 tCenter" style="display: none;"><input onclick="window.location.reload();" type="button" class="bold" value="{L_CANCEL}" /> <input type="button" onclick="submit_vote(); return false;" value="{L_SUBMIT_VOTE}" class="bold" /></div>
|
||||
<!-- ENDIF -->
|
||||
<!-- ELSEIF not SHOW_VOTE_BTN -->
|
||||
<div class="mrg_8 tCenter">[ <b>{L_NEW_POLL_END}</b> ]</div>
|
||||
<!-- ENDIF -->
|
||||
|
@ -438,7 +438,7 @@ $sel_post_order_ary = [
|
||||
$lang['NEWEST_FIRST'] => 'desc'
|
||||
];
|
||||
|
||||
$topic_has_poll = ($t_data['topic_vote'] && !IS_GUEST);
|
||||
$topic_has_poll = $t_data['topic_vote'];
|
||||
$poll_time_expired = ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days'] * 86400);
|
||||
$can_manage_poll = ($t_data['topic_poster'] == $userdata['user_id'] || $is_auth['auth_mod']);
|
||||
$can_add_poll = ($can_manage_poll && !$topic_has_poll && !$poll_time_expired && !$start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user