Profile Visitors (4.1 Released | SMF 2.0 Compatible)

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

Previous topic - Next topic

Sabre™

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


robbie93

it didnt seem to work for me installing manually :(

i have attached a screen shot to show what the manual install did.

Sabre™

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


[SiNaN]

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') {
Former SMF Core Developer | My Mods | SimplePortal

Faust

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 ?

Sabre™

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


[SiNaN]

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

robbie93

does this thing actually work? lol ::)

Sabre™

Yes mate it does. lol

Refer to post #22.      Thats for you :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Eliana Tamerin

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.
Do NOT PM me for support.

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

robbie93

@ 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

Sabre™

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


Sabre™

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


robbie93

#33
@ 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.

shadow82x

Will this work for SMF2.x in the future?
Colin B
Former Spammer, Customize, & Support Team Member

[SiNaN]

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

Sabre™

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


[SiNaN]

Add $visitor_profile to the old summary function globals also.
Former SMF Core Developer | My Mods | SimplePortal

Basie

[SiNaN] - How do I  change the text "Latest Visitors" to "Latest 5 Visitors".

Also, can I change how many visitors are listed?

[SiNaN]

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

Advertisement: