Member Profile Views

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Painkiller88
Users
Users
Posts: 63
Joined: 04 Jan 2019, 00:51

Re: Member Profile Views

Post by Painkiller88 »

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

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Member Profile Views

Post by dmzx »

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
Yes you are on the correct way!
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']))

User avatar

Painkiller88
Users
Users
Posts: 63
Joined: 04 Jan 2019, 00:51

Re: Member Profile Views

Post by Painkiller88 »

great. thank you

User avatar

awr
Translators
Translators
Posts: 55
Joined: 13 Mar 2015, 08:50

Re: Member Profile Views

Post by awr »

tr.zip
You do not have the required permissions to view the files attached to this post.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Member Profile Views

Post by dmzx »

First post updated

User avatar

Aforce
Users
Users
Posts: 13
Joined: 09 Jan 2020, 11:21

Re: Member Profile Views

Post by Aforce »

Excellent, thanks for the update. I find this to be quite a useful extension.

User avatar

Exabot
Users
Users
Posts: 46
Joined: 22 Mar 2020, 12:59

Re: Member Profile Views

Post by Exabot »

Estonian translation.
et.zip
You do not have the required permissions to view the files attached to this post.

User avatar

Exabot
Users
Users
Posts: 46
Joined: 22 Mar 2020, 12:59

Re: Member Profile Views

Post by Exabot »

Repaired.
et.zip
You do not have the required permissions to view the files attached to this post.

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Member Profile Views

Post by TrekRed »

How to make sure that the view from the administrator is not displayed?

User avatar

ivailo95
Users
Users
Posts: 918
Joined: 02 Feb 2018, 12:04

Re: Member Profile Views

Post by ivailo95 »

TrekRed wrote: 09 Apr 2020, 12:30 How to make sure that the view from the administrator is not displayed?
everymember in the forums can view every profile :thumbup:
Feed like a disease
And bring them to their knees
They'll pay for their deceit

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Member Profile Views

Post by dmzx »

First post updated.

User avatar

max-ima
Users
Users
Posts: 139
Joined: 25 Mar 2022, 07:11

Re: Member Profile Views

Post by max-ima »

Tested on 3.3.7 and works. Thanks

User avatar

max-ima
Users
Users
Posts: 139
Joined: 25 Mar 2022, 07:11

Re: Member Profile Views

Post by max-ima »

Member Profile Views_1.0.5-Slovenian.zip
You do not have the required permissions to view the files attached to this post.

User avatar

cvxcvx
Users
Users
Posts: 5
Joined: 21 Apr 2017, 15:06

Re: Member Profile Views

Post by cvxcvx »

Hi. Please updated.
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() 

User avatar

Bruce Banner
Users
Users
Posts: 15
Joined: 18 Apr 2022, 00:00

Re: Member Profile Views

Post by Bruce Banner »

Having the same problem as the poster above. Can this be resolved, please?

Post Reply