News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

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

Kimmie

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

[SiNaN]

Kimmie:

Thanks for you too, for using my mod. ;)
Former SMF Core Developer | My Mods | SimplePortal

ElectricSquid

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

Kimmie

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

elforoof

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.

[SiNaN]

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

ElectricSquid

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

Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Kimmie

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


Richardgm

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?

elforoof

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?

Kimmie

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.

Richardgm

Thanks. Might need to put that in the readme, or something.

Thanks again guys.

ElectricSquid

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

[SiNaN]

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

Kimmie

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)


Adish - (F.L.A.M.E.R)

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.


Adish - (F.L.A.M.E.R)

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

[SiNaN]

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

Advertisement: