Member Profile Views
-
- Users
- Posts: 63
- Joined: 04 Jan 2019, 00:51
Re: Member Profile Views
Hi,
i am not familiar with the php syntax. How to change the event to not count user id 2 profile visits?
I am user ID 2 and i need to check profiles for spam, fake mail adresses but don't want to activate the counter event so i want to exclude my id
ORIGINAL:
if (($this->user->data['user_id'] != $user_id ) && ($this->user->data['user_id'] != ANONYMOUS) && (!$this->user->data['is_bot']))
Maybe add this?
&& ($this->user->data['user_id'] != 2) ???
thanks
i am not familiar with the php syntax. How to change the event to not count user id 2 profile visits?
I am user ID 2 and i need to check profiles for spam, fake mail adresses but don't want to activate the counter event so i want to exclude my id
ORIGINAL:
if (($this->user->data['user_id'] != $user_id ) && ($this->user->data['user_id'] != ANONYMOUS) && (!$this->user->data['is_bot']))
Maybe add this?
&& ($this->user->data['user_id'] != 2) ???
thanks
-
- Founder
- Posts: 6429
- Joined: 13 Jan 2014, 21:45
Re: Member Profile Views
Yes you are on the correct way!Painkiller88 wrote: 03 Feb 2019, 13:08 Hi,
i am not familiar with the php syntax. How to change the event to not count user id 2 profile visits?
I am user ID 2 and i need to check profiles for spam, fake mail adresses but don't want to activate the counter event so i want to exclude my id
ORIGINAL:
if (($this->user->data['user_id'] != $user_id ) && ($this->user->data['user_id'] != ANONYMOUS) && (!$this->user->data['is_bot']))
Maybe add this?
&& ($this->user->data['user_id'] != 2) ???
thanks
Make it:
Code: Select all
if (($this->user->data['user_id'] != $user_id ) && ($this->user->data['user_id'] != ANONYMOUS) && ($this->user->data['user_id'] != 2) && (!$this->user->data['is_bot']))
-
- Translators
- Posts: 55
- Joined: 13 Mar 2015, 08:50
Re: Member Profile Views
You do not have the required permissions to view the files attached to this post.
-
- Users
- Posts: 13
- Joined: 09 Jan 2020, 11:21
Re: Member Profile Views
Excellent, thanks for the update. I find this to be quite a useful extension.
-
- Users
- Posts: 46
- Joined: 22 Mar 2020, 12:59
Re: Member Profile Views
Estonian translation.
You do not have the required permissions to view the files attached to this post.
-
- Users
- Posts: 46
- Joined: 22 Mar 2020, 12:59
Re: Member Profile Views
Repaired.
You do not have the required permissions to view the files attached to this post.
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Member Profile Views
How to make sure that the view from the administrator is not displayed?
-
- Users
- Posts: 918
- Joined: 02 Feb 2018, 12:04
Re: Member Profile Views
everymember in the forums can view every profileTrekRed wrote: 09 Apr 2020, 12:30 How to make sure that the view from the administrator is not displayed?

Feed like a disease
And bring them to their knees
They'll pay for their deceit
And bring them to their knees
They'll pay for their deceit
-
- Users
- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Member Profile Views
Tested on 3.3.7 and works. Thanks
-
- Users
- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Member Profile Views
You do not have the required permissions to view the files attached to this post.
-
- Users
- Posts: 5
- Joined: 21 Apr 2017, 15:06
Re: Member Profile Views
Hi. Please updated.
Phpbb 3.3.9
Sam dissable all ext and stilo this error.
Phpbb 3.3.9
Sam dissable all ext and stilo this error.
Code: Select all
SQL ERROR [ mysqli ]
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'admin_forumtest.m.date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]
SQL
SELECT m.user_id, m.date, m.counter_user, u.username, u.user_colour, u.user_id, u.user_avatar, u.user_avatar_type, u.user_avatar_height, u.user_avatar_width FROM phpbb_memberprofileviews m, phpbb_users u WHERE m.view_id = 2 AND m.user_id = u.user_id GROUP BY m.user_id ORDER BY m.date DESC LIMIT 100
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 296
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 337
CALL: phpbb\db\driver\driver->sql_query_limit()
FILE: [ROOT]/ext/dmzx/memberprofileviews/event/listener.php
LINE: 137
CALL: phpbb\db\driver\factory->sql_query_limit()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: dmzx\memberprofileviews\event\listener->memberlist_view_profile()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 44
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/memberlist.php
LINE: 757
CALL: phpbb\event\dispatcher->trigger_event()
-
- Users
- Posts: 15
- Joined: 18 Apr 2022, 00:00
Re: Member Profile Views
Having the same problem as the poster above. Can this be resolved, please?