News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Profile Visitors (4.1 Released | SMF 2.0 Compatible)

Started by [SiNaN], April 09, 2008, 12:44:17 AM

Previous topic - Next topic

efil59

#280
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?
Thanks,
Efil.

[SiNaN]

#281
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),
Former SMF Core Developer | My Mods | SimplePortal

efil59

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.

Thanks,
Efil.

netco

we are still waiting the mod with new version smf 2.4 .
There is no need to think or choose . just smf

Sabre™

@ 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 :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


[SiNaN]

Sabre™, what those files for?

I'm recoding the mod for both versions. It will be finished very soon.
Former SMF Core Developer | My Mods | SimplePortal

Sabre™

They were his files which failed installation from [THIS] 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 :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Sabre™

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 ;)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Kalina

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!

[SiNaN]

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?
Former SMF Core Developer | My Mods | SimplePortal

Kalina

Thanks SiNaN! Just that one thing is fine. :)

guitarplayer16

#292
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!!!!!!

quiz_modder


master2oo8


Filipina

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 :)

Sabre™

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 :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Filipina

That is ok Sabre thanks for your efforts  :D

FragaCampos

#298
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?




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';


?

Kimmie

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?

Advertisement: