Warning: The author of this contribution does not provide support for it anymore.

Prevent Topic View Increase by Author

Prevent for specific user - Prevent Topic View Increase by Author

Prevent for specific user

by [email protected] » Tue Apr 18, 2023 4:18 pm

Hi,

i use this :

First is prevent for author
Second prevent for "Administrators"

if (isset($user->data['session_page']) && $user->data['user_id'] != $topic_data['topic_poster'] && (strpos($user->data['session_page'], '&t=' . $topic_id) === false || isset($user->data['session_created'])))

if (isset($user->data['session_page']) && !$user->data['is_bot'] && !$auth->acl_get('a_') && $user->data['user_id'] != $topic_data['topic_poster'] && (strpos($user->data['session_page'], '&t=' . $topic_id) === false || isset($user->data['session_created'])))


Can you help me with add script to prevent for specific user ?
User Name : "Name Surname"

Thank you
[email protected]
Registered User
Posts: 15
Joined: Wed Mar 01, 2023 3:28 pm