Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: [SiNaN] on April 09, 2008, 12:44:17 AM

Title: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on April 09, 2008, 12:44:17 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1150)

Profile Visitors

This modifications logs the visitors for all members' profile with the time of their last visit. Additionally it gives you the ability to see the total visit count for the profile.

Version 4.1

At last, version 4.1, which is an SMF 2.0 only package is released. This version does not log 20, but all visitors of a user. Also it keeps the total visit count for each visitor and total visit count for each profile.

It, as usual, has own/any profile view option and improved remove visitor permissions. Also it includes "Avoid logging permission", which allows users to select if they want to be logged or not. User can set it from "Look and Layout" area of their profile.

And some bad news... There won't be any updates for the SMF 1.x version, but I'll continue supporting that too.

-Blue Dream
Title: Re: Profile Visitors
Post by: Apllicmz on April 09, 2008, 02:42:07 AM
nice work 100% fine
translate portuguese pt_PT/pt_BR
Support utf8

</file>
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['latest_visitors'] = 'Últimos Visitantes';
$txt['no_visitors'] = 'Nº visitantes.';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['latest_visitors'] = '&Uacute;ltimos Visitantes';
$txt['no_visitors'] = 'Nº visitantes.';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['latest_visitors'] = 'Últimos Visitantes';
$txt['no_visitors'] = 'Nº visitantes.';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['latest_visitors'] = '&Uacute;ltimos Visitantes';
$txt['no_visitors'] = 'Nº visitantes.';]]></add>
</operation>
</file>


Title: Re: Profile Visitors
Post by: perplexed on April 09, 2008, 05:42:35 AM
nice :D
Title: Re: Profile Visitors
Post by: [SiNaN] on April 09, 2008, 08:31:58 AM
You can see the demo here:
.......
Title: Re: Profile Visitors
Post by: - danny on April 09, 2008, 01:15:20 PM
how does this work with ultimate profile?
Title: Re: Profile Visitors
Post by: robbie93 on April 09, 2008, 10:03:33 PM
got this error on install

1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/Load.php Test failed
3. Execute Modification ./Sources/Profile.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Code database.php 


1.1.4 gothic_rose
Title: Re: Profile Visitors
Post by: Basie on April 10, 2008, 03:59:08 AM
Does this have 'permissions', so that only mods/admin can see the visitors?
Title: Re: Profile Visitors
Post by: wilsy on April 10, 2008, 05:03:50 AM
Quote from: ~Alex on April 09, 2008, 01:15:20 PM
how does this work with ultimate profile?

Same question for me ;)
Title: Re: Profile Visitors
Post by: Basie on April 10, 2008, 05:09:04 AM
Quote from: wilsy on April 10, 2008, 05:03:50 AM
Quote from: ~Alex on April 09, 2008, 01:15:20 PM
how does this work with ultimate profile?

Same question for me ;)

What is ultimate profile?

link to the mod?
Title: Re: Profile Visitors
Post by: Islander_IBG on April 10, 2008, 05:13:51 AM
how does this work for User CP MOD ??
Title: Re: Profile Visitors
Post by: [SiNaN] on April 10, 2008, 05:57:59 AM
Quote from: ~Alex on April 09, 2008, 01:15:20 PM
how does this work with ultimate profile?

Quote from: wilsy on April 10, 2008, 05:03:50 AM
Quote from: ~Alex on April 09, 2008, 01:15:20 PM
how does this work with ultimate profile?

Same question for me ;)

Hımmm, I should look for that.

Quote from: robbie93 on April 09, 2008, 10:03:33 PM
got this error on install

1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/Load.php Test failed
3. Execute Modification ./Sources/Profile.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Code database.php 


1.1.4 gothic_rose

Try installing it manually.

Quote from: Islander_IBG on April 10, 2008, 05:13:51 AM
how does this work for User CP MOD ??


I should look for this also.
Title: Re: Profile Visitors
Post by: chrisb on April 10, 2008, 06:57:45 AM
hi all here is a screen shot of what it should look like once it has been installed


Title: Re: Profile Visitors
Post by: Basie on April 10, 2008, 10:52:22 AM
How to I make it so that admin can visit profiles without the visits being recorded?


Also how can admin delete visits?
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 10, 2008, 01:27:25 PM
1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/Profile.php    Test failed
4.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
5.    Execute Code    database.php

Sources/profile.php? I don't know.
I probably can do manually in profile.template.php but not sources/profile.php

OKAY. I added it onto ultimate profile, successful. However, when I click on other user's profile it wouldn't show me being on their recent visitors.
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 10, 2008, 01:54:09 PM
Quote from: seek2501 on April 10, 2008, 05:09:04 AM
Quote from: wilsy on April 10, 2008, 05:03:50 AM
Quote from: ~Alex on April 09, 2008, 01:15:20 PM
how does this work with ultimate profile?

Same question for me ;)

What is ultimate profile?

link to the mod?
http://jovant.guruserve.com/projekti/smf/ultimate_profile/ultimate_profile_0-8.zip

http://jovant.guruserve.com/test-forum/index.php

Title: Re: Profile Visitors
Post by: robbie93 on April 10, 2008, 02:38:31 PM
tried to install manually via package parser

my theme gothic_rose doesnt have Profile.template.php

what to do now?
Title: Re: Profile Visitors
Post by: wayoutwest on April 10, 2008, 04:12:14 PM
if your theme doesnt have Profile.template.php, then your site is using default/Profile.template.php 

Title: Re: Profile Visitors
Post by: robbie93 on April 10, 2008, 05:06:41 PM
thanks for the reply i will edit the default/ profile.template.php :D
Title: Re: Profile Visitors
Post by: wayoutwest on April 10, 2008, 05:22:10 PM
welcome, best of luck!
Title: Re: Profile Visitors
Post by: Lord Anubis on April 10, 2008, 09:10:07 PM
I got it working for the Ultimate Profile, Just make sure you add

$visitor_profile to the Ultimate Profile Template, for example:

function template_summary2()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix,$ID_MEMBER, $visitor_profile;

global $scripturl, $context;
Title: Re: Profile Visitors
Post by: Sabre™ on April 10, 2008, 09:37:31 PM
Quote from: seek2501 on April 10, 2008, 03:59:08 AM
Does this have 'permissions', so that only mods/admin can see the visitors?
Quote from: seek2501 on April 10, 2008, 10:52:22 AM
How to I make it so that admin can visit profiles without the visits being recorded?
Also how can admin delete visits?

Hi [SiNaN]
Fantastic mod mate.  Thank You very much :)
I am also interested in seek2501 ideas.
As if I am watching a particular user, I dont want them knowing I was there.
Or have them having the permission to see if anyone had visited.

Thanks again for your good work.
Title: Re: Profile Visitors
Post by: robbie93 on April 10, 2008, 09:47:33 PM
it didnt seem to work for me installing manually :(

i have attached a screen shot to show what the manual install did.
Title: Re: Profile Visitors
Post by: Sabre™ on April 10, 2008, 10:21:29 PM
I read back and saw that you had an error on install.
When this happens(assuming that it is only 1 or 2 errors) I install it anyway.

And say the error was:
2. Execute Modification ./Sources/Load.php Test failed

I then go into  /Sources/Load.php and manually install what is missing.

You are definitely missing something buddy.
What..    I do not know.
Someone will come along and point out what exactly, or you could try the way I suggested.
But means you may have to delete the changes you have made.

Up to you bud :)

EDIT:   OMG..  I forgot to ask, is it working ok in your default theme?
Title: Re: Profile Visitors
Post by: [SiNaN] on April 11, 2008, 03:17:12 AM
Quote from: Sabre™ on April 10, 2008, 09:37:31 PM
Quote from: seek2501 on April 10, 2008, 03:59:08 AM
Does this have 'permissions', so that only mods/admin can see the visitors?
Quote from: seek2501 on April 10, 2008, 10:52:22 AM
How to I make it so that admin can visit profiles without the visits being recorded?
Also how can admin delete visits?

Hi [SiNaN]
Fantastic mod mate.  Thank You very much :)
I am also interested in seek2501 ideas.
As if I am watching a particular user, I dont want them knowing I was there.
Or have them having the permission to see if anyone had visited.

Thanks again for your good work.


For the permission, you should wait the next version of the mod.

For the other, do this:

../Sources/Profile.php

Find:

//Guests can't effect...
if(!$user_info['is_guest']) {


Replace:

//Guests can't effect...
if(!$user_info['is_guest'] || $context['user']['id'] != 'YOURID') {
Title: Re: Profile Visitors
Post by: Faust on April 11, 2008, 03:50:30 AM
Quote from: Lord Anubis on April 10, 2008, 09:10:07 PM
I got it working for the Ultimate Profile, Just make sure you add


Would you mind posting the changes you made ?
Title: Re: Profile Visitors
Post by: Sabre™ on April 11, 2008, 04:49:21 AM
Hi [SiNaN]
Thanks for the code above.
I have obviously done something wrong, because it's not working.

Where it states    ['user']['id'] != 'YOURID') {      I have added my id number, which is 1, where it says "YOURID"
Is this correct?
If so..  It didnt work.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 11, 2008, 07:06:30 AM
Sorry for the mistake, this one is the correct one. Just I was so sleepy. :)

../Sources/Profile.php

Find:

//Guests can't effect...
if(!$user_info['is_guest']) {


Replace:

//Guests can't effect...
if(!$user_info['is_guest'] && $context['user']['id'] != 'YOURID') {

[/quote]
Title: Re: Profile Visitors
Post by: robbie93 on April 11, 2008, 06:34:11 PM
does this thing actually work? lol ::)
Title: Re: Profile Visitors
Post by: Sabre™ on April 11, 2008, 10:20:40 PM
Yes mate it does. lol

Refer to post #22.      Thats for you :)
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 11, 2008, 11:00:21 PM
Thanks, Lord Anubis, for that mention. I was wondering why I was having trouble getting it to work on UP for one forum. :P

Great mod, as usual, [SiNaN]. This is one I've been wanting for a long while.
Title: Re: Profile Visitors
Post by: robbie93 on April 12, 2008, 12:00:08 AM
@ sabre i don't install mods that fail and give errors,  did it once and it broke my board.

the manual install doesnt tell you to touch /Sources/Load.php

cant install via package manager,  or manual install on gothic_rose

so....  for me it doesnt work...

since  [SiNaN] is the author of this mod he sure isnt helping much lol

so...  it doesnt WORK lol :D
Title: Re: Profile Visitors
Post by: Sabre™ on April 12, 2008, 12:21:08 AM
Code for   source/load.php

Find
pg.stars, mg.stars) AS stars, mem.passwordSalt

Replace with
pg.stars, mg.stars) AS stars, mem.passwordSalt, mem.visitors

and then

Find
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),

Replace with
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
'visitors' => &$profile['visitors'],


Its in the Package manager.
Let us know if this helps mate.  If not, we'll go from there :)
Title: Re: Profile Visitors
Post by: Sabre™ on April 12, 2008, 12:57:53 AM
Quote from: [SiNaN] on April 11, 2008, 07:06:30 AM
Sorry for the mistake, this one is the correct one. Just I was so sleepy. :)

ahahaaaa    No worries mate.  I know the feeling lol
Couldnt install it till now, as my host were upgrading their servers.
But works great mate..  Thanks.

In the next version, could you add a  "delete"  button please.
As Im in most profiles as the admin, and would like to remove them.

Thank You for sharing your knowledge :)
Title: Re: Profile Visitors
Post by: robbie93 on April 12, 2008, 02:57:07 PM
@ sabre did as you said got this

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 'FROM smf_members AS mem
LEFT JOIN smf_log_online AS lo ON (lo.ID_MEMBER = mem' at line 13
File: /home/robbie/public_html/Sources/Load.php
Line: 897

when i try to access profiles.
Title: Re: Profile Visitors
Post by: shadow82x on April 12, 2008, 03:00:11 PM
Will this work for SMF2.x in the future?
Title: Re: Profile Visitors
Post by: [SiNaN] on April 13, 2008, 07:10:00 AM
Quote from: shadow82x on April 12, 2008, 03:00:11 PM
Will this work for SMF2.x in the future?

I hope so.

Robbie, attach the needed files to be edited and I'll do the changes for you.
Title: Re: Profile Visitors
Post by: Sabre™ on April 13, 2008, 07:34:54 AM
Quote from: [SiNaN] on April 13, 2008, 07:10:00 AMRobbie, attach the needed files to be edited and I'll do the changes for you.
Good man [SiNaN].

I have a feature in my theme that is disabling the visitors from being read.

If you have time, could you come and have a look at my site, to see what I mean?
It is kind of difficult to explain, and I have had no information from the theme designer, regarding this feature.

I will PM you the details of an account, if you say yes :)

I have attached my Profile template incase you can see whats going on within that.

Thank You in advance :)
Title: Re: Profile Visitors
Post by: [SiNaN] on April 13, 2008, 08:01:58 AM
Add $visitor_profile to the old summary function globals also.
Title: Re: Profile Visitors
Post by: Basie on April 13, 2008, 09:55:32 AM
[SiNaN] - How do I  change the text "Latest Visitors" to "Latest 5 Visitors".

Also, can I change how many visitors are listed?
Title: Re: Profile Visitors
Post by: [SiNaN] on April 13, 2008, 09:59:47 AM
Quote from: seek2501 on April 13, 2008, 09:55:32 AM
[SiNaN] - How do I  change the text "Latest Visitors" to "Latest 5 Visitors".

Also, can I change how many visitors are listed?

$languagedir/Modifications.english.php

Find:

$txt['latest_visitors'] = 'Latest Visitors';

Replace:

$txt['latest_visitors'] = 'Latest 5 Visitors';

Unfortunatly you can not change the count of visitors.
Title: Re: Profile Visitors
Post by: Basie on April 13, 2008, 10:01:06 AM
Thanks. :)


So I can only have the latest 5? There is no way to change it to 10?
Title: Profile Visitors
Post by: sorosh1 on April 13, 2008, 10:07:24 AM
Hai,

I have a problem. If i want to aplley to mod then it gives me this:

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Profile.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test failed  
5. Execute Code database.php

I use SMF 1.1.4. And i dont know what is wrong?!
Someone with the same problem? Please help me!

Thanks,

sorosh
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 13, 2008, 10:12:58 AM
You'll have to manually edit the Profile.template.php file to install the mod. You have other mods conflicting with that area, that's why it gave an error.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 13, 2008, 10:35:08 AM
Quote from: seek2501 on April 13, 2008, 10:01:06 AM
Thanks. :)


So I can only have the latest 5? There is no way to change it to 10?

That needs a couple of code changes.

Thanks again Eliana. :)
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 13, 2008, 10:46:18 AM
For everyone who is having difficulty installing, the mod site has added a new feature which will explain how to manually install the mod for your SMF version of choice. Well, this mod only works for 1.1.4, so don't try 2.0 or any of the lower versions.

http://custom.simplemachines.org/mods/index.php?mod=1150.0

Select the Profile Visitors mod, SMF 1.1.4 version and click submit!
Title: Re: Profile Visitors
Post by: edi67 on April 13, 2008, 10:48:11 AM
let me try
Title: Re: Profile Visitors
Post by: sorosh1 on April 13, 2008, 11:38:20 AM
Quote from: Eliana Tamerin on April 13, 2008, 10:46:18 AM
For everyone who is having difficulty installing, the mod site has added a new feature which will explain how to manually install the mod for your SMF version of choice. Well, this mod only works for 1.1.4, so don't try 2.0 or any of the lower versions.

http://custom.simplemachines.org/mods/index.php?mod=1150.0

Select the Profile Visitors mod, SMF 1.1.4 version and click submit!

Thanks Eliana Tamerin! With al little bit playing with the script i managed to do it :D ;D
Title: Re: Profile Visitors
Post by: - danny on April 13, 2008, 04:36:55 PM
maybe i missed it, but do we need to do anything special to get this to work with ultimate profile?
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 13, 2008, 07:56:34 PM
Apply all edits that you would to Profile.template.php to UltimateProfile.template.php.
Title: Re: Profile Visitors
Post by: edi67 on April 15, 2008, 07:52:28 AM
good working

one suggestion: Adding data/time of the last visit for each user that visited profile
Title: Re: Profile Visitors
Post by: Sabre™ on April 15, 2008, 07:58:31 PM
Quote from: [SiNaN] on April 13, 2008, 08:01:58 AM
Add $visitor_profile to the old summary function globals also.
Cheers mate. Worked like a charm :)

I also added that step, to the themes host site.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 16, 2008, 04:56:46 AM
Quote from: edi67 on April 15, 2008, 07:52:28 AM
good working

one suggestion: Adding data/time of the last visit for each user that visited profile

I'll add in the next version.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 18, 2008, 08:34:37 AM
Mod is updated. For details, see the first message:

http://www.simplemachines.org/community/index.php?topic=233298.msg1501838#msg1501838
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 18, 2008, 07:15:04 PM
I can't ever get this to work.

I constantly keep following all in here and stuff on how to get it work, couldn't. The issue is that the profile visitors won't display, it permanently saying "no visitors.".
Title: Re: Profile Visitors
Post by: Lord Anubis on April 18, 2008, 07:22:20 PM
@Joshie
Quote from: Lord Anubis on April 10, 2008, 09:10:07 PM
I got it working for the Ultimate Profile, Just make sure you add

$visitor_profile to the Ultimate Profile Template, for example:

function template_summary2()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix,$ID_MEMBER, $visitor_profile;

global $scripturl, $context;


You still haven't added this into the UltimateProfile.template.php that is why it shows no visitors
Title: Re: Profile Visitors
Post by: ne.miguelito on April 18, 2008, 09:50:45 PM
when I see a profile for the first time gives these errors in Forum Error Log

Undefined offset: 3
File: /home/nemigue/public_html/Sources/Profile.php
Line: 338

Undefined offset: 2
File: /home/nemigue/public_html/Sources/Profile.php
Line: 338

Undefined offset: 1
File: /home/nemigue/public_html/Sources/Profile.php
Line: 338
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 19, 2008, 02:23:03 AM
Quote from: Lord Anubis on April 18, 2008, 07:22:20 PM
@Joshie
Quote from: Lord Anubis on April 10, 2008, 09:10:07 PM
I got it working for the Ultimate Profile, Just make sure you add

$visitor_profile to the Ultimate Profile Template, for example:

function template_summary2()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix,$ID_MEMBER, $visitor_profile;

global $scripturl, $context;


You still haven't added this into the UltimateProfile.template.php that is why it shows no visitors
I did that.:P I did that before I reply in here about the errors.
Title: Re: Profile Visitors
Post by: ne.miguelito on April 19, 2008, 04:11:06 AM
Quote from: ne.miguelito on April 18, 2008, 09:50:45 PM
when I see a profile for the first time gives these errors in Forum Error Log

Undefined offset: 3
File: /home/nemigue/public_html/Sources/Profile.php
Line: 338

Undefined offset: 2
File: /home/nemigue/public_html/Sources/Profile.php
Line: 338

Undefined offset: 1
File: /home/nemigue/public_html/Sources/Profile.php
Line: 338


Somebody can help?
Title: Re: Profile Visitors
Post by: [SiNaN] on April 19, 2008, 05:43:42 AM
Do not be afraid. Your forum is fine. Its not going to die. :)

Try doing this:

../Sources/Profile.php

Find:
if ($visitor[$count] == $ID_MEMBER)
$check = $count;


Replace:
if (!empty($visitor[$count]) && $visitor[$count] == $ID_MEMBER)
$check = $count;


JoshieDaMan, your solution is coming 2 hours later.
Title: Re: Profile Visitors
Post by: ne.miguelito on April 19, 2008, 07:58:13 AM
Thank you, now its fine...
Title: Re: Profile Visitors
Post by: [SiNaN] on April 19, 2008, 10:02:51 AM
Another update is made. Ultimate Profile Mod support is added. See the first mesaage for details:

http://www.simplemachines.org/community/index.php?topic=233298.msg1501838#msg1501838
Title: Re: Profile Visitors
Post by: shadow82x on April 19, 2008, 01:03:42 PM
still any updates for smf2?
Title: Re: Profile Visitors
Post by: Cal O'Shaw on April 19, 2008, 01:13:48 PM
I hate to ask, as this really looks like a super mod, but any idea on if it's possible to include (1) the date/time stamp and (2) the ability to limit the mod to admins or groupids (actually preferred as we have people who work as admins but we don't give them full admin powers).

Thank you so very much for putting so much work into this.  It's greatly appreciated.

Cal
Title: Re: Profile Visitors
Post by: [SiNaN] on April 19, 2008, 03:42:34 PM
Quote from: shadow82x on April 19, 2008, 01:03:42 PM
still any updates for smf2?

Not yet.

Quote from: Cal O'Shaw on April 19, 2008, 01:13:48 PM
I hate to ask, as this really looks like a super mod, but any idea on if it's possible to include (1) the date/time stamp and (2) the ability to limit the mod to admins or groupids (actually preferred as we have people who work as admins but we don't give them full admin powers).

Thank you so very much for putting so much work into this.  It's greatly appreciated.

Cal

Features planned to be included in next version:
- Add viewing time and date.
- "Do not log admin" option.
- View profile visitors permission.

And may be SMF 2.0 support...

Do you want any other feature?
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 19, 2008, 03:44:38 PM
Could you split the view profile view permission between "own" and "any"?
Title: Re: Profile Visitors
Post by: [SiNaN] on April 19, 2008, 03:51:46 PM
Quote from: Eliana Tamerin on April 19, 2008, 03:44:38 PM
Could you split the view profile view permission between "own" and "any"?

Of course Eliana, just because you want. ;)

Also, you will be able to set how many visitors to show in profiles. :)
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 19, 2008, 11:41:21 PM
Can any one fix it and send it to me so I could try? Just upload your ultimate profile file and source/profile.php and then I will merge it with mine. Because mine is pretty much still not modified with profile except referral.

I just think I did something wrong, obviously since it's not working for me as I followed the instruction on how to add it.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 20, 2008, 12:05:55 AM
Did you try installing version 2.1? It automatically makes the changes for Ultimate Profile Mod.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 20, 2008, 04:54:42 AM
Unfortunately another update. Now it is version 3.0. See the first message for details:

http://www.simplemachines.org/community/index.php?topic=233298.msg1501838#msg1501838
Title: Re: Profile Visitors
Post by: wilsy on April 20, 2008, 08:00:15 AM
First of all a great mod. I've enabled permissions for profile visitors but cant get them to display in ultimate profile.

I've attached my UltimateProfile.template.php file if you can check it out?

Regards,

Wilsy.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 20, 2008, 08:19:36 AM
Quote from: wilsy on April 20, 2008, 08:00:15 AM
First of all a great mod. I've enabled permissions for profile visitors but cant get them to display in ultimate profile.

I've attached my UltimateProfile.template.php file if you can check it out?

Regards,

Wilsy.

Admin CP >> Features and Settings >> Enable Profile Visitors

check it.
Title: Re: Profile Visitors
Post by: Sabre™ on April 20, 2008, 09:01:20 AM
Brilliant mate.
Ive just removed the old, and updated to the new version.
However, I cannot delete the visitors from the profile.
I have the old summary function globals also, and was wondering if that would be why, and if you'd know how to work around it.

Ive attached my Profile template to refresh your memory about that section.

Thank You in advance [SiNaN]
Title: Re: Profile Visitors
Post by: Basie on April 20, 2008, 09:08:28 AM
Thanks for the updates - I really love this mod. :)
Title: Re: Profile Visitors
Post by: wilsy on April 20, 2008, 02:33:50 PM
Quote from: [SiNaN] on April 20, 2008, 08:19:36 AM
Quote from: wilsy on April 20, 2008, 08:00:15 AM
First of all a great mod. I've enabled permissions for profile visitors but cant get them to display in ultimate profile.

I've attached my UltimateProfile.template.php file if you can check it out?

Regards,

Wilsy.

Admin CP >> Features and Settings >> Enable Profile Visitors

check it.

Doh! Works perfect - thank you, great mod!

Regards,

Wilsy.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 21, 2008, 02:40:52 AM
Quote from: Sabre™ on April 20, 2008, 09:01:20 AM
Brilliant mate.
Ive just removed the old, and updated to the new version.
However, I cannot delete the visitors from the profile.
I have the old summary function globals also, and was wondering if that would be why, and if you'd know how to work around it.

Ive attached my Profile template to refresh your memory about that section.

Thank You in advance [SiNaN]

Are you the admin? Which mods do you have that effects profile? Do you get any errors or even you can not see the button?

Quote from: seek2501 on April 20, 2008, 09:08:28 AM
Thanks for the updates - I really love this mod. :)

Thanks. One more update soon, and it will be final. ;)

Not at all Wilsy, glad you found it useful. :)
Title: Re: Profile Visitors
Post by: digit on April 21, 2008, 06:45:37 AM
I would like to NOT log global moderators...  how would I do that?

Thanks in advance.

Title: Re: Profile Visitors
Post by: Sabre™ on April 21, 2008, 07:15:52 AM
Quote from: [SiNaN] on April 21, 2008, 02:40:52 AM
Are you the admin? Which mods do you have that effects profile? Do you get any errors or even you can not see the button?

Hi mate. Yes Im the admin.
Currently, the mods I have installed that affect the profile are:
Zodiac_13Moon, Referrals Mod and Xbox Live Gamer Tag.
Your first version worked fine with these.
I have since added Advanced XFire Field and Profile Moderator Management, but the problem was there before I added these two today.
There are no errors, and the button is visual.
If you like, I can PM you an accounts details, so you can see what is happening.

Thank You for looking into this. :)
Title: Re: Profile Visitors
Post by: Marcus Forsberg on April 21, 2008, 08:13:41 AM
Great mod, mate! Thanks!  ;D
Title: Re: Profile Visitors
Post by: [SiNaN] on April 21, 2008, 08:35:56 AM
Quote from: digit on April 21, 2008, 06:45:37 AM
I would like to NOT log global moderators...  how would I do that?

Try this;

../Sources/Profile.php

Find:

if(!$user_info['is_guest'] && !(!empty($modSettings['pv_dLogAdmin']) && $context['user']['is_admin']) && !empty($modSettings['enableProfileVisitors'])) {

Replace:

if(!$user_info['is_guest'] && !(!empty($modSettings['pv_dLogAdmin']) && $context['user']['is_admin']) && !empty($modSettings['enableProfileVisitors']) && !(in_array(2, $user_info['groups']))) {

Quote from: Sabre™ on April 21, 2008, 07:15:52 AM
If you like, I can PM you an accounts details, so you can see what is happening.

I would like to.
Title: Re: Profile Visitors
Post by: digit on April 21, 2008, 09:41:06 AM
Quote from: digit on April 21, 2008, 06:45:37 AM
I would like to NOT log global moderators...  how would I do that?
Try this;
../Sources/Profile.php
Find:
if(!$user_info['is_guest'] && !(!empty($modSettings['pv_dLogAdmin']) && $context['user']['is_admin']) && !empty($modSettings['enableProfileVisitors'])) {

Replace:

if(!$user_info['is_guest'] && !(!empty($modSettings['pv_dLogAdmin']) && $context['user']['is_admin']) && !empty($modSettings['enableProfileVisitors']) && !(in_array(2, $user_info['groups']))) {


Thanks!  Looks good!  Nice mod!
Title: Re: Profile Visitors
Post by: [SiNaN] on April 21, 2008, 09:50:13 AM
Glad you liked it. ;)
Title: Re: Profile Visitors
Post by: Marcus Forsberg on April 21, 2008, 10:46:22 AM
BTW, could you post a screenshot of how it looks when being used whit ultimate profile mod?
Title: Re: Profile Visitors
Post by: [SiNaN] on April 21, 2008, 10:55:31 AM
Quote from: MTF95 on April 21, 2008, 10:46:22 AM
BTW, could you post a screenshot of how it looks when being used whit ultimate profile mod?


I don't have installed forum now but it is shown like buddies. :)
Title: Re: Profile Visitors
Post by: Marcus Forsberg on April 21, 2008, 10:59:10 AM
okey, that sounds good
Title: Re: Profile Visitors
Post by: Cal O'Shaw on April 21, 2008, 11:24:28 AM
Hello,

At the risk of imposing (and because the code is invisible in the examples above), would it be possible to check box the groups besides the Admins that do not get tracked?  The Global Moderators were placed in a group that was cloned from Global Moderator and then tweaked.

If not, would it be possible to post the lines to exclude additional groups again but "break" the HTML so it doesn't get rendered (i.e. put a space after < in tags, such as "< br>")?

Grazie!

Cal
Title: Re: Profile Visitors
Post by: 2pac on April 22, 2008, 12:16:36 AM
Hey I was thinking, maybe you could add a # of views counter? That would be cool! just throwing it out there.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 22, 2008, 02:04:10 AM
Quote from: Cal O'Shaw on April 21, 2008, 11:24:28 AM
Hello,

At the risk of imposing (and because the code is invisible in the examples above), would it be possible to check box the groups besides the Admins that do not get tracked?  The Global Moderators were placed in a group that was cloned from Global Moderator and then tweaked.

If not, would it be possible to post the lines to exclude additional groups again but "break" the HTML so it doesn't get rendered (i.e. put a space after < in tags, such as "< br>")?

Grazie!

Cal

Didn't understand the second part but I will make it so that you can choose which groups will not be logged in the profile visitors in the next version.

Quote from: 2pac on April 22, 2008, 12:16:36 AM
Hey I was thinking, maybe you could add a # of views counter? That would be cool! just throwing it out there.

I was thinking of it. I'll add it somewhere.
Title: Re: Profile Visitors
Post by: Cal O'Shaw on April 22, 2008, 02:14:56 AM
Hi,

I'm using IE7 here and the "code select" boxes are wide and have almost no height.  I assumed the code inside had been processed by SMF when presenting the page.  Turns out I have a tiny scroll bar on the right and the box displays almost the entire letters of code (cuts off a bit of the top).

But since you're going to incorporate that as something controlled in the Admin panel, it becomes moot.

Grazie mille!

Cal
Title: Re: Profile Visitors
Post by: [SiNaN] on April 22, 2008, 02:20:56 AM
You couldn't see the codes I gave because of your browser. Is it what you say? :)
Title: Re: Profile Visitors
Post by: Sabre™ on April 22, 2008, 03:26:27 AM
Quote from: Sabre™ on April 21, 2008, 07:15:52 AM
If you like, I can PM you an accounts details, so you can see what is happening.
Quote from: [SiNaN] on April 21, 2008, 08:35:56 AM
I would like to.

Awesome. I'll send you the pm now.
It is definitely the old summary function within my profile template, as when I removed it, the mod worked fine.
Hopefully you can find the fix/ work around as you did for the earlier version.
Thanks alot mate :)
Title: Re: Profile Visitors
Post by: Sheree on April 22, 2008, 05:39:46 AM
hi there maybe you can help me out after installing the mod i got this error on the profile page

Table 'ourcrib_sheree.profile_comments' doesn't exist
File: /home/ourcrib/public_html/Sources/Load.php(1737) : eval()'d code
Line: 510
Title: Re: Profile Visitors
Post by: [SiNaN] on April 22, 2008, 06:20:11 AM
Quote from: Sheree on April 22, 2008, 05:39:46 AM
hi there maybe you can help me out after installing the mod i got this error on the profile page

Table 'ourcrib_sheree.profile_comments' doesn't exist
File: /home/ourcrib/public_html/Sources/Load.php(1737) : eval()'d code
Line: 510

That is related to the Profile Comments mod. Can you check whether you have the field profile_comments in smf_members in your database?
Title: Re: Profile Visitors
Post by: PrizeLive.com on April 22, 2008, 09:59:53 AM
Just installed but received an error on the profile page:

Database Error
Table 'moneytalkpro.feedback' doesn't exist
File: /home/moneytalkpro/public_html/forums/Sources/Load.php(1727) : eval()'d code
Line: 285

I had to use a package parser to make manual edits. I didn't see anything about making any database changes.
Title: Re: Profile Visitors
Post by: Marcus Forsberg on April 22, 2008, 10:39:25 AM
The packageparser doesn't show database changes.
Title: Re: Profile Visitors
Post by: PrizeLive.com on April 22, 2008, 10:42:12 AM
Quote from: MTF95 on April 22, 2008, 10:39:25 AM
The packageparser doesn't show database changes.

How will I know what database changes to make then?

EDIT: Nevermind. THIS mod is working fine now :). It was an issue with another mod that I had installed.
Title: Re: Profile Visitors
Post by: Marcus Forsberg on April 22, 2008, 11:17:36 AM
Quote from: MoneyTalkPro.com on April 22, 2008, 10:42:12 AM
Quote from: MTF95 on April 22, 2008, 10:39:25 AM
The packageparser doesn't show database changes.

How will I know what database changes to make then?

EDIT: Nevermind. THIS mod is working fine now :). It was an issue with another mod that I had installed.

There should be some .php file in the package. There you can see what tables to make.
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 22, 2008, 03:40:45 PM
No failure installing, but however, one piece of code failed ultimate profile.

Look at my picture when I put this in.

Theme/Default/Ultimate.Profile.php
Find.
echo '
</td>';


// Now print the second column.


Replace with.

if(!empty($modSettings['enableProfileVisitors']) && $context['can_view_visitor']) {
echo '<br />
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%">
<tr>
<td class="titlebg" height="26" align="center">
', $txt['pv_latest_visitors'] ,'
</td>
</tr>';
if(!empty($visitor_profile)) {
echo '
<tr>
<td class="windowbg">
<table align="center">
<tr>';
foreach ($visitor_profile as $visitor)
echo '
<td class="windowbg" align="center" style="padding:5px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="65" />' : '', '</td>';
echo '
</tr>
<tr>';
foreach ($visitor_profile as $visitor) {
echo '
<td class="windowbg" style="padding:5px;"><b>', $visitor['username'], '</b><br /><span class="smalltext">Posts:', $visitor['posts'], '<br /><a href="', $scripturl, '?action=profile;u=', $visitor['id'], '">', $txt[79], '</a>';
if ($context['can_delete_visitor'])
echo '<br /><a href="' . $scripturl . '?action=deletevisitor;profile=' . $context['member']['id'] . ';member=' . $visitor['id'] . ';sesc=' . $context['session_id'] . '">' . $txt[31] . '</a>';
echo '</span>
</td>';
}
echo '
</tr>
</table>';
}
else {
echo '<tr>
<td class="windowbg" align="center">', $txt['pv_no_visitors'], '</td>
</tr>';
}
echo '
</td>
</tr>
</table>';
}
echo '
</td>';


// Now print the second column.


I did that, now. Look how it turned out -

Solution?
Title: Re: Profile Visitors
Post by: cleanfiles on April 22, 2008, 09:17:56 PM
Hey [SiNaN], Trying another of your mods and..
Tested ok, but after install I have this line at the top of the forum.

$txt['pv_latest_visitors'] = 'Latest Visitors'; $txt['pv_no_visitors'] = 'No visitors.'; $txt['enableProfileVisitors'] = 'Enable Profile Visitors?'; $txt['pv_dLogAdmin'] = 'Do not log Admins';

I am going to play around with it again will check back here later on.
EDIT; I forgot to say the mod is not working at all either, obviously because of the error.
Title: Re: Profile Visitors
Post by: Sabre™ on April 22, 2008, 09:35:53 PM
Hi cleanfiles. 
Go into your Languages directory...  Open up your    Modifications.english.php      and go to the bottom of that page/file.

You will see all of that code down there.
Just above it..  you will see this:         ?>

Move the  ?>   to the bottom of the page/file.   And save.

Remember to backup anything you change FIRST!!  ;)
Seeya :)

EDIT:    Just saw you edited your comment while I was typing.    The above should remove the code from the top of your screen, I cant guarantee it'll fix the mod problems youre having.  Just post back if the problem persists. :)
Title: Re: Profile Visitors
Post by: cleanfiles on April 22, 2008, 10:04:56 PM
Thanks Sabre™ that got rid of the error, but the mod still not working.
It's not all that important, would have been a nice addition though.  :)
Title: Re: Profile Visitors
Post by: Sabre™ on April 22, 2008, 10:32:13 PM
My pleasure :)

Quote from: cleanfiles on April 22, 2008, 10:04:56 PM
the mod still not working.
It's not all that important, would have been a nice addition though.  :)
Dont give up..  [SiNaN] is in between exams at the moment, and will get to you as soon as time permits :)
I reckon its a pretty cool addition myself :D

Good luck :)
Title: Re: Profile Visitors
Post by: Sheree on April 23, 2008, 12:47:49 PM
Quote from: [SiNaN] on April 22, 2008, 06:20:11 AM
Quote from: Sheree on April 22, 2008, 05:39:46 AM
hi there maybe you can help me out after installing the mod i got this error on the profile page

Table 'ourcrib_sheree.profile_comments' doesn't exist
File: /home/ourcrib/public_html/Sources/Load.php(1737) : eval()'d code
Line: 510

That is related to the Profile Comments mod. Can you check whether you have the field profile_comments in smf_members in your database?

i have this on my database
ourcrib_members
Title: Re: Profile Visitors
Post by: anakmacan on April 24, 2008, 04:05:45 AM
Admin CP--> Features & options --> Enable profile visitors Can't Be Found :<

The installation went ok except for load.php,modsettings.php, and profile.template.php; but ive  manually change it from package parser commands.
Title: Re: Profile Visitors
Post by: Marcus Forsberg on April 24, 2008, 08:14:52 AM
Here's a swedish translation:

Errors.swedish.php:
$txt['cannot_profile_delete_visitor'] = 'Du har inte lov att radera besökare från listan.';

ManagePermissions.swedish.php:
$txt['permissionname_profile_delete_visitor'] = 'Får radera besökare från listan?';
$txt['permissionname_profile_view_visitor'] = 'Får se besökare?';
$txt['permissionname_profile_view_visitor_own'] = 'Egen profil';
$txt['permissionname_profile_view_visitor_any'] = 'Allas profiler';

Modifications.swedish.php:
$txt['pv_latest_visitors'] = 'Senaste besökare';
$txt['pv_no_visitors'] = 'Inga besökare.';
$txt['enableProfileVisitors'] = 'Aktivera profil besökare?';
$txt['pv_dLogAdmin'] = 'Räkna inte med admins';
Title: Re: Profile Visitors
Post by: JoshieDaMan on April 24, 2008, 05:07:13 PM
Quote from: JoshieDaMan on April 22, 2008, 03:40:45 PM
No failure installing, but however, one piece of code failed ultimate profile.

Look at my picture when I put this in.

Theme/Default/Ultimate.Profile.php
Find.
echo '
</td>';


// Now print the second column.


Replace with.

if(!empty($modSettings['enableProfileVisitors']) && $context['can_view_visitor']) {
echo '<br />
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%">
<tr>
<td class="titlebg" height="26" align="center">
', $txt['pv_latest_visitors'] ,'
</td>
</tr>';
if(!empty($visitor_profile)) {
echo '
<tr>
<td class="windowbg">
<table align="center">
<tr>';
foreach ($visitor_profile as $visitor)
echo '
<td class="windowbg" align="center" style="padding:5px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="65" />' : '', '</td>';
echo '
</tr>
<tr>';
foreach ($visitor_profile as $visitor) {
echo '
<td class="windowbg" style="padding:5px;"><b>', $visitor['username'], '</b><br /><span class="smalltext">Posts:', $visitor['posts'], '<br /><a href="', $scripturl, '?action=profile;u=', $visitor['id'], '">', $txt[79], '</a>';
if ($context['can_delete_visitor'])
echo '<br /><a href="' . $scripturl . '?action=deletevisitor;profile=' . $context['member']['id'] . ';member=' . $visitor['id'] . ';sesc=' . $context['session_id'] . '">' . $txt[31] . '</a>';
echo '</span>
</td>';
}
echo '
</tr>
</table>';
}
else {
echo '<tr>
<td class="windowbg" align="center">', $txt['pv_no_visitors'], '</td>
</tr>';
}
echo '
</td>
</tr>
</table>';
}
echo '
</td>';


// Now print the second column.


I did that, now. Look how it turned out -

Solution?
Still looking for solution.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 25, 2008, 02:35:59 AM
Sabre™, there is no problem in your site. To see it, do this:

Profile.php

Find:
redirectexit('action=profile;u=' . $profile);

Replace:
redirectexit();

After that, remove the visitor from profile and look at that profile again. It actually removes the visitor but because of that it redirect backs to the profile again (no need to enter to the full profile mod to be logged) it logs you again.

MoneyTalkPro.com, what is you database prefix?

JoshieDaMan, can you attach your Ultimateprofile.template.php file here, so that I can look at it?

cleanfiles
, you can attach the files needs editing and I can do them manually for you.

Sheree, also, what is your database prefix? And can you attach your Profile.php file?

anakmacan, it is not a tab though, it is under the Basic Features tab.

MTF95, thanks for the translation. I'll add it as a package.
Title: Re: Profile Visitors
Post by: PrizeLive.com on April 25, 2008, 01:23:06 PM
Quote from: [SiNaN] on April 25, 2008, 02:35:59 AM
MoneyTalkPro.com, what is you database prefix?

It's working fine for me now. Thanks.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 26, 2008, 08:27:19 AM
Okay then. ;)
Title: Re: Profile Visitors
Post by: Sabre™ on April 26, 2008, 07:28:57 PM
Thanks mate..  The above worked sweet!!
Its still logging the admin as I visit a profile(the function is set to not show admin in the AP), and all the times are set to one particular visit time.
This is no prob though, Ive just changed it to allow loggin the admin, then I delete it as I leave.

Thanks for the assistance bro :)
Title: Re: Profile Visitors
Post by: [SiNaN] on April 27, 2008, 04:16:47 AM
Not at all. ;)
Title: Re: Profile Visitors
Post by: perro88 on April 28, 2008, 09:29:23 PM
nice mod. thanks :P
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 30, 2008, 09:37:37 AM
I just tried out your 3.0 version, very nice. I'm pleased at how well it integrates into Ultimate Profile and the array of options you have now.

My one gripe is that when I uninstalled 1.0, it deleted the database fields, essentially reseting the tally. Not a huge issue, but still an annoyance.
Title: Re: Profile Visitors
Post by: [SiNaN] on April 30, 2008, 10:34:32 AM
Quote from: Eliana Tamerin on April 30, 2008, 09:37:37 AM
I just tried out your 3.0 version, very nice. I'm pleased at how well it integrates into Ultimate Profile and the array of options you have now.

My one gripe is that when I uninstalled 1.0, it deleted the database fields, essentially reseting the tally. Not a huge issue, but still an annoyance.

Thanks Eliana. I do not like writing upgrade packages (trying to be a multislacker :P).  I understand but, 3.1 will include upgrade also, with only a few features as I said before.
Title: Re: Profile Visitors
Post by: Eliana Tamerin on April 30, 2008, 11:00:26 AM
Well, you could always prevent the mod from uninstalling the database info and then tweak the database tables as necessary in the next version. Then have a separate file to run to uninstall the database tables from the site.

Or, as you're doing, just make it upgradeable.
Title: Re: Profile Visitors
Post by: edi67 on May 02, 2008, 03:54:50 PM
is possible have this soon for smf 2? thx
Title: Re: Profile Visitors
Post by: [SiNaN] on May 03, 2008, 02:43:17 AM
Quote from: edi67 on May 02, 2008, 03:54:50 PM
is possible have this soon for smf 2? thx

I hope so. Searching for time.
Title: Re: Profile Visitors
Post by: FragaCampos on May 03, 2008, 10:59:47 AM
Thanks! I have SMF 1.1.5 and everything was ok.
I also translated the mod to portuguese and brazilian for everyone interested:

<file name="$languagedir/Errors.portuguese.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['cannot_profile_delete_visitor'] = 'N&atilde;o tem permiss&atilde;o para apagar visitantes.';]]></add>
</operation>
</file>
<file name="$languagedir/ManagePermissions.portuguese.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['permissionname_profile_delete_visitor'] = 'Pode apagar perfil de visitantes?';
$txt['permissionname_profile_view_visitor'] = 'Pode ver perfil de visitantes?';
$txt['permissionname_profile_view_visitor_own'] = 'Pr&oacute;prio perfil';
$txt['permissionname_profile_view_visitor_any'] = 'Qualquer perfil';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pv_latest_visitors'] = '&Uacute;ltimos visitantes';
$txt['pv_no_visitors'] = 'Ainda ningu&eacute;m visitou o seu perfil.';
$txt['enableProfileVisitors'] = 'Activar perfil dos visitantes?';
$txt['pv_dLogAdmin'] = 'Não registar administradores';]]></add>
</operation>
</file>

<file name="$languagedir/Errors.brazilian.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['cannot_profile_delete_visitor'] = 'Voc&ecirc; &atilde;o tem permiss&atilde;o para deletar visitantes.';]]></add>
</operation>
</file>
<file name="$languagedir/ManagePermissions.brazilian.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['permissionname_profile_delete_visitor'] = 'Pode apagar perfil de visitantes?';
$txt['permissionname_profile_view_visitor'] = 'Pode ver perfil de visitantes?';
$txt['permissionname_profile_view_visitor_own'] = 'Pr&oacute;prio perfil';
$txt['permissionname_profile_view_visitor_any'] = 'Qualquer perfil';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pv_latest_visitors'] = '&Uacute;ltimos visitantes';
$txt['pv_no_visitors'] = 'Ainda ningu&eacute;m visitou seu perfil.';
$txt['enableProfileVisitors'] = 'Activar perfil dos visitantes?';
$txt['pv_dLogAdmin'] = 'Não registar administradores';]]></add>
</operation>
</file>


Title: Re: Profile Visitors
Post by: 2Ntense on May 11, 2008, 10:54:33 AM
Is it just me or did the latest 3.0 update crash the  [Add To Buddy List] link??

I have a relatively clean 1.1.5 fresh install, and when I uninstall v2.1 and install v3.0, the  [Add To Buddy List] link disappears off of the member's PROFILE SUMMARY page when I view it.  I uninstall v3.0 and drop back to v2.1 and the  [Add To Buddy List] is there again.

The link is on the  Current Status: Online|Offline  [Add To Buddy List] line in the profile.
Title: Re: Profile Visitors
Post by: [SiNaN] on May 12, 2008, 02:31:56 AM
Quote from: 2Ntense on May 11, 2008, 10:54:33 AM
Is it just me or did the latest 3.0 update crash the  [Add To Buddy List] link??

I have a relatively clean 1.1.5 fresh install, and when I uninstall v2.1 and install v3.0, the  [Add To Buddy List] link disappears off of the member's PROFILE SUMMARY page when I view it.  I uninstall v3.0 and drop back to v2.1 and the  [Add To Buddy List] is there again.

The link is on the  Current Status: Online|Offline  [Add To Buddy List] line in the profile.

That's a bug for the 3.0 version. This is the fix:

Profile.php

Find:

'can_delete_visitor' => allowedTo('profile_delete_visitor'),
'can_view_visitor' => ($context['user']['is_owner'] && allowedTo('profile_view_visitor_own')) || allowedTo('profile_view_visitor_any'),


Replace:

'can_have_buddy' => allowedTo('profile_identity_own') && !empty($modSettings['enable_buddylist']),
'can_delete_visitor' => allowedTo('profile_delete_visitor'),
'can_view_visitor' => ($context['user']['is_owner'] && allowedTo('profile_view_visitor_own')) || allowedTo('profile_view_visitor_any'),allowedTo('profile_view_visitor_any'),


Will be fixed in the next version which will be released in a week.
Title: Re: Profile Visitors
Post by: 2Ntense on May 12, 2008, 07:53:35 AM
Got it, thanks!  I corrected the XML so I could uninstall/upgrade it again later.  It looks like it'd duplicate that line every time you uninstall if you patch Profile.php.

in Profile_Visitors.xml -

find:
<search position="replace"><![CDATA[ 'can_have_buddy' => allowedTo('profile_identity_own') && !empty($modSettings['enable_buddylist']),]]></search>

replace with:
<search position="before"><![CDATA[ 'can_have_buddy' => allowedTo('profile_identity_own') && !empty($modSettings['enable_buddylist']),]]></search>
Title: Re: Profile Visitors
Post by: [SiNaN] on May 12, 2008, 08:15:51 AM
Quote from: 2Ntense on May 12, 2008, 07:53:35 AM
Got it, thanks!  I corrected the XML so I could uninstall/upgrade it again later.  It looks like it'd duplicate that line every time you uninstall if you patch Profile.php.

It takes a back-up if you turn it on.
Title: Re: Profile Visitors
Post by: 2Ntense on May 13, 2008, 03:59:13 PM
Yeah, but unless I'm mistaken the system doesn't actually USE the backup file for anything... it's purely a 'just in case I really screw this up I can go back' feature.  I've looked and haven't seen anything in the Admin CP that says 'replace modified files with backup files'.

The package uninstall goes through the install process in reverse, it finds the changed lines in the XML and returns them to the original.  If you patch the changed file by hand and then uninstall, sometimes it fails the uninstall and sometimes it does other odd things (like duplicate a line in this case).
Title: Re: Profile Visitors
Post by: [SiNaN] on May 14, 2008, 05:30:36 AM
That exactly works like that.
Title: Re: Profile Visitors
Post by: msvdm on May 18, 2008, 08:01:00 AM
Quote from: [SiNaN] on May 03, 2008, 02:43:17 AM
Quote from: edi67 on May 02, 2008, 03:54:50 PM
is possible have this soon for smf 2? thx

I hope so. Searching for time.

Sinan any news, i hope you will find soon free time  :) the mod looks grate i cant wait to try at on my forum
Title: Re: Profile Visitors
Post by: L.G.S on May 18, 2008, 12:12:05 PM
Could you make this for 2.0 Beta? It looks excellent.
Title: Re: Profile Visitors
Post by: Eliana Tamerin on May 18, 2008, 12:31:54 PM
I'm sure SiNaN will update it, probably after his finals.
Title: Re: Profile Visitors
Post by: L.G.S on May 18, 2008, 02:54:33 PM
Sorry, I was reading from page one when I posted.
Title: Re: Profile Visitors
Post by: TimDoe on May 24, 2008, 11:24:44 PM

Quote from: [SiNaN] on May 12, 2008, 02:31:56 AM
Quote from: 2Ntense on May 11, 2008, 10:54:33 AM
Is it just me or did the latest 3.0 update crash the  [Add To Buddy List] link??

I have a relatively clean 1.1.5 fresh install, and when I uninstall v2.1 and install v3.0, the  [Add To Buddy List] link disappears off of the member's PROFILE SUMMARY page when I view it.  I uninstall v3.0 and drop back to v2.1 and the  [Add To Buddy List] is there again.

The link is on the  Current Status: Online|Offline  [Add To Buddy List] line in the profile.

That's a bug for the 3.0 version. This is the fix:

Profile.php

Find:

'can_delete_visitor' => allowedTo('profile_delete_visitor'),
'can_view_visitor' => ($context['user']['is_owner'] && allowedTo('profile_view_visitor_own')) || allowedTo('profile_view_visitor_any'),


Replace:

'can_have_buddy' => allowedTo('profile_identity_own') && !empty($modSettings['enable_buddylist']),
'can_delete_visitor' => allowedTo('profile_delete_visitor'),
'can_view_visitor' => ($context['user']['is_owner'] && allowedTo('profile_view_visitor_own')) || allowedTo('profile_view_visitor_any'),allowedTo('profile_view_visitor_any'),


Will be fixed in the next version which will be released in a week.

This fix doesn't seem to be working for me for some reason.
Title: Re: Profile Visitors
Post by: [SiNaN] on May 25, 2008, 03:27:16 AM
Was the link available before you installed the mod?
Title: Re: Profile Visitors
Post by: Eliana Tamerin on May 25, 2008, 02:34:15 PM
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1150;attach=53995;smf_version=1.1.5
Title: Re: Profile Visitors
Post by: 2Ntense on May 25, 2008, 07:31:50 PM
Quote from: TimDoe on May 24, 2008, 11:24:44 PM

'can_have_buddy' => allowedTo('profile_identity_own') && !empty($modSettings['enable_buddylist']),

This fix doesn't seem to be working for me for some reason.

Check manually and make sure the 'can_have_buddy'... is there, 'cos it worked for me.
Title: Re: Profile Visitors
Post by: wilsy on May 31, 2008, 02:59:38 PM
Hi Sinan,

Do you have any code to display profile visitors in a TinyPortal block?

Regards,

Wilsy.
Title: Re: Profile Visitors
Post by: [SiNaN] on June 01, 2008, 04:21:31 AM
Quote from: wilsy on May 31, 2008, 02:59:38 PM
Do you have any code to display profile visitors in a TinyPortal block?

Do we really need that?
Title: Re: Profile Visitors
Post by: wilsy on June 01, 2008, 08:59:04 AM
Quote from: [SiNaN] on June 01, 2008, 04:21:31 AM
Quote from: wilsy on May 31, 2008, 02:59:38 PM
Do you have any code to display profile visitors in a TinyPortal block?

Do we really need that?

It would be a great feature at my site as I can display their latest profile visitors in a front page block once they have signed in. Check out my site, you will see how well it would work.

I bet Lord Anubis would like it too!! (;

Regards,

Rick.
Title: Re: Profile Visitors
Post by: Lord Anubis on June 05, 2008, 09:20:31 PM
Quote from: wilsy on June 01, 2008, 08:59:04 AM
Quote from: [SiNaN] on June 01, 2008, 04:21:31 AM
Quote from: wilsy on May 31, 2008, 02:59:38 PM
Do you have any code to display profile visitors in a TinyPortal block?

Do we really need that?

It would be a great feature at my site as I can display their latest profile visitors in a front page block once they have signed in. Check out my site, you will see how well it would work.

I bet Lord Anubis would like it too!! (;

Regards,

Rick.

I think that would be a pretty nifty lil block code ;)
Title: Re: Profile Visitors
Post by: August94 on June 06, 2008, 04:28:28 AM
I have problem I installed it in the Package Manager but still the Mod won't appearing or working. :(
Title: Re: Profile Visitors
Post by: [SiNaN] on June 06, 2008, 05:24:07 AM
Quote from: August94 on June 06, 2008, 04:28:28 AM
I have problem I installed it in the Package Manager but still the Mod won't appearing or working. :(

Have you enabled it from the Features and Options?
Title: Re: Profile Visitors
Post by: mikemikemike on June 06, 2008, 07:03:24 PM
Great Mod!

It's work fine.
Now i have see the last 5 visitors.
Is it posible to set it to 10 visitors?
Title: Re: Profile Visitors
Post by: [SiNaN] on June 07, 2008, 02:34:56 AM
No, not yet.
Title: Re: Profile Visitors
Post by: †MavN† on June 15, 2008, 08:36:57 AM
Russian Translation
Characterset - UTF8 (http://custom.simplemachines.ru/p13_sectionid/3/p13_fileid/10)
Characterset - windows-1251 (http://custom.simplemachines.ru/p13_sectionid/4/p13_fileid/9)
Title: Re: Profile Visitors
Post by: ASF on June 18, 2008, 12:47:36 AM
I like this mod.

but why does it show the time and the date? and it shows it wrong time and date on my site as well.....is it possible to remove this option?

Title: Re: Profile Visitors
Post by: wilsy on June 18, 2008, 05:09:08 PM
Quote from: wilsy on May 31, 2008, 02:59:38 PM
Hi Sinan,

Do you have any code to display profile visitors in a TinyPortal block?

Regards,

Wilsy.

Is this block possible?

"Latest Visitors to View Your Profile"

Regards,

Wilsy.
Title: Re: Profile Visitors
Post by: [SiNaN] on June 19, 2008, 06:57:42 AM
Quote from: ASF on June 18, 2008, 12:47:36 AM
I like this mod.

but why does it show the time and the date? and it shows it wrong time and date on my site as well.....is it possible to remove this option?

What do you mean by wrong?

Quote from: wilsy on June 18, 2008, 05:09:08 PM
Quote from: wilsy on May 31, 2008, 02:59:38 PM
Hi Sinan,

Do you have any code to display profile visitors in a TinyPortal block?

Regards,

Wilsy.

Is this block possible?

"Latest Visitors to View Your Profile"

Regards,

Wilsy.

Added to the to-do-list.

Title: Re: Profile Visitors
Post by: Eliana Tamerin on June 19, 2008, 11:21:22 AM
Quote from: ASF on June 18, 2008, 12:47:36 AM
I like this mod.

but why does it show the time and the date? and it shows it wrong time and date on my site as well.....is it possible to remove this option?



Do your posts also show the wrong time? Because SiNaN's mod just grabs the forum time, not client time. Check to make sure your time settings in your profile (Look and Layout Prefs) are correct.
Title: Re: Profile Visitors
Post by: wilsy on June 19, 2008, 04:16:24 PM
Quote from: [SiNaN] on June 19, 2008, 06:57:42 AM


Added to the to-do-list.



You're the man!!
Title: Re: Profile Visitors
Post by: Cal O'Shaw on June 19, 2008, 05:02:16 PM
Hi,

Don't want to be a bother, but do you have an estimate when 3.1 would be available?  That would include being able to choose which groups can see the visitors, if I recall correctly?  Perhaps also be able to choose the groups that do not leave a record of visiting a profile?

Really looking forward to trying this out!

Grazie,

Cal
Title: Re: Profile Visitors
Post by: Eliana Tamerin on June 19, 2008, 06:41:31 PM
When SiNaN gets to it. He's just been on hiatus, and I think his priority right now is getting out SimplePortal 2.0.
Title: Re: Profile Visitors
Post by: Cal O'Shaw on June 20, 2008, 03:44:34 AM
And that's why I was a bit reluctant to say anything.  When someone like SiNaN is so generous with his time and effort to build and share these MODs, it does feel to be poor form to inquire about when it would be ready.  I just didn't wish to pester, so if he said, say, not until August, I'd say thanks and then wait.
Title: Re: Profile Visitors
Post by: [SiNaN] on June 20, 2008, 03:49:49 AM
I'm still On Hiatus. I do not have my own computer and it is not so easy to find one. I think I should start looking for people to take over my mods.
Title: Re: Profile Visitors
Post by: pp08 on June 20, 2008, 06:40:06 PM
it installed right but what do i need to edit in my theme "fire" to be able to see it?
Title: Re: Profile Visitors
Post by: dannbass on June 21, 2008, 12:37:09 AM
You need to copy everything that goes into the Profile.template.php of the default into the Profile.template in your theme.
Title: Re: Profile Visitors
Post by: pp08 on June 21, 2008, 01:11:53 AM
in the default there is 2 profile.template.php file one just like that and another has ~ at the end of the file name which do i copy and put in my theme one?
Title: Re: Profile Visitors
Post by: dannbass on June 21, 2008, 01:24:37 AM
The one that has the ~ is a backup of the original, just in case, you will need to override the one without it.  But I highly recommend against it, because if your theme has "special" features in the profile.template.php then you will lose them.  Just open the file and copy the changes, and if you don't know how to do it, just look at the mod link, it will display a "how to" edit manually by steps, just under the download link.
Title: Re: Profile Visitors
Post by: dannbass on June 21, 2008, 02:10:48 AM
Is the date feature disabled? I installed it in my localhost and my live forum and I cannot see any dates... I checked everything and looked fine.
Title: Re: Profile Visitors
Post by: [SiNaN] on June 21, 2008, 02:33:29 AM
No, it is on by default. Are you using normal profile or Ultimate Profile?
Title: Re: Profile Visitors
Post by: dannbass on June 21, 2008, 02:36:47 AM
Ultimate Profile... haven't checked in the default.
Title: Re: Profile Visitors
Post by: dannbass on June 21, 2008, 02:40:34 AM
Ohh I see... the ', $visitor['time'], ' is not in the Ultimate Profile, no big deal... easy to add!
Title: Re: Profile Visitors
Post by: [SiNaN] on June 21, 2008, 02:57:35 AM
Just I haven't updated that. I hope to do some work on this mod soon.
Title: Re: Profile Visitors
Post by: dannbass on June 21, 2008, 03:00:47 AM
Cool! Thanks a lot [SiNaN]!!!
Title: Re: Profile Visitors
Post by: Cal O'Shaw on June 21, 2008, 03:04:54 AM
Well, when ever it works out for you is fine.  I know I'd really prefer to see this MOD stay in your hands rather than be passed to another.

Grazie mille,

Cal
Title: Re: Profile Visitors
Post by: pp08 on June 21, 2008, 10:13:01 PM
Quote from: dannbass on June 21, 2008, 12:37:09 AM
You need to copy everything that goes into the Profile.template.php of the default into the Profile.template in your theme.

if i do this i wont loss anything from the fire theme right?
Title: Re: Profile Visitors
Post by: Eliana Tamerin on June 21, 2008, 10:26:08 PM
Back up your copy of Profile.template.php so that if anything goes wrong, you can restore it properly.
Title: Re: Profile Visitors
Post by: ASF on July 12, 2008, 09:35:06 PM
does this work with smf 1.1.5? because i have tried everything and can't seem to get it going, maybe is because i am not using the defualt theme?
Title: Re: Profile Visitors
Post by: Sabre™ on July 12, 2008, 10:09:37 PM
It is because you are not using the default theme.
Read through earlier posts, and you will see how to manually fix this.
Most mods dont install into custom(non default) themes
Title: Re: Profile Visitors
Post by: brianjw on July 15, 2008, 05:56:46 PM
I installed version 3.0 today and I am trying to get it to display the date. The only two settings I can find in the Features and Options is enable and ignore admins. I see like two lines right under it as if there is supposed to be something else in there.
Can you help me get this to display like that and also display up and down instead of sideways so I can stick it in a thing inside of the ultimate profile.

Thanks,
brianjw
Title: Re: Profile Visitors
Post by: ElectricSquid on July 15, 2008, 09:22:12 PM
Cool, it works!!

Just one question, how do I limit the amount of visitors that show up in the users profile. I custom positioned this mod in Ultimate Profiles up at the top of the profile page, along side of the user controls that usually live 3/4 of the way down the page. This positioning only leaves room for 4, maybe 5 recent visitors to show before it messes the alignment up.

I either need to limit the amount of visitors that show up down to the latest 4 or 5, or somehow make that table scroll, which I'm a dumb@$$, I don't know how to do that yet.

.... and thanks for such a cool feature, and connecting it with Ultimate Profiles.
Title: Re: Profile Visitors
Post by: Rocks-HD on July 16, 2008, 03:57:07 AM
Quote from: brianjw on July 15, 2008, 05:56:46 PM
I installed version 3.0 today and I am trying to get it to display the date. The only two settings I can find in the Features and Options is enable and ignore admins. I see like two lines right under it as if there is supposed to be something else in there.
Can you help me get this to display like that and also display up and down instead of sideways so I can stick it in a thing inside of the ultimate profile.

Thanks,
brianjw
you can to teacher for us? because I try but I didn't achieve
Title: Re: Profile Visitors
Post by: ElectricSquid on July 16, 2008, 06:35:10 AM
Forget what I asked, I found out how to make it scroll, and I think that may be a better option than limiting the amount shown.



<table style="overflow: scroll;">

Title: Re: Profile Visitors
Post by: [SiNaN] on July 16, 2008, 08:28:48 AM
There was a problem with a Ultimate Profile view. Finished SP 2.0, will work on this mod. Just a week.
Title: Re: Profile Visitors
Post by: d58e7 on July 17, 2008, 10:21:57 PM
For some reason it looks like it installed right but doesn't appear to log visitors to the profile. It has a section on the ultimate profiles profile but it doesn't update with the people that've visited the profile.

I had to create the table manually and did so with the following sql commands

ALTER TABLE smf_members ADD visitors TINYTEXT NOT NULL
ALTER TABLE smf_members ADD visitorstime TINYTEXT NOT NULL
Title: Re: Profile Visitors
Post by: [SiNaN] on July 18, 2008, 06:53:07 AM
Have enabled it from the admin panel >> features and options?
Title: Re: Profile Visitors
Post by: d58e7 on July 18, 2008, 05:46:54 PM
Quote from: [SiNaN] on July 18, 2008, 06:53:07 AM
Have enabled it from the admin panel >> features and options?
Yep, it's strange because the section appears in the profile however it doesn't log anyone

Edit: I figured it out, I forgot to change one line in the load file. Now it's working, looks great. Another question, is there anyway to make the section for latest visitors show up at the bottom in the middle of the left and right sides?
Title: Re: Profile Visitors
Post by: [SiNaN] on July 19, 2008, 08:00:26 AM
You should make some changes in Profile.template.php. I think I should add this option in the next version.

Final release is almost finished. Just profile view count left to be implemented.
Title: Re: Profile Visitors
Post by: Kimmie on July 22, 2008, 04:43:15 PM
I there a way to fix it so that the words dont wrap (image attached)? There is a whole 1/2 inch on the left - can it be moved over more?

Also, the checkbox that you mark to exclude admins from being logged only works for the "root" admin account. Is there a way to include groups that have admin priviledges but are not in the main admin account? Example being, I dont use my "root" admin account to log in. I have another membergroup set up that has all admin priviledges that I use. I also have an Assnt Admin who is in a seperate membergroup as well and I dont want his to show up either. I would also prefer that none of my mods show up on them either, but I can probably live with that one. Perhaps, an option to exclude specific membergroups?

I am also getting these errors, but according to the parser, this file doesnt even get edited. I have added that file so you can take a look at it. I was initially using the original version of this mod with no problems. I uninstalled that one and installed 3.0 and thats when I started getting these errors:

8: Undefined index: pv_latest_visitors
File: /home//Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 461

8: Undefined index: pv_no_visitors
File: /home//Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 476
Title: Re: Profile Visitors
Post by: [SiNaN] on July 23, 2008, 09:01:23 AM
Version 4.0 is out. See the first (http://www.simplemachines.org/community/index.php?topic=233298.0) post of this topic for the detailed information.
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 23, 2008, 04:58:09 PM
thank you for the updated version.. it works like a charm.. no more errors!!! The ability to exclude non postcount groups is GREAT!!! :)

Couple of quick questions:

1. How can I change the time format to like it was before (its currently showing military time)
2. How can I get it to show the date again? its not showing on mine anymore

I didnt upgrade from 3.0 to 4.0. I uninstalled 3.0 first. (3.0 was causing errors)

(see image for both)
Title: Re: Profile Visitors (4.0 Released)
Post by: ElectricSquid on July 23, 2008, 06:59:32 PM
I have a few questions :P

I haven't had any errors (yet) with v3.0 and am very satisfied with how it works, should I still upgrade? or is it cool to wait for a while?

You say that there's an upgrade feature for those like me who would be replacing v3.0, how do I do this upgrade? Just install 4.0 through the package manager like a fresh install, but not uninstall v3.0 beforehand?

Is there a way to limit the amount of recent visitors that show up in profiles? v3.0? v4.0? (manual source edits are OK, I just need to know where to find it)



I must admit, I'm a little skiddish about upgrading after the few positioning and code changes I've made. On my site, this mod shows to the right of the user controls that have been moved to the top of the page in Ultimate Profiles. I edited your code (v3.0) so the only thing that shows now is the users avatar and name, which are both clickable and lead to their profile. The rest of the info was removed to better fit into our site.

So for someone in my position, do you still suggest upgrading?
Or should I just wait it out till I find an error or something?

note - I use a (only one) custom theme, site wide, and have limited users to that theme only (no default theme option)
Title: Re: Profile Visitors (4.0 Released)
Post by: elforoof on July 24, 2008, 01:34:37 AM
would it work on this theme??   Dilber Multicolor
Title: Re: Profile Visitors (4.0 Released)
Post by: edi67 on July 24, 2008, 02:39:31 AM
i hope to see this mod soon working on smf 2, is very useful and nice mod
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 24, 2008, 02:53:33 AM
Kimmie:

For both of your questions, do this:

Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], false),

∑£ℓ¢†®¡¢ §ợų¡đ:

If you ask me, you should upgrade because version 4.0 has many new features. (See the first post)

Like you said, install it like a new mod. But If you have made changes about the mod, it will not upgrade probably. Better uninstall the mod manually.

Yes, in the version 4.0, you can set the visitor count to show on profiles. (1 min - 20 max)

I still suggest you upgrading, the changes you made shouldn't be hard to do in the new version too. Also the new version has a better Ultimate Profile support.

elforoof:

If DilberMC theme has the Profile.template.php, you must make edits in that theme's file manually. If not, just install the package and it will work.

edi67:

Me too. :P

Will wait for the SMF 2.0 Beta 4 for update.
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 24, 2008, 03:25:51 AM
Quote from: [SiNaN] on July 24, 2008, 02:53:33 AM
Kimmie:

For both of your questions, do this:

Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], false),


Thanks that fixed it.   :D
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 24, 2008, 03:29:29 AM
Kimmie:

Thanks for you too, for using my mod. ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: ElectricSquid on July 24, 2008, 12:30:33 PM
Thanks, just the ability to limit the amount of visitors shown makes it worth it to redo my edits with the upgrade. Thanks for adding that feature in for 4.0
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 24, 2008, 05:57:32 PM
Quote from: [SiNaN] on July 24, 2008, 03:29:29 AM
Kimmie:

Thanks for you too, for using my mod. ;)

Not a problem. Your mods are really good.

One thing I noticed tho...when excluded groups visit profiles, its still counting them (image attached).
Title: Re: Profile Visitors (4.0 Released)
Post by: elforoof on July 24, 2008, 08:55:39 PM
thank you so much it works great  its almost like myspace, all i need is music on my profile,

thank you good job, im exited.

Quote from: [SiNaN] on July 24, 2008, 02:53:33 AM
Kimmie:

For both of your questions, do this:

Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], false),

∑£ℓ¢†®¡¢ §ợų¡đ:

If you ask me, you should upgrade because version 4.0 has many new features. (See the first post)

Like you said, install it like a new mod. But If you have made changes about the mod, it will not upgrade probably. Better uninstall the mod manually.

Yes, in the version 4.0, you can set the visitor count to show on profiles. (1 min - 20 max)

I still suggest you upgrading, the changes you made shouldn't be hard to do in the new version too. Also the new version has a better Ultimate Profile support.

elforoof:

If DilberMC theme has the Profile.template.php, you must make edits in that theme's file manually. If not, just install the package and it will work.

edi67:

Me too. :P

Will wait for the SMF 2.0 Beta 4 for update.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 25, 2008, 02:30:22 AM
Kimmie:

It's quite normal I guess. We do not log them, but we count that they've visited the profile.

elforoof:

Not at all. ;) Jay had something like that as I remember.
Title: Re: Profile Visitors (4.0 Released)
Post by: ElectricSquid on July 25, 2008, 12:59:38 PM
Quote from: elforoof on July 24, 2008, 08:55:39 PM
all i need is music on my profile

Try BOXSTr with MyFlashFetish. That's what we use now.
Here's a little write-up on it that you can also use to share this info with other users on your site.
click here:MUSIC in your Custom Profile  (http://wherethetrailends.com/index.php/topic,608.msg5165.html#msg5165)
Title: Re: Profile Visitors (4.0 Released)
Post by: Eliana Tamerin on July 25, 2008, 01:01:18 PM
That site requires a login.
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 25, 2008, 07:27:33 PM
Quote from: [SiNaN] on July 25, 2008, 02:30:22 AM
Kimmie:

It's quite normal I guess. We do not log them, but we count that they've visited the profile.


ok. I'm just worried it will cause issues in regards to when it records a regular member visiting the same profile that someone who is excluded from appearing visits. I will have to test that out and see how it shows up for both from a members perspective. The whole point in being excluded is that that member does not know when staff visit their profile but with it still recording the visit and showing up like that, their still gonna know. (they wont know "who" persay, but they will know it has been visited by someone).

Title: Re: Profile Visitors (4.0 Released)
Post by: Richardgm on July 25, 2008, 08:14:39 PM
I always thought regular members could see their visitors? But only myself (admin) seem to be able to. Is that how it's supposed to be?
Title: Re: Profile Visitors (4.0 Released)
Post by: elforoof on July 25, 2008, 08:49:28 PM
go to permissions and enable it!!

Quote from: Richardgm on July 25, 2008, 08:14:39 PM
I always thought regular members could see their visitors? But only myself (admin) seem to be able to. Is that how it's supposed to be?
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 25, 2008, 08:50:04 PM
Quote from: Richardgm on July 25, 2008, 08:14:39 PM
I always thought regular members could see their visitors? But only myself (admin) seem to be able to. Is that how it's supposed to be?

You need to set that permission in your admin panel.
Title: Re: Profile Visitors (4.0 Released)
Post by: Richardgm on July 25, 2008, 09:41:36 PM
Thanks. Might need to put that in the readme, or something.

Thanks again guys.
Title: Re: Profile Visitors (4.0 Released)
Post by: ElectricSquid on July 26, 2008, 01:22:35 AM
With the edits ive done, i went through hell and high water to upgrade, and was still unsuccessful. After reverting back to 3.0, i was able to extract the i=1 part in 4.0 and frankenstien it into my Ultimate Profile template to get the multiple rows of visitors to display well. Thanks, thats exactly what i needed
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 26, 2008, 06:22:11 AM
Kimmie:

Do this:

Profile.php

Find and Cut:

// Deal with the visitor count if he's not the owner and this wasn't the last profile he visited.
if ($memID != $ID_MEMBER && (empty($_SESSION['last_viewed_profile']) || $_SESSION['last_viewed_profile'] != $memID)) {

// Increase by one.
updateMemberData($memID, array('visitorcount' => '+'));

// Log the last visited member ID.
$_SESSION['last_viewed_profile'] = $memID;
}


Paste After the Code:

if($log_user) {


∑£ℓ¢†®¡¢ §ợų¡đ:

It displays the visitors exactly how buddies are listed in the Ultimate Profile.

But make sure you remove the 3.0 completely and install the 4.0.
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 26, 2008, 04:41:23 PM
Quote from: [SiNaN] on July 26, 2008, 06:22:11 AM
Kimmie:

Do this:

Profile.php

Find and Cut:

// Deal with the visitor count if he's not the owner and this wasn't the last profile he visited.
if ($memID != $ID_MEMBER && (empty($_SESSION['last_viewed_profile']) || $_SESSION['last_viewed_profile'] != $memID)) {

// Increase by one.
updateMemberData($memID, array('visitorcount' => '+'));

// Log the last visited member ID.
$_SESSION['last_viewed_profile'] = $memID;
}


Paste After the Code:

if($log_user) {


OK I made the change. I will let you know if it works.

1 more question hehe. Is it supposed to show the number of visits for "each person" or just total visits period? (see image)

Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on July 26, 2008, 07:47:19 PM
parseArchive(): No package-info.xml in this mod! Is it corrupted?

^
|
Package Parser Error

Direct Install Error:- The package you tried to upload either is not a valid package or has become corrupted.

Please let me know what to do..

Thanks.
Title: Re: Profile Visitors (4.0 Released)
Post by: Eliana Tamerin on July 27, 2008, 12:31:00 AM
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1150;attach=62103;smf_version=1.1.5
Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 05:04:18 AM
is that the only way I can install it, as it wont show up in the installation and i cant uninstall it via the website. I will have to do all the coding back.. Please let me know..

Thanks
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 27, 2008, 06:27:32 AM
Kimmie:

What does "total visits period" mean? It just shows how many times people visited your profile. When somebody looks at your profile, it increases.

optimushunk:

Try dowloading the package again and then try.
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 27, 2008, 12:30:36 PM
Quote from: [SiNaN] on July 27, 2008, 06:27:32 AM
Kimmie:

What does "total visits period" mean? It just shows how many times people visited your profile. When somebody looks at your profile, it increases.


Total visits period means total visits by "everyone". I was under the impression (more like hoping) that it would show under each person, how many times that person visited.   :P

Its still a great mod. If you ever decide to make it to where it shows under each one, how many times that person visited, that would be a great feature. :)
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 27, 2008, 01:43:27 PM
Kimmie:

Great features need great effort. :P
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on July 27, 2008, 08:46:30 PM
hehe they also need great people like you to code them :). Keep up the great work!!

Theres a reason why you got "Support Helper of the Month"  (you deserve it) 8)
Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 09:27:55 PM
Quote from: [SiNaN] on July 27, 2008, 06:27:32 AM
optimushunk:

Try dowloading the package again and then try.

Well that worked... Now I wonder where is UltimateProfile.template.php ?? I havnt got it in my defauly theme..
Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 09:38:32 PM
ooh.. nvm.. i thought it was important.. everything worked out.. thanks for your help and for this mod....
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on July 28, 2008, 02:52:40 AM
Kimmie:

Thanks Kimmie, for your comments. It's a pleasure to members like you.

optimushunk:

Glad you get it working. ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: Rocks-HD on August 01, 2008, 06:20:47 AM
thanks man, this package is very important for me, but I don't have smf 1.1.4

I try modify this package for work in smf 2.0, and work, but have bugs, you can help with the parts of the files?
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 01, 2008, 11:33:32 AM
Rocks-HD:

Thanks to Kimmie that I've found an ingenious way of doing this mod. Once I implement my ideas into mod, it would be too easier to update for SMF 2.x.
Title: Re: Profile Visitors (4.0 Released)
Post by: 58tbird on August 02, 2008, 12:49:09 PM
Hi!  I think I'm missing something, or I don't understand.  I successfully installed it on my default theme 1.1.5, however, visitors appear on my admin account  but not my other two accounts which are both global admins (I've visited all 3 accounts from all 3 accounts).  Does this mod only allow admins to view who visited their profile?

Also, I don't understand your 2nd screenshot - where is that located and what's the purpose of "Can remove profile visitors"?
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 02, 2008, 12:51:41 PM
Have you given the permission to view visitors for the other groups too?

It's under the

Admin CP >> Permissions

on every group permission.

People with "Can remove visitors" permission can remove the visitors from profiles.
Title: Re: Profile Visitors (4.0 Released)
Post by: 58tbird on August 02, 2008, 02:06:18 PM
Thank you SiNaN!

In case any other newbies have trouble finding theirs, here's how I accessed and changed the permissions:

Admin>Members>Permission>Permission by Membergroup

Click "Modify" to open the page as shown in the 2nd screenshot, or:

I really like this mod - thank you! ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 10, 2008, 09:03:13 AM
Hi ,

I have using profile visitors 2.0 .
Yesterday i have installed the Ultimate profile mod.

so i would like to uninstall the profile visitors 2.0 mod and update latest mod and ultimate profile compactable version.

I have tried to uninstall the v2.0 and got three error,
Have checked could not do without your help so i have attached it.

Help to remove it and reinstall with the latest v4.0 which suits ultimate profile mod fn. also.

6.  Execute Modification  ./Sources/Load.php  Test failed
7. Execute Modification ./Sources/Profile.php Test failed
8. Execute Modification ./Themes/default/Profile.template.php Test failed
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 11, 2008, 08:22:21 AM
SiNaN, Waiting for the updates in this post SiNaN.
Title: Re: Profile Visitors (4.0 Released)
Post by: Rocks-HD on August 11, 2008, 09:39:12 PM
Quote from: [SiNaN] on August 01, 2008, 11:33:32 AM
Rocks-HD:

Thanks to Kimmie that I've found an ingenious way of doing this mod. Once I implement my ideas into mod, it would be too easier to update for SMF 2.x.
for me is very hard because I don't have time for undestand this new forum, but if you make this mod for smf 2.0 is better.

thanks again
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 05:52:11 AM
asudhakar:

Your files are attached, uninstall the mod and copy the files to your server. Then install the fresh one.

Rocks-HD:

I'll do it myself when 2.0 will be quite more stable.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 08:59:04 AM
Quote from: [SiNaN] on August 12, 2008, 05:52:11 AM
asudhakar:

Your files are attached, uninstall the mod and copy the files to your server. Then install the fresh one.


Thanks for it , and where is the edited filed attached. No attachments found here.

And i have Ultimate Profile mod. Guide me through the suitable version.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 09:22:54 AM
Sorry, I forgot to attach them.

Use 4.0, it is ulimately compatible with Ulimate Profile.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 11:28:40 AM
Hi i have uninstalled it with errors.

Then Replaced with the edited files.

Still my profile page gone a side, have a look at http://forum.itacumens.com/index.php?action=profile;u=1

Then, i have started installing v4.0.

Shows the error in these files.

Could you help me out .

2.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test failed
9.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
10.    Execute Modification    ./Themes/default/UltimateProfile.template.php    Test successful
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 11:31:01 AM
Sorry again, can you try the file attached?
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 12:01:33 PM
Hi,

Its as the same error even after replacing the file.

1st) No my problem is that, my profile is not showing properly.

2nd) Tried to install v4.0 and got the 3 test failed.

could you check the previous post and help me.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 12:19:15 PM
Okay, I'm trying to make you profile show as it should be doing.

The first file you attached, was working fine, right?
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 12:22:15 PM
Quote from: [SiNaN] on August 12, 2008, 12:19:15 PM
Okay, I'm trying to make you profile show as it should be doing.

The first file you attached, was working fine, right?

Yes its working good.

And after this edit you made i want to update my profile visitors v4.0 also .

I understand the Three files you asked me to replace after uninstall has bugs either to show current profile as well as install new.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 12:27:44 PM
First let's solve your current Profile page problem.

Can you upload this file?
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 12:38:45 PM
Quote from: [SiNaN] on August 12, 2008, 12:27:44 PM
First let's solve your current Profile page problem.

Can you upload this file?

You know this, i got it working now - http://forum.itacumens.com/index.php?action=profile;u=1

Thanks for it first .
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 12:42:50 PM
Okay, now attach the files you are getting error while installing 4.0. Profile.template.php shouldn't be giving error now.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 12:46:01 PM
But it Gives error now also.

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test failed
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test failed
5.    Execute Modification    ./Sources/Profile.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
8.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
9.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
10.    Execute Modification    ./Themes/default/UltimateProfile.template.php    Test successful
11.    Execute Code    install.php

Those Files showing error is being sent by you after modified.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 12:47:50 PM
Weird. Doesn't matter. You can install manually or can attach the files giving error here and I'll do it for you.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 12:52:05 PM
Quote from: [SiNaN] on August 12, 2008, 12:47:50 PM
Weird. Doesn't matter. You can install manually or can attach the files giving error here and I'll do it for you.

I understand, am sorry for . I will now try to do it myself using parser. Or will show you where the error was.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 01:11:12 PM
Hi , i found the small piece of error in Profle template page.


Find:

<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor">



Replace with:

<table border="0" cellpadding="0" cellspacing="1" align="center" class="bordercolor">


But it is already replaced, so it shows the error.

Profile.php as no error. Everything is good. But still shows error. will update this once parsing over.

Thanks for your guidance.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 12, 2008, 01:16:26 PM
Okay, just inform me if you has problems.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 12, 2008, 02:26:15 PM
Quote from: [SiNaN] on August 12, 2008, 01:16:26 PM
Okay, just inform me if you has problems.

Thank you SiNaN, got it working good.
Nice Updation even checked with the Ultimate profile.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 13, 2008, 05:56:15 AM
Okay, glad you get it working. ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: MissyNL on August 13, 2008, 08:28:32 AM
I really love this mod... however .. i sence that my members do not want this mos. because they feel that there privacy is invaded :(
However.. do you know if i can only have the part where the member can see how many visitors they had, without having to see who they where?  Or... the option that if the user does not want that anybody can see her visiting.. that they have the option to disable the function themself.. but that they also do not have the visitors blok then???
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 13, 2008, 08:33:30 AM
It doesn't have a member-based feature like that. But I've noted that, will think of adding to the next version.

If you just need the visitor count, I can just provide those codes for you.
Title: Re: Profile Visitors (4.0 Released)
Post by: MissyNL on August 13, 2008, 08:58:03 AM
Quote from: [SiNaN] on August 13, 2008, 08:33:30 AM
It doesn't have a member-based feature like that. But I've noted that, will think of adding to the next version.

If you just need the visitor count, I can just provide those codes for you.
wow.. sinan.. your quick :D thank you so much.. i have now added a poll onmy site to see of my members really think of it.. but.. if you can give me the codes.. that would be awsome!!!  i have suggested a mod for this in the mod request area.. and someone else needed such a mod also :)
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 13, 2008, 10:00:50 AM
I finished the package but where do we show the visitor count? Both for normal profile and ultimate profile? You tell me them, and I'll attach the ProfileVisitorsLite package here. :)
Title: Re: Profile Visitors (4.0 Released)
Post by: MissyNL on August 13, 2008, 10:13:58 AM
wel... maybe it's a good idea to always show it here (see the attached). Maybe in the first block.. because that is a general block and the other is a more personal block... And i use Ultimate profile BTW :)
   
But i have run the poll.. and everyone is exited.. but only if they can switch it of.. it seems that an other profile hoster www.hyves.nl haves the same option... that if i turn it off.. no one can see what profiles i am visiting, but then I can not  see who is visiting my profile...   so that they have an option to be anonymus.. :)
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 13, 2008, 10:23:44 AM
This mod has permission for viewing profile visitors. You could just do not give anyone permission and you will be able to see who visited whose profile. But nobody, other than admins will be able to. Also you can exclude groups from being logged.

I can put in that area for Ultimate Profile. And normal profile? :)
Title: Re: Profile Visitors (4.0 Released)
Post by: MissyNL on August 13, 2008, 10:43:15 AM
Quote from: [SiNaN] on August 13, 2008, 10:23:44 AM
This mod has permission for viewing profile visitors. You could just do not give anyone permission and you will be able to see who visited whose profile. But nobody, other than admins will be able to. Also you can exclude groups from being logged.

I can put in that area for Ultimate Profile. And normal profile? :)

Yes.. i know.. but some of my members do not like the fact if someone can see they have visited their profile.. so if that option is included for those members... that they can choose.. that would be great.... just some sort of switch that they themself can disable the mod..   Some members like it very much.. my poll now says 50 / 50 % :D   

It would be great if the admin can choose in the admin section /  permission  if the member has that option.  It would be great if members have the option to swich it on or off at the manage profile page.. but i gues you only have that page when you have ultimate profile..  This mod is not for me.. i do not need to see who has visited who's page.. :)

And for the profile visitor lite version ... many thanks.. btw!!!  i would use the same area... since that area is also in the normal mode...
Title: Re: Profile Visitors (4.0 Released)
Post by: FragaCampos on August 15, 2008, 09:50:42 AM
Thanks a lot for the mod!
Here's my little contribution. Portuguese translation:

$txt['pv_title'] = 'Visitantes ao Perfil';
$txt['pv_latest_visitors'] = '&Uacute;ltimos Visitantes';
$txt['pv_no_visitors'] = 'Nenhum visitante.';
$txt['pv_visit_count'] = 'Visitado %s vezes.';
$txt['pv_enabled'] = 'Activar Visitantes ao Perfil?';
$txt['pv_show_count'] = 'N&uacute;mero de Visitantes a Mostrar:<div class="smalltext">(1 min - 20 max)</div>';
$txt['pv_style'] = 'Estilo de exibi&ccedil;&atilde;o do Visitante:';
$txt['pv_style_vertical'] = 'Vertical';
$txt['pv_style_horizontal'] = 'Horizontal';
$txt['pv_not_log'] = 'N&atilde;o registar membros do grupo:';

$txt['cannot_profile_delete_visitor'] = 'N&atilde;o tem permiss&atilde;o para apagar os visitantes.';

$txt['permissionname_profile_delete_visitor'] = 'Pode remover visitantes do perfil?';
$txt['permissionname_profile_view_visitor'] = 'Pode ver visitantes do perfil?';
$txt['permissionname_profile_view_visitor_own'] = 'Pr&oacute;prio perfil';
$txt['permissionname_profile_view_visitor_any'] = 'Qualquer perfil';
Title: Re: Profile Visitors (4.0 Released)
Post by: Sickthing on August 24, 2008, 11:46:01 AM
I'm getting an error when I install this:

QuoteDuplicate column name 'visitors'
File: /home/heyjoe/public_html/philippine-expat-community/Packages/temp/install.php
Line: 6

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.

I didn't install but I'd like to.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 24, 2008, 12:15:58 PM
Have you installed this mod before? What was the version at that time?
Title: Re: Profile Visitors (4.0 Released)
Post by: Sickthing on August 24, 2008, 11:01:50 PM
Yes but....  I installed too many mods..  Like a kid in a candy store, I wanted to try everything!  So I uninstalled all mods.  That got rid of all the errors I was seeing in the error logs.  I started installing back the mods I wanted the most.  I uninstalled anything that generated error messages this time around.

The first time I installed it, I got the same error.  This mod is the only one complaining about that.  I went ahead and installed it the first time though.  It was working fine.

I realize now, I should have installed things on a test\development board first.   If we can't fix it, I can live without it but I'd really like to have it.  I think it is a conflict with another mod.  I will get a test board up and see what happens.

I have not had an SMF board up for a couple of years, so I'm basically brand new again.  I'm sure it is a user error.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sabre™ on August 25, 2008, 01:04:27 AM
Because of this line
Duplicate column name 'visitors'
I believe your attempt at removing it first time round, was not done properlly.
Have you gone through the templates this mod modifies, to make sure you do not have duplicate lines/code?
A [PACKAGE PARSER] (http://sleepycode.com/PackageParser/index.php) could help you check the code, and will help you in further instances.

3am. night all :)
Title: Re: Profile Visitors (4.0 Released)
Post by: Sickthing on August 25, 2008, 03:08:35 AM
I got the error the first time I installed it.   
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 25, 2008, 10:32:15 AM
In modifications, removing the db edits are not required if they do not change core functions. So I didn't include in uninstall too to prevent loss of profile visitors if you want to install it again.

What you need to do is, running this query from PhpMyAdmin:

ALTER TABLE smf_members
DROP visitors

After that you can install the mod. But incase if you get an error like this: Duplicate column name 'visitorstime'; then run this query too:

ALTER TABLE smf_members
DROP visitorstime
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 25, 2008, 03:22:50 PM
In ultimate profile. I could not see the no of times the no of peoples visited
Check and help me out .
Title: Re: Profile Visitors (4.0 Released)
Post by: Sickthing on August 26, 2008, 01:45:07 AM
Quote from: [SiNaN] on August 25, 2008, 10:32:15 AM
In modifications, removing the db edits are not required if they do not change core functions. So I didn't include in uninstall too to prevent loss of profile visitors if you want to install it again.

What you need to do is, running this query from PhpMyAdmin:

ALTER TABLE smf_members
DROP visitors

After that you can install the mod. But incase if you get an error like this: Duplicate column name 'visitorstime'; then run this query too:

ALTER TABLE smf_members
DROP visitorstime

Thanks, I'll do a backup and give it a try!
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 26, 2008, 03:19:48 AM
asudhakar:

Which version have you installed? Can you attach your UltimateProfile.php?

Sickthing:

Okay, I hope it works.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on August 26, 2008, 03:39:01 PM
Yes i have used the version which has updates to ultimateprofile update in it.

You have helped me in selecting the version.

Check the profile @ http://forum.itacumens.com/index.php?action=profile;u=1

If normal view shows the total number of visits if inside ultimate profile it does not.
Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on August 26, 2008, 04:39:15 PM
Jana Gana Mana Rocks the world... just 53 seconds but yet heart touching...
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 26, 2008, 04:57:11 PM
asudhakar:

I can't see it. Guests don't have permission to view profile visitors I think.

F.L.A.M.E.R:

Sorry. I couldn't get what you mean.
Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on August 26, 2008, 07:08:39 PM
wasnt anything related to the mod... just saw the demo and felt like giving a comment.. well gr8 mod..
Title: Re: Profile Visitors (4.0 Released)
Post by: Sickthing on August 27, 2008, 01:39:18 AM
Quote from: [SiNaN] on August 26, 2008, 03:19:48 AM
asudhakar:

Which version have you installed? Can you attach your UltimateProfile.php?

Sickthing:


Okay, I hope it works.


It fixed that problem but now I have a new one.  Not relatd to just your mod but several mods.  I thought I would ask you if you know how to fix it for yours and perhaps that will tell m how to fix the others.

I found it necessary to do a clean re-install of the original untouched SMF files.

After I did that and re-installed mods I have several that install without issue but I ran into the problem that some mods display part or all of their code at the top of the website.  Such as:

Quote$txt['pv_title'] = 'Profile Visitors'; $txt['pv_latest_visitors'] = 'Latest Visitors'; $txt['pv_no_visitors'] = 'No visitors.'; $txt['pv_visit_count'] = 'Visited %s times.'; $txt['pv_enabled'] = 'Enable Profile Visitors?'; $txt['pv_show_count'] = 'Count of visitors to show:
(1 min - 20 max)
'; $txt['pv_style'] = 'Visitor display style:'; $txt['pv_style_vertical'] = 'Vertical'; $txt['pv_style_horizontal'] = 'Horizontal'; $txt['pv_not_log'] = 'Do not log member groups:'; $txt['cannot_profile_delete_visitor'] = 'You do not have the permission for deleting visitors.'; $txt['permissionname_profile_delete_visitor'] = 'Can remove profile visitors?'; $txt['permissionname_profile_view_visitor'] = 'Can view profile visitors?'; $txt['permissionname_profile_view_visitor_own'] = 'Own profile'; $txt['permissionname_profile_view_visitor_any'] = 'Any profile';

Your mod is certainly not causing this, something I did is causing it.  Do you know how I can fix it?  If not, do you understand what is causing it? 

Thanks for any help you can give.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 27, 2008, 04:14:57 PM
Open your ../Themes/default/languages/Modifications.english.php.

Find and Cut:

?>

Paste after everything (at the end). It should fix.
Title: Re: Profile Visitors (4.0 Released)
Post by: callteg4 on August 29, 2008, 09:17:52 AM
Just been looking and in my profile visits in the admin panel I can not select what groups will not show up please help
Title: Re: Profile Visitors (4.0 Released)
Post by: callteg4 on August 29, 2008, 10:40:25 AM
I uninstalled and installed again got it working again thanks
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 29, 2008, 02:45:56 PM
Glad you get it working. :)
Title: Re: Profile Visitors (4.0 Released)
Post by: callteg4 on August 29, 2008, 03:16:22 PM
 ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: Marcus Forsberg on August 30, 2008, 05:10:58 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on August 30, 2008, 05:25:43 AM
My SMF 2.x Mods:

PM Informer (http://custom.simplemachines.org/mods/index.php?mod=1202)
Topic Locked Message (http://custom.simplemachines.org/mods/index.php?mod=1177)

Excluding SimplePortal, my other mods will not be updated to SMF 2.x until the final release.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on September 01, 2008, 01:04:09 PM
Quote from: F.L.A.M.E.R on August 26, 2008, 04:39:15 PM
Jana Gana Mana Rocks the world... just 53 seconds but yet heart touching...

Thanks a lot for excellent comment i have never expected from a SMF community.
Its Our National Anthem. Thanks a lot Mumbai F.L.A.M.E.R . But it seems you are 16 , is that true.

Quote from: [SiNaN] on August 26, 2008, 04:57:11 PM
asudhakar:

I can't see it. Guests don't have permission to view profile visitors I think.

F.L.A.M.E.R:

Sorry. I couldn't get what you mean.

No way, guest could access the profile page . I have checked it and F.L.A.M.E.R is taking about the video i have in my profile.
Title: Re: Profile Visitors (4.0 Released)
Post by: runebergen on September 02, 2008, 12:12:46 PM

Go figure, every time I look around for a mod i desperately need... its Sinan who have made it :D :D :D



Rockin mod this one too!!! 
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on September 02, 2008, 07:35:48 PM
They can see profile pages, but not Profile Visitors.

Thanks runebergen. ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: billis_2 on September 09, 2008, 05:37:11 PM
 Please help me!

Install Actions
Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:                                             Type Action Description
1. Execute Modification ./index.php                                                                     Test successful
2. Execute Modification ./Sources/Load.php                                                            Test successful
3. Execute Modification ./Sources/ManagePermissions.php                                            Test successful
4. Execute Modification ./Sources/ModSettings.php                                                               Test successful
5. Execute Modification ./Sources/Profile.php                                                            Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php         Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php     Skipping file
8. Execute Modification ./Themes/default/Admin.template.php                                      Test successful
9. Execute Modification ./Themes/default/Profile.template.php                                      Test successful
10. Execute Modification ./Themes/default/UltimateProfile.template.php                       Skipping file
11. Execute Code install.php

And
Database Error
Duplicate column name 'visitors'
File: /***/***/public_html/forom/Packages/temp/install.php
Line: 6
Title: Re: Profile Visitors (4.0 Released)
Post by: shadow82x on September 09, 2008, 06:03:00 PM
Will this be updated to 2.0 soon? Or in 5.0?
Title: Re: Profile Visitors (4.0 Released)
Post by: Adish - (F.L.A.M.E.R) on September 09, 2008, 06:05:40 PM
Quote from: billis_2 on September 09, 2008, 05:37:11 PM
Please help me!

Install Actions
Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:                                             Type Action Description
1. Execute Modification ./index.php                                                                     Test successful
2. Execute Modification ./Sources/Load.php                                                            Test successful
3. Execute Modification ./Sources/ManagePermissions.php                                            Test successful
4. Execute Modification ./Sources/ModSettings.php                                                               Test successful
5. Execute Modification ./Sources/Profile.php                                                            Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php         Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php     Skipping file
8. Execute Modification ./Themes/default/Admin.template.php                                      Test successful
9. Execute Modification ./Themes/default/Profile.template.php                                      Test successful
10. Execute Modification ./Themes/default/UltimateProfile.template.php                       Skipping file
11. Execute Code install.php

And
Database Error
Duplicate column name 'visitors'
File: /***/***/public_html/forom/Packages/temp/install.php
Line: 6


Welcome to SMF !, i dont see any problem here... all the tests are successfull.. and the duplicate entry in the database was like due to the last uninstall which "maybe" wasnt made properly... it is not a problem actually.. just carry on the forum.. if you get the error again just report in back..
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on September 11, 2008, 10:21:20 AM
shadow82x:

Probably. I'm going to rewrite the mod and update to SMF 2.0. Just too busy these days.

billis_2:

Run this query from PhpMyAdmin before installing the mod:

ALTER TABLE smf_members
DROP visitors,
DROP visitorstime
Title: Re: Profile Visitors (4.0 Released)
Post by: shadow82x on September 11, 2008, 03:20:41 PM
Quoteshadow82x:

Probably. I'm going to rewrite the mod and update to SMF 2.0. Just too busy these days.
Perfectly understandable. Its the school year now. :P ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: puppeter on September 17, 2008, 07:48:08 AM
I get the same message:

Duplicate column name 'visitors'
File: /***/***/public_html/forom/Packages/temp/install.php
Line: 6


and it prevents me from installing the mod... now what?

someone said that this message should be ignored, but mod isnt working at all...
Title: Re: Profile Visitors (4.0 Released)
Post by: 4fit? on September 17, 2008, 09:31:53 AM
Mod installed and is workig fine.  However, the time that is logged is off.  For instance, my forum time says 9:29:14, but my profile visit says 5:29:14.  Appeara that it is not picking up the forum time offset correctly or something.  Any fix for this
Title: Re: Profile Visitors (4.0 Released)
Post by: F4r4Zm0In on September 17, 2008, 12:31:49 PM
Hi all,

while trying to access profile :

http://mydomainname.com/community/index.php?action=profile

I am getting this error message

Quote

    Database Error
    Unknown column 'mem.visitorcount' in 'field list'
    File: /home/vol2/byethost15.com/b15_800787/mydomainname.com/htdocs/community/Sources/Load.php
    Line: 895

Also, while trying to access user profile's

for example > http://mydomainname.com/community/profiles/jackking-u302.html

i am getting the same error message:

Quote

    Database Error
    Unknown column 'mem.visitorcount' in 'field list'
    File: /home/vol2/byethost15.com/b15_800788/mydomainname.com/htdocs/community/Sources/Load.php
    Line: 895



Any ideas  ???



Title: Re: Profile Visitors (4.0 Released)
Post by: F4r4Zm0In on September 19, 2008, 12:57:50 AM
Common Fellow,

Its already two days passed, and i have received no response

Can some please throw some light on this issue.

Regards.
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on September 25, 2008, 08:55:22 AM
puppeter:

Run this query from PhpMyAdmin:

ALTER TABLE smf_members
DROP visitors

It the problem wil persist, then use this:

ALTER TABLE smf_members
DROP visitorstime

4fit?:

This is an old mod of my, it has some annoying bugs but really don't have time to update.

../Sources/Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], $time_format),

F4r4Zm0In:

Run this query from PhpMyAdmin:

ALTER TABLE smf_members
ADD visitorcount INT( 10 ) DEFAULT 0 NOT NULL

For all:

I was moving my house, sorry for delay.
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on October 01, 2008, 06:29:48 PM
I have been randomly seeing these 2 errors (once every few days) in my log and I am not sure if its a mod issue or not so I wanted to check with you here first :) :

http://patriotgames2.info/index.php?action=profile2 
8: Undefined index: visitors
File: /home//public_html/Sources/Profile.php
Line: 445

http://patriotgames2.info/index.php?action=profile2
8: Undefined index: visitorstime
File: /home/patriotg/public_html/Sources/Profile.php
Line: 446

(every time I get this error it always shows "profile2")

When I click on the link that it gives as to where the error occured I get this (which is what I am assuming the member saw):

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

Would this be a mod issue or just a general issue appearing because this person is trying to view the profile of someone who is no longer a member? If it is just a general error, does the fact that the ending on the link always shows "profile2" mean that its the same persons profile they are all trying to view? (meaning member #2)?

Thanks for any info you can provide on this :)
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on October 01, 2008, 06:55:40 PM
Interesting. I know this mod has a few bugs but not sure what causes that. Can you attach your Profile.php file here?
Title: Re: Profile Visitors (4.0 Released)
Post by: Filipina on October 07, 2008, 03:08:03 PM
hi.  I love this MOD idea and I tried for several hours to make it work with the SMF Gallery Pro Mod which shows the most recent 5 pictures you add in the gallery inside your profile.  The Gallery Pro MOD lists the pictures right below your profile picture.  I am trying to get this profile visitors MOD to show display directly below the Gallery Pro MOD pics in the same column of course. 

Is it possible you can look at this profile.template file to see if it is possible to work.  I going to change the gallery profile MOD to list the last 3 instead of 5 so there is more room, if I can get this Mod to work.  Thanks for listening :) 
Title: Re: Profile Visitors (4.0 Released)
Post by: djrem on October 08, 2008, 02:08:34 PM
One of my previous mods has edited the ban exceptions part of sources/profile.php

where would i need to put this part of the code:



'explanation' => $ban_explanation, ); } mysql_free_result($request); } // Do we need to fetch the visitor data? if(!empty($modSettings['pv_enabled']) && $context['can_view_visitor']) { //Prepare data variables. $context['visitor_profiles'] = array(); $visitor = explode(',', $context['member']['visitors']); $visitortime = explode(',', $context['member']['visitorstime']); $count = 19; $found = 0; while($count >= 0) { if (!empty($visitor[$count])) { //Get visitors' profile info. $request = db_query(" SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename FROM {$db_prefix}members as m LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER) WHERE m.ID_MEMBER = $visitor[$count]", __FILE__, __LINE__); while ($row = mysql_fetch_assoc($request)) { //Just an avatar check. if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size'])) { $sizes = url_image_size($row['avatar']); // Does your avatar still fit the maximum size? if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external'])))) { // Fix it permanently! $row['avatar'] = ''; updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\'')); } } $past = time() - $visitortime[$count]; if($past > 86400) $time_format = '%d/%m/%y'; else $time_format = '%H:%M:%S'; //Build up the array. $context['visitor_profiles'][] = array ( 'id' => $row['ID_MEMBER'], 'username' => $row['realName'], 'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>', 'avatar' => array( 'name' => $row['avatar'], 'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'), 'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']), 'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']), ), 'time' => strftime($time_format, $visitortime[$count]), ); } mysql_free_result($request); $found = $found + 1; if($found == $modSettings['pv_show_count']) break; } $count = $count - 1; } }



I have attached
Title: Re: Profile Visitors (4.0 Released)
Post by: ryozo on October 14, 2008, 12:12:11 PM
Problem encountered during install

Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:    Type   Action   Description
1.   Execute Modification   ./Themes/default/languages/Errors.english.php   Test successful
2.   Execute Modification   ./Themes/default/languages/ManagePermissions.english.php   Test successful
3.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
4.   Execute Modification   ./index.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Sources/Load.php   Test successful
7.   Execute Modification   ./Sources/Profile.php   Test successful
8.   Execute Modification   ./Themes/default/Profile.template.php   Test failed
9.   Execute Modification   ./Sources/ModSettings.php   Test failed
10.   Execute Modification   ./Themes/default/UltimateProfile.template.php   Skipping file
11.   Execute Code   database.php

I did Double check what this mod is searching in profile.template and modsetting.
all the codes are there so there should be no problem.
im attaching my profile.template and modsetting.

Thanks!
Title: Re: Profile Visitors (4.0 Released)
Post by: Sudhakar Arjunan on October 15, 2008, 02:05:56 PM
Hi SiNaN, Will i get a update to 2.0.4.
Title: Re: Profile Visitors (4.0 Released)
Post by: efil59 on October 23, 2008, 06:45:11 AM
Hi,
It's excellent mod!

I have this problem:
The time that the mod display it's not the forum time.
I think it display the server time.
How can i change it?
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on October 23, 2008, 07:55:28 AM
This will do it:

Quote from: [SiNaN] on September 25, 2008, 08:55:22 AM
4fit?:

This is an old mod of my, it has some annoying bugs but really don't have time to update.

../Sources/Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], $time_format),
Title: Re: Profile Visitors (4.0 Released)
Post by: efil59 on October 23, 2008, 08:21:04 AM
Quote from: [SiNaN] on October 23, 2008, 07:55:28 AM
This will do it:

Quote from: [SiNaN] on September 25, 2008, 08:55:22 AM
4fit?:

This is an old mod of my, it has some annoying bugs but really don't have time to update.

../Sources/Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], $time_format),

Thank you!
It's fixed the problem.

Title: Re: Profile Visitors (4.0 Released)
Post by: netco on November 04, 2008, 12:48:20 PM
we are still waiting the mod with new version smf 2.4 .
Title: Re: Profile Visitors (4.0 Released)
Post by: Sabre™ on November 04, 2008, 03:49:44 PM
@ ryozo
[SiNaN] is very busy these days, so I will try to assist you :)
Install the mod regardless of the errors, then replace your 2 templates that failed, with the 2 I have attached.

Post back on your result.

Good luck :)
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on November 05, 2008, 03:15:31 AM
Sabre™, what those files for?

I'm recoding the mod for both versions. It will be finished very soon.
Title: Re: Profile Visitors (4.0 Released)
Post by: Sabre™ on November 05, 2008, 03:47:10 AM
They were his files which failed installation from [THIS] (http://www.simplemachines.org/community/index.php?topic=233298.msg1752068#msg1752068) post.
I just added the code for him.

Quote from: [SiNaN] on November 05, 2008, 03:15:31 AM
I'm recoding the mod for both versions. It will be finished very soon.

Nice, I look forward to it mate :)
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on November 05, 2008, 03:51:41 AM
Ah, okay. I missed that, thanks. ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: Sabre™ on November 05, 2008, 03:56:10 AM
Always my pleasure.
You're a busy man, so things may be missed from time to time.
Gives us lil folk something to do lol ;)
Title: Re: Profile Visitors (4.0 Released)
Post by: Kalina on November 05, 2008, 01:36:12 PM
I am using the default avatar mod as well (http://custom.simplemachines.org/mods/index.php?mod=975), for my members who don't have an avatar, this default one will show, but on the profile visitors, the default avatar doesn't show, I just tried for a few hours to integrate the default avatar mod into this one with no success.

Would anyone know how to have the default avatar show up on profile visitors who don't have a selected avatar? I figured some if statements in the profile template would do the trick... but not too sure how to go about it. Thanks!
Title: Re: Profile Visitors (4.0 Released)
Post by: [SiNaN] on November 06, 2008, 04:20:08 AM
I can give you the edits if you want, but the next release will be ready very soon. This change will make it hard for you to update to new version. I'll if see if I can add a built-in support for that.

Any other features that you want?
Title: Re: Profile Visitors (4.0 Released)
Post by: Kalina on November 06, 2008, 12:44:44 PM
Thanks SiNaN! Just that one thing is fine. :)
Title: Re: Profile Visitors (4.0 Released)
Post by: guitarplayer16 on November 09, 2008, 03:19:28 PM
I installed everything manually, and this is what I get when I try to view any profile.

Quote
Database Error
Unknown column 'mem.visitors' in 'field list'
File: /home/infinity/public_html/forum/Sources/Load.php
Line: 941

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.

EDIT: I fixed it myself, thanks for this great mod!!!!!!
Title: Re: Profile Visitors (4.0 Released)
Post by: quiz_modder on November 21, 2008, 07:09:18 PM
Any news on version for 2b4?
Title: Re: Profile Visitors (4.0 Released)
Post by: master2oo8 on November 22, 2008, 03:47:49 PM
Quote from: m4tthall on November 21, 2008, 07:09:18 PM
Any news on version for 2b4?
Yes, that mod for smf 2b4 would be cool :)
Title: Re: Profile Visitors (4.0 Released)
Post by: Filipina on November 28, 2008, 05:51:29 PM
Hi I posted a while back but I understand people can only assist if they have the chance.  I have the 1.1.7 default version and one of my files fails on install.  Since my last post the file has changed so I will attach it again.  Also, I tried for another hour but just cannot get this file right. 

I am trying to display the latest visitors at the bottom of the profile horizontal right below the link "Show general statistics for this member."  If it is possible could anyone help me with this file? Ok thanks for your consideration :)
Title: Re: Profile Visitors (4.0 Released)
Post by: Sabre™ on November 29, 2008, 04:54:23 PM
I couldn't get your template to run on my board, as you and I have very different edits to our boards.
The changes you want shouldn't be too difficult, but I had no way to test it, and I will not upload a template if Im unsure it will parse.

Someone with more experience or whom has a similar template/layout may be able to edit your template for you.

Good luck :)
Title: Re: Profile Visitors (4.0 Released)
Post by: Filipina on November 30, 2008, 10:32:48 AM
That is ok Sabre thanks for your efforts  :D
Title: Re: Profile Visitors (4.0 Released)
Post by: FragaCampos on November 30, 2008, 01:28:22 PM
Hello there.
With version 4.0 the only time related information that appears in the profile visitor is the hour, or the date (after one day).
How can i make it to show like the picture in the mod page (below), with hour, day of the week, month and year?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg520.imageshack.us%2Fimg520%2F5913%2Findexphpaw5.png&hash=a0082786ab149e499007e573939512a46c2f43b2)


Thanks.


Ps: Could it be on Proifile.php in the block

$past = time() - $visitortime[$count];
if($past > 86400)
$time_format = '%d/%m/%y';
else
$time_format = '%H:%M:%S';


?
Title: Re: Profile Visitors (4.0 Released)
Post by: Kimmie on December 01, 2008, 11:27:19 PM
I'm seeing this error in my log:

http://NameofSite/index.php?action=profile2

8: Undefined index: visitorstime
File: /home/patriotg/public_html/Sources/Profile.php
Line: 446

Every time I see that error, it always has "profile2 at the end of it. When you look at someones profile it should say http://NameOfSite/index.php?action=profile;u=XXXX.

I originally thought it was someone trying to view the profile of member #2 and since there isnt one (they were removed), it was returning the error, however, that is not the case. When I change the user number to #2 in what the ul should be, I get the standard error "The user whose profile you are trying to view does not exist." etc et cbut no error gets put in the log.

Any idea how this error is being generated and why the url would be different?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on December 09, 2008, 11:07:48 AM
Now mod is compatible with SMF 2.0 Beta 4. Check this post for details:

http://www.simplemachines.org/community/index.php?topic=233298.msg1501838#msg1501838
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: xconnect on December 09, 2008, 11:57:58 AM
works great on 2.0 Beta 4! thanks
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sudhakar Arjunan on December 09, 2008, 03:43:13 PM
Quote from: Blue Dream on December 09, 2008, 11:07:48 AM
Now mod is compatible with SMF 2.0 Beta 4. Check this post for details:



Its a most awaited Update.

Even though i have a issue with JohnyB's SPy mod on theme/default/profile template page.

I have manually edit and its working now.

Could you tell me , is there any settings page is available.

If so, where it is.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Kimmie on December 09, 2008, 08:01:25 PM
Quote from: Kimmie on December 01, 2008, 11:27:19 PM
I'm seeing this error in my log:

http://NameofSite/index.php?action=profile2

8: Undefined index: visitorstime
File: /home/patriotg/public_html/Sources/Profile.php
Line: 446

Every time I see that error, it always has "profile2 at the end of it. When you look at someones profile it should say http://NameOfSite/index.php?action=profile;u=XXXX.

I originally thought it was someone trying to view the profile of member #2 and since there isnt one (they were removed), it was returning the error, however, that is not the case. When I change the user number to #2 in what the ul should be, I get the standard error "The user whose profile you are trying to view does not exist." etc et cbut no error gets put in the log.

Any idea how this error is being generated and why the url would be different?

bumping up since its been a week
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: shadow82x on December 09, 2008, 08:05:19 PM
Quote from: Blue Dream on December 09, 2008, 11:07:48 AM
Now mod is compatible with SMF 2.0 Beta 4. Check this post for details:

http://www.simplemachines.org/community/index.php?topic=233298.msg1501838#msg1501838
Great work Blue Dream. :D Love it.

Installed/Tested fine on b4.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on December 10, 2008, 06:01:31 AM
xconnect:

You're welcome.

A.SK:

No, it doesn't have any settings area. Only has permissions and a single setting for "do not log" in Profile >> Look and Layout, if user is allowed to. What kind of setting you are looking for?

Kimmie:

Sorry for the delay. Is that only 'visitorstime'? You don't get errors with 'visitors' right?

ShaDow82x:

My pleasure.

For all:

I've found a very minor bug in the 4.1 version. Will release a bug fix version in a few days, which will include update feature from 4.1 version. The bug is minor as I said, so it won't break anything, no worries. I'll wait to see if I missed anything else.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sudhakar Arjunan on December 10, 2008, 02:02:05 PM
Quote from: Blue Dream on December 10, 2008, 06:01:31 AM
A.SK:

No, it doesn't have any settings area. Only has permissions and a single setting for "do not log" in Profile >> Look and Layout, if user is allowed to. What kind of setting you are looking for?

Looking for Admin id not to be logged on any users screen.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on December 10, 2008, 02:09:24 PM
Profile >> Look and Layout >> Do not log me on profile visits

check that option.

Users, who don't want to be logged should do that; of course if they have permission.

You can also check that option for your other admins yourself, if you want.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sudhakar Arjunan on December 11, 2008, 04:36:48 AM
Will Try it, Thank you.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Kimmie on December 12, 2008, 04:57:09 AM
Quote from: Blue Dream on December 10, 2008, 06:01:31 AM

Kimmie:

Sorry for the delay. Is that only 'visitorstime'? You don't get errors with 'visitors' right?


its on visitors as well:

8: Undefined index: visitors
File: /home//public_html/Sources/Profile.php
Line: 445

Sorry for not adding that one in my previous post. I actually thought I had lol.  They both say "action=profile2" at the end of the url it puts in the log. These errors dont happen on everyone, they are random so I have no way of knowing if they are happening when those people are trying to view their own profiles, someone elses profile, or if their manually trying to view member #2's profile (who does not exist). When I click on the url from the log I get this error:

"The user whose profile you are trying to view does not exist."

However, that is not even the correct format to view someone elses profile - when you click on soneones profile, the url at the end says the following "action=profile;u=xxx" (where x is that persons user number). I am inclined to think that they are trying to view member #2's profile that doesnt exist and they are just not typing it in right but I wanted to make sure I was correct in that and that its not some other bug within the mod.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: M@nNiak on December 13, 2008, 02:59:14 PM
thanks, good work.  ;)

i dont k now if already is a spanish translation but if not here i let this.

$txt['pv_title'] = 'Visitantes del Perfil';
$txt['pv_latest_visitors'] = 'Ultimos Visitantes';
$txt['pv_no_visitors'] = 'No hay Visitantes.';
$txt['pv_visit_count'] = 'Visitado %s veces.';
$txt['pv_enabled'] = 'Habilitar Visitantes del Perfil?';
$txt['pv_show_count'] = 'Numero de visitantes a mostrar:<div class="smalltext">(1 min - 20 max)</div>';
$txt['pv_style'] = 'Apariencia de visitantes:';
$txt['pv_style_vertical'] = 'Vertical';
$txt['pv_style_horizontal'] = 'Horizontal';
$txt['pv_not_log'] = 'No guardar logs de este grupo:';

$txt['cannot_profile_delete_visitor'] = 'No tienes permisos para borrar los visitantes.';

$txt['permissionname_profile_delete_visitor'] = 'Puede remover los visitantes del perfil?';
$txt['permissionname_profile_view_visitor'] = 'Puede ver los visitantes del perfil?';
$txt['permissionname_profile_view_visitor_own'] = 'Perfil propio';
$txt['permissionname_profile_view_visitor_any'] = 'Cualquier perfil';
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Nao 尚 on December 19, 2008, 10:20:25 AM
Nice little mod you have here... :)
I was thinking of doing something like that (selfishly, for my website), but it's nice enough for me to use it instead.

I'll contribute a few suggestions as well as my French version, in case it doesn't exist in the first place.

// Profile Visitors
$txt['pv_title'] = 'Derniers visiteurs';
$txt['pv_visited'] = 'Profil visit&eacute;';
$txt['pv_no_visitors'] = 'Pas de visiteurs.';
$txt['pv_no_member'] = 'Pas de membre s&eacute;lectionn&eacute;.';
$txt['pv_visited_single'] = '%s fois';
$txt['pv_visited_plural'] = '%s fois';
$txt['pv_avoid_log'] = 'Rester incognito pour visiter d\'autres profils';

$txt['permissionname_pv_view'] = 'Voir qui a visit&eacute; un profil';
$txt['permissionhelp_pv_view'] = 'Cette permission autorise les utilisateurs &agrave; voir les visiteurs sur les profils.';
$txt['permissionname_pv_view_own'] = 'Profil personnel';
$txt['permissionname_pv_view_any'] = 'Tous les profils';
$txt['permissionname_pv_avoid_log'] = 'Cacher ses propres visites';
$txt['permissionhelp_pv_avoid_log'] = 'Cette permission autorise les utilisateurs &agrave; choisir de rester incognito dans les profils.';
$txt['permissionname_pv_remove_own'] = 'Effacer les visiteurs de son profil';
$txt['permissionhelp_pv_remove_own'] = 'Cette permission autorise les utilisateurs &agrave; supprimer les visiteurs de leur propre profil.';
$txt['permissionname_pv_remove_any'] = 'Effacer les visiteurs de tout profil';
$txt['permissionhelp_pv_remove_any'] = 'Cette permission autorise les utilisateurs &agrave; supprimer les visiteurs de tout profil.';
$txt['permissionname_pv_remove_any_own'] = 'Visites personnelles';
$txt['permissionname_pv_remove_any_any'] = 'Toutes les visites';

$txt['cannot_pv_remove_any_any'] = 'Vous n\'avez pas l\'autorisation d\'effacer ce visiteur.';
// Profile Visitors


Also -- in case you're curious about RC1, it *will* require a few changes ;) (The first 3 changes in the Profile template, and another one in Profile.php)

I would also like to point out that 'pv_count' is buggy: I just installed the thing, made, let's say, 7 visits on a profile, my avatar says I visited 7 times, and the profile itself says "Profile visited 6 times"... It's only one behind.
And when it's never been visited in the first place, it's just empty. It would be best to use $txt['never'] (which is part of SMF2).
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Kimmie on December 21, 2008, 03:25:53 AM
Quote from: Kimmie on December 12, 2008, 04:57:09 AM
Quote from: Blue Dream on December 10, 2008, 06:01:31 AM

Kimmie:

Sorry for the delay. Is that only 'visitorstime'? You don't get errors with 'visitors' right?


its on visitors as well:

8: Undefined index: visitors
File: /home//public_html/Sources/Profile.php
Line: 445

Sorry for not adding that one in my previous post. I actually thought I had lol.  They both say "action=profile2" at the end of the url it puts in the log. These errors dont happen on everyone, they are random so I have no way of knowing if they are happening when those people are trying to view their own profiles, someone elses profile, or if their manually trying to view member #2's profile (who does not exist). When I click on the url from the log I get this error:

"The user whose profile you are trying to view does not exist."

However, that is not even the correct format to view someone elses profile - when you click on soneones profile, the url at the end says the following "action=profile;u=xxx" (where x is that persons user number). I am inclined to think that they are trying to view member #2's profile that doesnt exist and they are just not typing it in right but I wanted to make sure I was correct in that and that its not some other bug within the mod.


Any update on this yet?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on December 23, 2008, 08:06:34 AM
M@nNiak:

Thanks, I may brake my rules and add it to the next package.

Nao 尚:

Thanks for the translation and input. I'm aware of a few small bugs. Will release a small update very soon.

Kimmie:

Problem is, I wasn't able to reproduce the error. Let's try this:

../Sources/Profile.php

Find:

if($log_user) {

Replace:

if($log_user && isset($context['member']['visitors']) && isset($context['member']['visitorstime'])) {
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Kimmie on December 28, 2008, 12:27:35 PM
I will try that later tonight and see if it works. I have tried pinpointing when its happening but not making much headway. Nobody is reporting the errors when they get them and when I ask them about them, they say they dont remember getting any - but - they gotta be coming from somewhere right?  lol.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: pinoypetfinder on January 05, 2009, 03:38:09 PM
Quote from: Blue Dream on December 10, 2008, 02:09:24 PM
Profile >> Look and Layout >> Do not log me on profile visits

check that option.

Users, who don't want to be logged should do that; of course if they have permission.

You can also check that option for your other admins yourself, if you want.

i believe the 4.0 version is for the smf 1.x right?
is this available on the 4.0 version?
QuoteProfile >> Look and Layout >> Do not log me on profile visits
because i cant seem to find it  ???
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: pinoypetfinder on January 05, 2009, 03:43:30 PM
ah! found it already. forgot to 'enable' the mod first :P hehe

thanks! such a great mod :)
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: pinoypetfinder on January 05, 2009, 11:32:11 PM
i need a lil support for smf 1.x :)

the time of visit doesn't seem to matched the time on my forum.
i just installed this mod few hours ago, and users who visited my page says "19:44:11" (which means after noon. and i'm sure it's not correct because the time now just turned to 12.31pm
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: FragaCampos on January 06, 2009, 09:19:24 AM
Maybe this will help.

Quote from: Blue Dream on October 23, 2008, 07:55:28 AM
This will do it:


Quote from: [SiNaN] on September 25, 2008, 08:55:22 AM
4fit?:

This is an old mod of my, it has some annoying bugs but really don't have time to update.

../Sources/Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], $time_format),
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: pinoypetfinder on January 06, 2009, 08:35:41 PM
it worked! thank you :)
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: BAW on January 11, 2009, 08:36:32 PM
Hello,

I have installed this, but it seems only Admins on my site can see profile visitors.

Normal members/moderators/global moderators cannot see any profile visitors?

Why is this?

Thanks
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on January 13, 2009, 08:54:09 AM
Admin CP >> Permissions

you should give groups the "View Profile Visitors" permission.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: BAW on January 13, 2009, 12:34:34 PM
Great

Thanks!!
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Father Luke on January 30, 2009, 07:08:44 PM
4.1 says not compatible with 1.1.7 and 1.1.7 does not have an Admin.template.php in the theme I use.

May I just copy the admin.template.php from the default in the chosen theme?


Suggestions?

- -
Okay,
Father Luke
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Father Luke on January 30, 2009, 07:27:41 PM
Install Actions
Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Sources/Profile.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
8.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
9.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
10.    Execute Modification    ./Themes/default/UltimateProfile.template.php    Test successful
11.    Execute Code    install.php


4.0 using 1.1.7

- -
Okay,
Father Luke
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on January 31, 2009, 04:49:23 PM
You can't use 4.1 on SMF 1.1.7. That package is SMF 2.0 only.

You have to do Profile.php edits manually, using the manual installation instructions on the mod page.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Father Luke on January 31, 2009, 05:18:33 PM
Quote from: Blue Dream on January 31, 2009, 04:49:23 PM
You can't use 4.1 on SMF 1.1.7. That package is SMF 2.0 only.

You have to do Profile.php edits manually, using the manual installation instructions on the mod page.

Yes, but. . .

When I go to parse the mod I get this:

QuoteSorry, but this modification does not appear to be compatible with the selected version.

And there are no instructions for 4.0 on the mod page.
So. That's why I asked.


- -
Okay,
Father Luke
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Father Luke on January 31, 2009, 05:20:22 PM
Figured it out.
My bad.

Thanks.

- -
Okay,
Father Luke
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Kimmie on February 15, 2009, 10:36:04 AM
Quote from: Blue Dream on January 31, 2009, 04:49:23 PM
You can't use 4.1 on SMF 1.1.7. That package is SMF 2.0 only.

You have to do Profile.php edits manually, using the manual installation instructions on the mod page.

So 4.0 is for 1.x versions and 4.1 is for 2.0? Just wanted to make sure because I'm used to seeing a changelog on the mod page and there isnt one for this one so its hard to tell. :).

I'm moving to 1.1.8 tomorrow. Are there any specific changes that need to be made in order for it to be compatible with 1.1.8 (other than the normal changing of the package-xml file so it will install/uninstall)?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: [SiNaN] on February 15, 2009, 05:11:33 PM
Yeah, 4.0 is for SMF 1.x versions and it should work with 1.1.8. You probably won't need to change version in package_info.xml file too.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: mattchewone on February 15, 2009, 05:15:21 PM
I installed then uninstalled this, as when it was installed you could not click on profile link.

When you clicked on the profile link it took you to a white page with an error.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: wilsy on February 21, 2009, 09:35:32 AM
Quote from: mattchewone on February 15, 2009, 05:15:21 PM
I installed then uninstalled this, as when it was installed you could not click on profile link.

When you clicked on the profile link it took you to a white page with an error.

Did you get an error when installing? Have you tried installing again?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: mattchewone on February 21, 2009, 01:24:05 PM
No i havent yet, i will do it again. But i am having problems with avatars (i have three being displayed) at the minute once i have solved this i shall be installing all my mods again and ill try this one again.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sudhakar Arjunan on March 08, 2009, 10:42:29 AM
Hope i will have a update for 2.0. RC1 .

I need this mod , since this is very useful for users to find there real time visitors.

I have tried installing version 4.1 and it said much test failed error. I am sure it will be complete compactable to 2.0.beta 4 only.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Chriss Cohn on March 14, 2009, 10:04:04 AM
small bug(fix) for 4.0 Version for the ultimateprofile template.

Where it searches for:
   if (isset ($modSettings['enable_buddylist']) && $modSettings['enable_buddylist'] == '1') {

it should called
   if (isset($modSettings['enable_buddylist']) && $modSettings['enable_buddylist'] == '1') {

Just one space removed after "isset".
Otherwise the installer cant find the line to replace.

There is a second bug(fix) when you install it for Ultimateprofile. It destroys the modsettings.php array.

'pv' => 'ModifyPvSettings',
);


So when you install it with that above listed you get this final array which wont work of course:

$subActions = array(
'aeva' => 'ModifyAevaSettings',
'aevasites' => 'ModifyAevaSettings',
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
'ultprofile' => 'ModifyUltProfileSettings'
'pv' => 'ModifyPvSettings',
);
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: chrishicks on April 26, 2009, 06:12:28 PM
1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test failed
5.    Execute Modification    ./Sources/Profile.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
8.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
9.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
10.    Execute Modification    ./Themes/default/UltimateProfile.template.php    Test failed

could someone give a helping hand with the modsettings.php edits please? I have a few gaps/blank spaces in the file and I have no idea why and with my luck I'll kill my board.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: littleone on May 03, 2009, 12:00:32 PM
Quick question.  I set the settings to show 10 most recent however it still only displays five.  I looked back a couple of pages and didnt find anyone mentioning a similar problem.  Any suggestions?  I am using 4.0 on 1.1.8.  Thanks ;)
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: chrishicks on May 11, 2009, 06:38:55 AM
Question, I installed this, did the manual edits on the 2 files that failed the tests and ran into a snag. In AdminCP the tab for Profile Viewers was shown but I couldn't actually click it to get to that section. It just bounced me back to the Basic Features section every time. I didn't get any errors in the logs after the install/manual edits so I uninstalled it for now until someone can point me in the right direction on how to fix it.

I'm running 1.1.8 with quite a few mods including the Ultimate Profile.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: kolt on May 12, 2009, 08:25:33 AM
Hello I have this problem,

I had installed firts, but after having some problems with other packages, I upgrade, and now I cant install it

It shows me this problem

Database Error
Duplicate column name 'visitors'
File: /home/klorenti/public_html/forum/Packages/temp/install.php
Line: 6 



Please help
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: baijianpeng on June 12, 2009, 09:13:51 AM
Today I tried to install Profile Visitors v4.0 on SMF v1.1.9, but there is a problem with Sources/ModSettings.php file.

It seems that v4.0 can't support SMF 1.1.9.

Will the author upgrade it to be compatible with SMF v1.1.9?

Thanks.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sudhakar Arjunan on June 23, 2009, 03:04:30 PM
Quote from: A.SK on March 08, 2009, 10:42:29 AM
Hope i will have a update for 2.0. RC1 .

I need this mod , since this is very useful for users to find there real time visitors.

I have tried installing version 4.1 and it said much test failed error. I am sure it will be complete compactable to 2.0.beta 4 only.

Update for 2.0.RC1-1.

Good Mod Sinan.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: MF30 on July 03, 2009, 09:08:19 AM
Please update the mod to 1.1.9v.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Lighting_site on July 09, 2009, 01:11:30 AM
Quote from: MF30 on July 03, 2009, 09:08:19 AM
Please update the mod to 1.1.9v.

yeah.. please!!
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sabre™ on July 09, 2009, 01:17:08 AM
Version 4.0 works for SMF 1.1.9
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Lighting_site on July 09, 2009, 01:35:16 PM
Quote from: Sabre™ on July 09, 2009, 01:17:08 AM
Version 4.0 works for SMF 1.1.9

Yeahhhh it works! thank you!
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Citizen Erased on July 13, 2009, 05:34:49 PM
Hi. When installing this mod (4.0) on 1.1.9, "Features and Options" shows a blank page to me.

I think is something with the function ModifyPvSettings() in ModSettings, but I can't solve the problem yet.

Please help me.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sabre™ on July 13, 2009, 10:17:05 PM
Do you have ultimate profile installed?
If so, change this line in your modsettings.php
'ultprofile' => 'ModifyUltProfileSettings'

to
'ultprofile' => 'ModifyUltProfileSettings',

I've noticed your problem with a few peoples modsettings template, and have pointed out to them what the cause was(Ultimate Profile).
Im not sure if anyone has mentioned it to the mod author.

If you do not have UP installed, you may post your modsettings template here, and somebody will have a look for you :)
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Existence. on July 13, 2009, 11:32:56 PM
Cant wait for this to be compatible with SMF RC2 1- 1. :)
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: digit on July 20, 2009, 03:29:04 PM
Would anyone happen to have earlier versions of this mod?  I need to uninstall and older version. (can not see anywhere the version)

Thanks

edit: actually, I just figured why I was getting an undefined index visitortime error.... 

I had.....

),
'visitors' => $user_profile[$memID]['visitors'],
'visitorstime' => $user_profile[$memID]['visitorstime'],
'googleMap' => array(
'latitude' => !isset($user_profile[$memID]['latitude']) ? '' : $user_profile[$memID]['latitude'],
'longitude' => !isset($user_profile[$memID]['longitude']) ? '' : $user_profile[$memID]['longitude'],
),
);


It is fixed with....

'url' => !isset($user_profile[$memID]['websiteUrl']) ? '' : $user_profile[$memID]['websiteUrl'],
),
'googleMap' => array(
'latitude' => !isset($user_profile[$memID]['latitude']) ? '' : $user_profile[$memID]['latitude'],
'longitude' => !isset($user_profile[$memID]['longitude']) ? '' : $user_profile[$memID]['longitude'],
),
'visitors' => $user_profile[$memID]['visitors'],
'visitorstime' => $user_profile[$memID]['visitorstime'],
);


Maybe that can help someone else.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: digit on August 14, 2009, 12:29:46 AM
Hi,  would you happen to have older versions of the mod?

I keep getting the errors....

8: Undefined index: visitors
File: /users/Sources/Profile.php
Line: 379

and...

8: Undefined index: visitorstime
File: /users/Sources/Profile.php
Line: 380

Looking at your latest version, mine appears quite different, and does not even define a visitorcount!

I would like to uninstall a upgrade - unless you could go through my Profile.php and Load.php files and fix it!  8)

Thanks in advance!

digit
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: R.Bourne on October 17, 2009, 04:48:37 AM
Thanks so much for another great MOD.

Everything works 100% here with 1.1.10 but just wondering if you could add one last feature to this version. Most members in my forum would prefer to hide their status when visiting others' profiles!

Do you think you could update it before stop working on it? I tried to see if I could see how it was done from 4.1 but no luck.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: dannbass on November 25, 2009, 03:35:23 PM
This mod works great on 2.0 RC2, just minor changes to the xml so that it can be installed cleanly.  I'm just having some trouble with the layout, because since in order to use the curve layout, the tables, tr, and td break the proper layout, is there any plans to update this? or could someone take a look at the ProfileVisitors.template.php so that it can be used with the new default theme.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Sudhakar Arjunan on November 28, 2009, 10:51:05 PM
Will you update it.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: DJPlamen on January 10, 2010, 12:41:18 PM
Please, update it to RC2..

I tried to add it manually, but some "find-replace" stuff are no longer found... It's about Profile.php and Profile.template.php...
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: recived on February 04, 2010, 01:38:50 AM
Yes pleeeease update it ti RC2
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: JulesW on February 11, 2010, 02:32:18 PM
Will this mod be upgraded for RC2 or can someone explain what minor changes dannbass is talking about in this (http://www.simplemachines.org/community/index.php?topic=233298.msg2375260#msg2375260) post?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: navjotjsingh on March 04, 2010, 12:13:41 AM
Waiting for a 2.0RC2 Update.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: recived on March 17, 2010, 02:28:09 AM
Waiting for a 2.0RC3 Update.
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ealexander on March 26, 2010, 08:14:20 PM
can upgrade to version 2RC2
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: 7s-1k on March 27, 2010, 05:28:33 PM
Quote from: recived on March 17, 2010, 02:28:09 AM
Waiting for a 2.0RC3 Update.

#2
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ealexander on March 28, 2010, 04:28:02 PM
can upgrade to version 2RC2
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ProfDrDenis on April 09, 2010, 05:34:01 AM
super mod. But its not working on 2.0RC3 you update?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: recived on April 14, 2010, 06:56:07 AM
I made some changes to the mod and is now working on 2.0 rc3. Sorry for bad English

Profle.template.php
add:

// ProfileVisitor customize mod
echo '
<dl>
<dt><b>', $txt['pv_visited'], ': </b></dt>
<dd>', !empty($context['member']['options']['pv_count']) ? sprintf($txt['pv_visited_' . ($context['member']['options']['pv_count'] > 1 ? 'plural' : 'single')], $context['member']['options']['pv_count']) : '', '</dd>';
if ($context['can_pv_view']) {
echo ' <dt>', $txt['pv_title'], ' :</dt>
<dd>';
// Time to display the lucky guys...
template_visitors($context['member']['visitors']);
echo'</dd></dl>';
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ProfDrDenis on April 14, 2010, 08:09:14 AM
thanks, but you must say we add on which place?? and the attach file?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ProfDrDenis on April 18, 2010, 12:12:40 PM
all the 2.0RC3 user please help

The paket manager is searching in the ./Sources/Profile.php for
Quote// Set the selected items.
but I dont have. What can I do?
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: Snogmarr on April 30, 2010, 01:19:11 PM
Prof

what you want is after this line
$context['profile_menu_name'] = 'menu_data_' . $context['profile_menu_id'];



or try search for

Set the selected  instead
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ProfDrDenis on May 02, 2010, 09:36:07 AM
its difficult to install  :'( I think the mod dont create the database:

Table 'usr_XXX.smf_log_profile_visitors' doesn't exist
Datei: /Sources/Subs-ProfileVisitors.php
Zeile: 169

what is todo? to start install.php in the root from the forum with hand:
No database selected

:'(
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ProfDrDenis on May 02, 2010, 10:24:58 AM
I see.. the install script made a database "log_profile_visitors" without smf_  in front  :'(

I make voodoo and now its running  ;D
Title: Re: Profile Visitors (4.1 Released | SMF 2.0 Compatible)
Post by: ProfDrDenis on May 02, 2010, 12:55:38 PM
I am once again... I dont see any profil visitor. They are on which place? I use Ultimate Profil