Who viewed my profile

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
mayona
Beiträge: 19
Registriert: Sa 18.Dez, 2004 00:33

Who viewed my profile

Beitrag von mayona »

how can i make it to show in the users profile instead of a popup?
Also, i only wanted to show only 10 recent viewers.... please help? pretty, pretty please :)
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The list will be already in the profile. Regard the "eye" icon on the right side of the username.
And you can disable the popup by yourself on your profile.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
found21
Beiträge: 4
Registriert: Mo 14.Feb, 2005 16:19

Beitrag von found21 »

Hi is it possible for the admin to turn the feature off .......and back on if necessary.... i am using pcp....

thank you for your time...and a great mod
Zuletzt geändert von found21 am Do 24.Feb, 2005 01:23, insgesamt 2-mal geändert.
mayona
Beiträge: 19
Registriert: Sa 18.Dez, 2004 00:33

Beitrag von mayona »

Thanks for the quick answer and manage to add who viewed in the users profile :).
One more thing. How can i not show the user admin in there :)
thanks again.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@found21
What should be disabled? The popup? The mod itself?

@mayona
I must take a look to change the sql-statement in the special file.
I will post the solution later on...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
found21
Beiträge: 4
Registriert: Mo 14.Feb, 2005 16:19

Beitrag von found21 »

Hi

Sorry for not being clearer.....i was wondering if admin could disable the image from showing per user......and then enable it if required......

thanx for replying
Zuletzt geändert von found21 am Do 24.Feb, 2005 09:54, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, I think it's better to let the users decide themselfes to display the popup or not.
Disabling this by the admin unable the users to get informations about profile views by other users until they will open their profile view stats.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
found21
Beiträge: 4
Registriert: Mo 14.Feb, 2005 16:19

Beitrag von found21 »

Ok no problems ......on a board i was setting up i just wanted to add this feature as a bonus.....after users reached a cetain level.....i could activate this...

But if it cant be done no worries.....

Thanx for the help
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@mayona
To avoid displaying an admin in the profile view list try the attached file.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
found21
Beiträge: 4
Registriert: Mo 14.Feb, 2005 16:19

Beitrag von found21 »

Hi

sorry to bother you again with this but i was wondering if it was at all possible to make this so that the linked appeared if the user was in a group.....using this piece of code from profilecp/profilecp_public_base.php

Code: Alles auswählen

#
# #-----[ AFTER, ADD ]------------------------------------------
# #
#    'U_VISITS'         => '<a href="' . append_sid("profile_view_user.$phpEx?".POST_USERS_URL."=" . $view_userdata['user_id'] . "&".POST_POST_URL."=0").'"><img src="' . $images['icon_view'] . '" border="0" alt="'.$lang['Views'].'"></a>',
#
# #
# #-----[ OPEN ]------------------------------------------
# #
# templates/subSilver/profilecp/public_base_body.tpl
#
# #
# #-----[ FIND ]------------------------------------------
# #
#          <th valign="middle">{L_PUBLIC_TITLE}</th>
#
# #
# #-----[ REPLACE WITH ]------------------------------------------
# #
#          <th colspan="2" height="25" nowrap="nowrap">
#          <table width="100%" cellspacing="0" border="0">
#          <tr>
#          <th align="center">{L_PUBLIC_TITLE}</th>
#          <th align="center">{U_VISITS}</th>
#          </tr>
#          </table>
#          </th>
That way when i use auto group everyone who post their first post can use this feature

Thanx again for your time...
mayona
Beiträge: 19
Registriert: Sa 18.Dez, 2004 00:33

Beitrag von mayona »

Hiya oxpus...

I am getting an error :(
Could not read profile views.

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '*) as total FROM phpbb_profile_view p, phpbb_users u WHERE p.

SELECT count(p.*) as total FROM phpbb_profile_view p, phpbb_users u WHERE p.user_id = 710 AND u.user_level <> 1

Line : 55
File : profile_view_user.php
what syntax :(

thanks
Zuletzt geändert von mayona am Mi 16.Mär, 2005 06:08, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, then replace

Code: Alles auswählen

$sql = "SELECT count(p.*) as total FROM ".PROFILE_VIEW_TABLE." p, ".USERS_TABLE." u
		WHERE p.user_id = ".$user_id."
		AND u.user_level <> ".ADMIN;
with

Code: Alles auswählen

$sql = "SELECT count(p.user_id) as total FROM ".PROFILE_VIEW_TABLE." p, ".USERS_TABLE." u
		WHERE p.user_id = ".$user_id."
		AND u.user_level <> ".ADMIN;
and retry...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mayona
Beiträge: 19
Registriert: Sa 18.Dez, 2004 00:33

Beitrag von mayona »

Thanks oxpus... it's working now... the only problem is the go to page... it list all the nbrs but no biggie for moi since i limit it 2 10 viewers....
Thanks again... Problem solved!!!
Antworten