misc(notify): Hide notify checkbox in topic for guests ()

* misc(notify): Hide notify checkbox in topic for guests

* Update usercp_viewprofile.tpl
This commit is contained in:
Roman Kelesidis 2025-02-03 21:16:56 +03:00 committed by GitHub
commit 8e4cd97734
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions
styles/templates/default

View file

@ -382,7 +382,7 @@ ajax.callback.group_membership = function(data) {
[ <a href="{U_SEARCH_USER}" class="med">{L_SEARCH_USER_POSTS}</a> ]
[ <a href="{U_SEARCH_TOPICS}" class="med">{L_SEARCH_USER_TOPICS}</a> ]
[ <a href="{U_SEARCH_RELEASES}" class="med">{L_SEARCH_RELEASES}</a> ]
<!-- IF PROFILE_USER || IS_ADMIN -->[ <a href="{U_WATCHED_TOPICS}&{#POST_USERS_URL#}={PROFILE_USER_ID}" class="med">{L_WATCHED_TOPICS}</a> ]<!-- ENDIF -->
<!-- IF $bb_cfg['topic_notify_enabled'] --><!-- IF PROFILE_USER || IS_ADMIN -->[ <a href="{U_WATCHED_TOPICS}&{#POST_USERS_URL#}={PROFILE_USER_ID}" class="med">{L_WATCHED_TOPICS}</a> ]<!-- ENDIF --><!-- ENDIF -->
[ <a title="{L_ATOM_SUBSCRIBE}" href="#" onclick="return post2url('feed.php', {mode: 'get_feed_url', type: 'u', id: {PROFILE_USER_ID}})">{FEED_IMG}</a> ]
</p>
</td>

View file

@ -623,12 +623,14 @@ function build_poll_add_form (src_el)
</td>
</tr>
<!-- IF S_WATCH_TOPIC -->
<tr id="post_opt" class="row2">
<td class="td2 med tCenter pad_4">
<label><input type="checkbox" name="notify" <!-- IF QR_NOTIFY_CHECKED -->checked<!-- ENDIF --> <!-- IF not LOGGED_IN -->disabled<!-- ENDIF --> />
{L_QR_NOTIFY}&nbsp;</label>
</td>
</tr>
<!-- ENDIF -->
</table><!--/topic_quick_reply-->
</form>