Author Topic: [MOD] Profile hits by Lucifix  (Read 50343 times)

0 Members and 1 Guest are viewing this topic.

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #15 on: September 01, 2005, 02:18:14 PM »
Topic updated above. ;)

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Profile hits by Lucifix
« Reply #16 on: September 01, 2005, 02:22:22 PM »
You changed:

Code: [Select]
if ($user_info['user_level'] != ADMIN) {
to:

Code: [Select]
if ($user_info['user_level'] == USER) {
How does this change effect on count?

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #17 on: September 01, 2005, 02:52:28 PM »
By specifying :

Quote

if ($user_info['user_level'] != ADMIN) {


you'd also include the GUEST levels (which is not recommended). ;)

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Profile hits by Lucifix
« Reply #18 on: September 01, 2005, 04:13:57 PM »
Hi oracle, thanks for your help, but it dont work
i have not idea what the problem is.

the "lang" is right...it shows profile hits: but it doesnt shows a number and count

:((

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #19 on: September 02, 2005, 12:03:59 AM »
Have you tested this under a user account or admin account ?

Assuming you're under the admin account, according to the first post, it was my understanding that these counts were supposed to be shown only as user levels. Is this correct ?

If not, a simple modification could be made.

Please advise.

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Profile hits by Lucifix
« Reply #20 on: September 02, 2005, 07:23:41 AM »
i have tested it on admin and on guest level.

mh :(


TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #21 on: September 02, 2005, 01:23:58 PM »
This works only under users. Isn't that what this topic was all about ?  :o

Offline Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [MOD] Profile hits by Lucifix
« Reply #22 on: September 03, 2005, 12:58:14 AM »
It doesnt work for me...

Not as Admin and not as user...

Could somebody help me?

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #23 on: September 03, 2005, 01:05:52 AM »
Woops. In member.php file,

find :

Quote

"lang_icq" => $lang['icq']


add above :

Code: [Select]

"profile_hits1" => ($user_info['user_level'] == USER) ? $user_row['profile_hits'] : "",


Then, try it under a user account. It should work now. ;)

Offline Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [MOD] Profile hits by Lucifix
« Reply #24 on: September 03, 2005, 11:27:39 AM »
Doesnt work  :(

You can test it here: http://www.amberger-fotogalerie.de
User: Test
password: test

It always shows "0"

Offline Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [MOD] Profile hits by Lucifix
« Reply #25 on: September 03, 2005, 11:30:45 AM »
I just found out, that i can edit the "Profile Hits" in the admin panel (edit user)....
So i can update the profile hits manually?  :roll:  :lol:

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #26 on: September 03, 2005, 01:47:16 PM »
Well ... I just followed from the first post. If it's not showing from the member profile page, it would need to be all re-coded in order to show it right.

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #27 on: September 03, 2005, 02:35:55 PM »
In member.php file,

replace :

Quote

WHERE user_id = '$user_id' AND user_level = '".USER."'


with :

Code: [Select]

WHERE ".get_user_table_field("", "user_id")." = ".$user_row['user_id'];


Will it work ?

Offline Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [MOD] Profile hits by Lucifix
« Reply #28 on: September 03, 2005, 03:22:04 PM »
no. doesnt work.

have you forgotten the quote i maked red?

Code:

$sql = "

UPDATE ".USERS_TABLE."
SET profile_hits = profile_hits + 1
WHERE ".get_user_table_field("", "user_id")." = ".$user_row['user_id'];"


";

TheOracle

  • Guest
Re: [MOD] Profile hits by Lucifix
« Reply #29 on: September 03, 2005, 03:40:27 PM »
Quote

no. doesnt work.


Could you please be more specific on that rather than just saying that it doesn't work ??

Quote

have you forgotten the quote i maked red?


No, this is the right statement.